May 5, 2026 Final

Problem 6 · Quasi-palindromic numbers

Counting via disjoint cases around four-digit palindromes.

Integer answer, at most 4 digits

We call a number quasi-palindromic if adding 1 to one and only one of its digits, leaving the others unchanged, produces a palindrome. How many four-digit quasi-palindromic numbers are there?

Copa Cangur · SCM Hard Closed answer