A palindrome number reads the same forwards and backwards, so its first digit must match its last digit, and its second digit must match its second-last digit.
Between 100 and 200 — ten numbers
- Every number here starts with 1, so it must also end with 1. The shape is 1 _ 1.
- The middle digit can be anything from 0 to 9.
Between 900 and 1,200 — twelve numbers
- First take the 3-digit ones, from 900 to 999. They start with 9, so they end with 9. The shape is 9 _ 9.
- That gives 909, 919, 929, 939, 949, 959, 969, 979, 989, 999 — ten numbers.
- Now the 4-digit ones, from 1,000 to 1,200. They start with 1, so they end with 1. The shape is 1 b b 1.
- 1001 works and 1111 works. The next one, 1221, is bigger than 1,200, so it is out.
Between 25,000 and 27,000 — twenty numbers
- All these numbers start with 2, so they end with 2. The shape is 2 b c b 2.
- The second digit b can only be 5 or 6, because 25 000–25 999 and 26 000–26 999 lie inside the range, while 27 072 and above are outside it.
- The middle digit c can be any of 0 to 9. So there are 2 × 10 = 20 numbers.
26062, 26162, 26262, 26362, 26462, 26562, 26662, 26762, 26862, 26962