2021 AMC Fall 10A Problem 12
The base-nine representation of the number is What is the remainder when is divided by
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 , so we can work with remainders the whole way.
- What the digits mean. In base nine, each place is worth times the place to its right: Reading from the right:
| place (from the right) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| digit | 2 | 5 | 0 | 0 | 0 | 0 | 6 | 0 | 0 | 7 | 2 |
2. Remainders of the place values. Divide the place values by :
- leaves remainder .
- leaves remainder .
- leaves remainder .
- leaves remainder .
The pattern keeps going: multiplying by turns remainder into , and turns into , which has remainder . So even places have remainder and odd places have remainder .
3. Only the nonzero digits matter. Multiply each by the remainder for its place:
- place 0:
- place 1:
- place 6:
- place 9:
- place 10:
4. Add and divide. , and , so the remainder is .
The answer is .
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 is one less than , a multiple of , so its remainder acts like "". In the language of congruences, , which means and leave the same remainder when divided by . So the places alternate plus and minus, just like the divisibility test for in base ten.
Alternative approach
Use the "" idea directly: add the digits with alternating signs, starting with at the units place. The nonzero digits give . A number that is less than a multiple of leaves remainder .
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
Write in expanded form: with digits ,
Since , we have . So modulo , is the alternating sum of its base-nine digits, with the units digit positive:
Only five digits are nonzero: , , , , . Even positions get , odd positions get :
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 12: Introduction to Modular Arithmetic
- Introduction to Number Theory, Chapter 8: Base Numbers
- Introduction to Number Theory, Chapter 10: Units Digits
- Introduction to Number Theory, Chapter 9: Base Number Arithmetic
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.