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 ?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
The last base-b digit of 2013 is its remainder mod b, so b must divide 2010 = 2*3*5*67 (16 divisors) with b > 3.
Solution
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 .
Why this works
"Ends in digit in base " is the congruence together with the requirement . The congruence is a divisibility statement about , so the count reduces to counting divisors, with a small boundary check for bases where the digit does not exist. The base- example in the statement is just a hint about how last digits work.
The trap
Counting all 16 divisors of 2010, forgetting that the digit 3 only exists in bases larger than 3 (b = 1, 2, 3 must be excluded).
Common mistakes
- Counting all 16 divisors of 2010, forgetting that the digit 3 only exists in bases larger than 3 (b = 1, 2, 3 must be excluded).
- Looking for divisors of instead of .
Techniques
Set up the equation/formula and compute; no special trick needed