Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory intermediate

Problem

Vinny wrote down all the single-digit base- numbers and added them in base , getting .

What is ?
Solution
The single-digit base- numbers are We can ignore the . If we pair off the rest of the numbers from either end ( with , with , and so on), we get a bunch of pairs that add up to . If is even, we also get one leftover number in the middle, which must be .

Thus, the sum of all the single-digit base- numbers is a multiple of when is odd; when is even, it's a multiple of plus . In the first case ( odd), the units digit of the sum (when written in base ) is . In the second case ( even), the units digit is .

Given that Vinny's sum has a units digit of when written in base , we conclude that , which yields .

We can check this answer by summing the single-digit base- numbers, which are . Their sum is , which is in base .
Final answer
8