Skip to content
Vamshi Jandhyala

Books · Number Puzzles

Chapter 10

Square Palindromes

A palindrome reads the same forwards and backwards. Some perfect squares are palindromes: 12=1,112=121,1112=12321.1^2 = 1, \qquad 11^2 = 121, \qquad 111^2 = 12321. Why does this pattern hold, how far does it run, and what other palindromic squares are there?

Solution

The pattern belongs to the repunits, the numbers made only of ones. As long as no column total reaches ten, squaring a string of kk ones makes the digits climb 1,2,,k1, 2, \dots, k and back down: 11112=1234321,111112=123454321,1111^2 = 1234321, \qquad 11111^2 = 123454321, and so on up to 1111111112=12345678987654321(nine ones).111111111^2 = 12345678987654321 \quad (\text{nine ones}). The reason is that a string of kk ones squared is the sum of kk shifted copies of that string, and the jjth column simply counts how many copies overlap there, a count that rises to kk in the middle and falls away symmetrically. With ten ones or more, a column total reaches ten, carrying begins, and the neat palindrome is lost: 11111111112=12345679009876543211111111111^2 = 1234567900987654321, which is not a palindrome.

Palindromic squares need not come from palindromic roots. Among the smaller ones, 222=484,262=676,2122=44944,2642=69696,8362=698896,\begin{gathered} 22^2 = 484, \quad 26^2 = 676, \quad 212^2 = 44944,\\ 264^2 = 69696, \quad 836^2 = 698896, \end{gathered} and of these roots only 2222 and 212212 are themselves palindromes.