Skip to main content

2017 AIME I Problem 9

Problem 9 of 15IntermediateAlgebraNumber TheoryProblem-Solving Techniques

Let a10=10,a_{10} = 10, and for each integer n>10n \gt 10 let an=100an−1+n.a_n = 100a_{n-1} + n. Find the least n>10n \gt 10 such that ana_n is a multiple of 99.99.

Your answer

Integer from 0 to 999
Show solution

Solution

Because 100≡1(mod99),100 \equiv 1 \pmod{99}, the recurrence gives an≡an−1+n(mod99),a_n \equiv a_{n-1} + n \pmod{99}, so an≡10+11+⋯+n=(n+10)(n−9)2(mod99). \begin{aligned} &a_n \equiv 10 + 11 + \cdots + n \\ &\quad \small = \frac{(n + 10)(n - 9)}{2} \pmod{99}. \end{aligned} We need 9999 to divide (n+10)(n−9)2.\frac{(n+10)(n-9)}{2}. One of n+10n + 10 and n−9n - 9 is even, so this is the same as requiring 99 and 1111 each to divide the product. Since the two factors differ by 19,19, they cannot both be multiples of 3.3. So 99 must divide one factor entirely and 1111 the other (or one factor is divisible by 9999). Checking the cases: 9999 divides n−9n - 9 first at n=108;n = 108; 9999 divides n+10n + 10 first at n=89;n = 89; 99 divides n+10n + 10 with 1111 dividing n−9n - 9 first at n=53;n = 53; and 1111 divides n+10n + 10 with 99 dividing n−9n - 9 first at n=45.n = 45. The least is n=45,n = 45, where 55⋅362=990\frac{55 \cdot 36}{2} = 990 is indeed a multiple of 99.99.
AoPS wiki

Tagged: modular arithmetic · recursion · casework

More practice