Let and are two nine-digit palindromes without leading zeros (a palindrome is a number that reads the same backward as forward) such that and there are no other nine-digit palindromes strictly between and . What are all possible values of ?
, 2018
Solution
Denote the number is . We consider cases:
1. If then the next number is .
2. If , then the next number is .
3. If , then the next number is .
4. If , then next number is .
5. If , then (otherwise, there is no ). Then the next number is .
So the difference are , , , , .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.