Skip to main content

2010 AIME I Problem 2

Problem 2 of 15EasierNumber TheoryProblem-Solving Techniques

Find the remainder when 9⋅99⋅999⋅⋯⋅99…9⏟999 nines9 \cdot 99 \cdot 999 \cdot \cdots \cdot \underbrace{99\ldots9}_{\text{999 nines}} is divided by 1000.1000.

Your answer

Integer from 0 to 999
Show solution

Solution

Work modulo 1000.1000. Every factor from the third one on ends in at least three 99s, so each is ≡−1(mod1000).\equiv -1 \pmod{1000}. There are 999999 factors in all, hence 997997 of them are ≡−1.\equiv -1. The product is therefore ≡9⋅99⋅(−1)997≡−891≡109(mod1000), \begin{aligned} &\equiv 9 \cdot 99 \cdot (-1)^{997} \\ &\equiv -891 \equiv 109 \pmod{1000}, \end{aligned} so the remainder is 109.109.
AoPS wiki

Tagged: modular arithmetic · pattern recognition

More practice