How many 13 digit numbers are palindromes and have at least one place where a digit is doubled. A palindrome is the same read forwards or backwards, like bob, racecar, or 57975.

For example:

1234456544321

9107772777019

2497644467942

1234567654321 Does not count, since it has no doubled digits.

Answer: 4217031

I need help with how to solve....Thanks and sorry if this is not advanced probability