Skip to main content

2004 AIME I Problem 1

Problem 1 of 15EasierNumber TheoryArithmetic

The digits of a positive integer nn are four consecutive integers in decreasing order when read from left to right. What is the sum of the possible remainders when nn is divided by 37?37?

Your answer

Integer from 0 to 999
Show solution

Solution

If the leading digit is a,a, the digits are a,a, a−1,a - 1, a−2,a - 2, a−3a - 3 with a=3,4,…,9,a = 3, 4, \ldots, 9, so n=1000a+100(a−1)+10(a−2)+(a−3)=1111a−123. \begin{aligned} n &= 1000a + 100(a-1) \\ &\quad {}+ 10(a-2) + (a-3) \\ &= 1111a - 123. \end{aligned} Since 1111=30⋅37+11111 = 30 \cdot 37 + 1 and 123=3⋅37+12,123 = 3 \cdot 37 + 12, we get n≡a−12≡a+25(mod37).n \equiv a - 12 \equiv a + 25 \pmod{37}. For a=3,…,9a = 3, \ldots, 9 the values a+25a + 25 run through 28,29,…,34,28, 29, \ldots, 34, each already less than 37,37, so these are exactly the seven possible remainders. Their sum is 28+29+⋯+3428 + 29 + \cdots + 34 =7⋅31=217.= 7 \cdot 31 = 217.
AoPS wiki

Tagged: place value · modular arithmetic

More practice