2013 USAMO · Question 5
Problem outline
For arbitrary positive integers and , prove that a single positive multiplier can make the decimal expansions of and have the same nonzero digits, counted with multiplicity.
Show answer and methods 1 methods
Answer
Such a always exists. The two decimal strings can even be made cyclic rotations after padding with leading zeros.
Method 1 Construct a rotation modulus
Write where contains exactly the powers of and in , so . Choose large enough that is an integer multiple of and . This is possible because has no prime factor other than or . Since , we have . By construction .
As is invertible modulo , some positive power is modulo (two powers repeat among finitely many residues, and we may cancel the smaller power). Put and . These are positive integers. Because , both and lie strictly between and . Multiplying the preceding congruence by yields .
Write a number with using exactly decimal places, padding on the left with zeros. If its leading digit is and its remaining block represents , then and . This moves the leading digit to the right end. The rotated word is neither all zeros nor all nines, so its value is the unique residue in .
Apply this rotation times to the padded string for . Its value is congruent to and lies in the same interval, hence equals . Rotation preserves the number of occurrences of every digit. Removing any leading zeros afterwards leaves precisely equal multiplicities of every nonzero digit, as claimed.
Source and attribution
The outline and worked methods on this page were prepared for DR.WANG Mathematics.
Original question (external)