Skip to main content

1988 AIME Problem 9

Problem 9 of 15IntermediateAlgebraNumber Theory

Find the smallest positive integer whose cube ends in 888.888.

Your answer

Integer from 0 to 999
Show solution

Solution

Write the number as 10a+2.10a+2. Expanding the required congruence modulo 125125 and dividing by 55 gives 20a2−a−1≡0(mod25).20a^2-a-1\equiv0\pmod{25}. Reducing first modulo 55 gives a≡4(mod5);a\equiv4\pmod5; substituting a=4+5ba=4+5b then gives b≡3(mod5).b\equiv3\pmod5. Thus a≡19(mod25),a\equiv19\pmod{25}, and the smallest candidate is 10(19)+2=192.10(19)+2=192. It is even, so its cube is also 0(mod8),0\pmod8, and indeed 1923=7,077,888.192^3=7{,}077{,}888.
AoPS wiki

Tagged: modular arithmetic · units digit · quadratic

More practice