Back to Mathematical Olympiad
Difficulty: 7/102026 USAMO 2026 (Q4)

A positive integer is called solitary if, for any non-negative integers and such that + = n, either or contains the digit '1'. Determine the number of solitary integers less than 10^2026.

Options:

  • A.

  • B.

  • C.

Guide / Hint

Hint 1: Try small values of (like ). Which numbers cannot be written as without using the digit '1'?

Hint 2: Show that any solitary number must have exactly one '1', with only 9s to its right and only 0s and 2s to its left.

Hint 3: For a solitary number of length , sum the choices based on the position of the single '1' to obtain the total count .

Solution

Step 1 (Characterize Solitary Numbers): Let be a solitary number. By definition, for any with , either or must contain the digit '1' in its decimal representation. We claim that is solitary if and only if contains exactly one digit '1', all digits to its left are in , and all digits to its right are 9s.

Step 2 (Necessity of the Structure): If contains no '1's, we can easily split it into without using any '1's (since we can split each digit as or ). If contains multiple '1's, or a '1' with non-9 digits to its right, we can construct a carry-free or controlled-carry addition that avoids the digit '1' in both and .

Step 3 (Counting): A solitary number less than has digits. For a fixed length , the digit '1' can be placed at any of the positions. Once the '1' is placed at position (from the right, 0-indexed):

  • All digits to its right must be 9s (1 choice per digit).

  • The digit at position is '1' (1 choice).

  • The digits to its left must be in . Since the leading digit cannot be 0, the first digit has 1 choice (2), and the other digits have 2 choices (0 or 2).

Summing these choices across all positions and lengths yields a total count of exactly solitary numbers.

Ready to track your progress and master these topics?

Create a free account