AMC 10 Step by Step

2021 AMC Fall 10A Problem 12

P11-15~3 minPrint

The base-nine representation of the number NN is 27,006,000,052nine.27{,}006{,}000{,}052_{\text{nine}}. What is the remainder when NN is divided by 5?5?

Log in to save your progress.
Show solution without answering

Key insight

Powers of 9 leave remainders 1, 4, 1, 4, ... when divided by 5. Multiply each nonzero digit by the remainder for its place and add.

Solution

Converting this 11-digit base-nine number to base ten would take a long time. We only need the remainder when dividing by 55, so we can work with remainders the whole way.

  1. What the digits mean. In base nine, each place is worth 99 times the place to its right: 1,9,81,729,…1, 9, 81, 729, \ldots Reading 27,006,000,052nine27{,}006{,}000{,}052_{\text{nine}} from the right:
place (from the right)012345678910
digit25000060072

2. Remainders of the place values. Divide the place values by 55:
- 11 leaves remainder 11.
- 99 leaves remainder 44.
- 8181 leaves remainder 11.
- 729729 leaves remainder 44.

The pattern keeps going: multiplying by 99 turns remainder 11 into 44, and turns 44 into 3636, which has remainder 11. So even places have remainder 11 and odd places have remainder 44.
3. Only the nonzero digits matter. Multiply each by the remainder for its place:
- place 0: 2×1=22 \times 1 = 2
- place 1: 5×4=205 \times 4 = 20
- place 6: 6×1=66 \times 1 = 6
- place 9: 7×4=287 \times 4 = 28
- place 10: 2×1=22 \times 1 = 2
4. Add and divide. 2+20+6+28+2=582 + 20 + 6 + 28 + 2 = 58, and 58=11×5+358 = 11 \times 5 + 3, so the remainder is 33.

The answer is (D) 3\boxed{\textbf{(D)}\ 3}.

Why this works

When you only care about a remainder, you can replace every number by its remainder at any step: in sums and in products. Here 99 is one less than 1010, a multiple of 55, so its remainder 44 acts like "−1-1". In the language of congruences, 9≡−1(mod5)9 \equiv -1 \pmod 5, which means 99 and −1-1 leave the same remainder when divided by 55. So the places alternate plus and minus, just like the divisibility test for 1111 in base ten.

Alternative approach

Use the "−1-1" idea directly: add the digits with alternating signs, starting with ++ at the units place. The nonzero digits give 2−5+6−7+2=−22 - 5 + 6 - 7 + 2 = -2. A number that is 22 less than a multiple of 55 leaves remainder 5−2=35 - 2 = 3.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Write NN in expanded form: with digits d10d9…d1d0=2,7,0,0,6,0,0,0,0,5,2d_{10} d_9 \dots d_1 d_0 = 2,7,0,0,6,0,0,0,0,5,2,
N=∑i=010di⋅9i.N = \sum_{i=0}^{10} d_i \cdot 9^i.

Since 9≡−1(mod5)9 \equiv -1 \pmod 5, we have 9i≡(−1)i(mod5)9^i \equiv (-1)^i \pmod 5. So modulo 55, NN is the alternating sum of its base-nine digits, with the units digit positive:
N≡d0−d1+d2−⋯+d10(mod5).N \equiv d_0 - d_1 + d_2 - \cdots + d_{10} \pmod 5.

Only five digits are nonzero: d0=2d_0 = 2, d1=5d_1 = 5, d6=6d_6 = 6, d9=7d_9 = 7, d10=2d_{10} = 2. Even positions get ++, odd positions get −-:
N≡2−5+6−7+2=−2≡3(mod5).N \equiv 2 - 5 + 6 - 7 + 2 = -2 \equiv 3 \pmod 5.

The answer is (D) 3\boxed{\textbf{(D)}\ 3}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.