Skip to main content
OlympiadHQ

Browse · MathNet

Print

Team selection tests for JBMO 2018

Saudi Arabia 2018 algebra

Problem

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 ?
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 , , , , .
Final answer
10000, 101000, 1000100, 10000010, 100000001

Techniques

IntegersOther