USAJMO/USAMO 2026 (Problem 5/4)
A positive integer is called solitary if, for any nonnegative integers and such that , either or contains the digit when written in base . Determine, with proof, the number of solitary integers less than .
Major
Try small examples. Instead of , consider and try small examples of .
If ,
So, there is one solitary integer less than , which is .
If ,
If the number doesn't contain the digit , then we can write , so is not solitary. Therefore, we only need to check the numbers that contain the digit .
If the number doesn't contain the digit , then we can write , so is not solitary. Therefore, we only need to check the numbers that contain the digit .
: at least one of and is at least , so is solitary.
Thus, is solitary.
So, there are solitary integers less than , which are , , and .
If ,
Assume
If ,
Assume
If , then is not solitary.
If ,
If ,
If ,
is solitary, since if and , then
Therefore, contains the digit .By using the case , if is not solitary (), then
So, we only need to check when is solitary, and the same applies to .
Thus, is solitary.
Thus, is solitary.
Thus, is solitary.
So, there are solitary integers less than , which are , , , , , , and .
If ,
Assume
Assume
If (), add to and subtract from the corresponding digit . The sum doesn't change, and after changing all such digits, neither summand contains the digit . So there is no solitary integer in this interval. is solitary by the same method used in Hint 3.
is solitary.To prove that the previous numbers are solitary, we can generalize the argument.
Without loss of generality, assume .
If is not solitary, then .
But since is solitary, either or contains the digit , so either or contains the digit , which gives a contradiction.Similarly,
are solitary.For , let
For ,
So, there are solitary integers less than , which are , , , , , , , , , , , , , , and .
We guess there are solitary integers less than .
Let's prove it by induction.
Suppose are the solitary integers less than .Our claim is that the only solitary integers less than are
Assume
If
If
Let's prove it by induction.
Suppose are the solitary integers less than .Our claim is that the only solitary integers less than are
If
without loss of generality, assume .
Therefore, contains the digit .
Now consider
Without loss of generality, assume .
If is not solitary, then
Since is solitary, either or contains the digit . Hence either or contains the digit , which gives a contradiction.Now the only thing left to prove is that all the other numbers, except the solitary integers we have identified, are not solitary.
Assume
If
If , add to and subtract from the corresponding , so is not solitary.
If
and , then
Since is not solitary, we can write , where neither nor contains the digit . Therefore,
and neither summand contains the digit , so is not solitary.
If
Then
where .If , add to and subtract from the corresponding , so is not solitary.Therefore, the solitary integers less than are exactly the numbers in our claimed set.Their number is
By induction, the result holds for every positive integer .Taking , the answer is
- AIME II 2026 (Problem 4)
- AMC 12A 2023 (Problem 22)
- AMC 10A 2025 (Problem 19)
- AMC 10A/12A 2025 (Problem 21/15)
- AMC 10B/12B 2025 (Problem 2/2)
- AMC 10B 2025 (Problem 3)
- AMC 10B/12B 2025 (Problem 17/14)
- AMC 10B 2025 (Problem 18)
- AMC 10B/12B 2025 (Problem 23/19)
- AMC 12B 2025 (Problem 9)
- AMC 12B 2025 (Problem 23)
- AMC 8 2026 (Problem 18)
- AIME I 2026 (Problem 2)
- AIME I 2026 (Problem 15)
- AIME II 2026 (Problem 13)
- 2024 AMC 10A Problem 10
- 2024 AMC 12A Problem 7
- AMC 10B/12B 2024 (Problem 23/18)
- USAJMO 2026 (Problem 2)
- AMC 10A/12A 2020 (Problem 21/19)
- AMC 10B 2022 (Problem 21)
- AMC 10B/12B 2025 (Problem 4/4)
- AMC 10A/12A 2024 (Problem 18/11)
- AMC 12B 2024 (Problem 6)