2013 AMC 10A Problem 19
In base , the number ends in the digit . In base , on the other hand, the same number is written as and ends in the digit . For how many positive integers does the base- -representation of end in the digit ?
Show solution without answering
Key insight
The last digit in base b is the remainder after dividing by b, so b divides 2010 and must be bigger than 3.
Solution
- What is the last digit in base ? In base , the last digit of is the remainder when you divide by (it is ). In the same way, the last digit in base is the remainder when you divide by . Check with the example: , and indeed base ends in .
- Turn it into divisibility. We want to leave remainder when divided by . That means divides evenly by . So must be a divisor of .
- The digit 3 must exist. Base uses the digits to . To have a digit , we need .
- Count the divisors of 2010. . A divisor is made by deciding, for each of these primes, whether to use it or not. That is divisors.
- Remove the small ones. The divisors less than are . (The next one is .) So bases work.
The answer is .
Why this works
"Ends in the digit in base " means "leaves remainder when divided by ", and also must be smaller than . The remainder condition turns into " divides ", so the problem becomes counting divisors, plus a quick check at the small end. In remainder notation, means exactly " leaves remainder when divided by ."
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
The last digit of a number written in base is its remainder upon division by . So we need , which means divides . We also need to be a legitimate digit in base , which requires , i.e. .
Factor: . With four distinct primes, the number of divisors is .
The divisors that are too small are (the next divisor is ). Removing them leaves valid bases.
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 8: Base Numbers
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Introduction to Number Theory, Chapter 9: Base Number Arithmetic
- Introduction to Number Theory, Chapter 5: Divisor Problems (§5.2, §5.3)
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.