This is based on a discussion in Python in Education discussion group. Hugh Stewart from Australia pointed out his efforts to develop a Python program for generating palindromic numbers. From the links he provided in the forum, here are some snippets
Palindromic numbers receive most attention in the realm of recreational mathematics. A typical problem asks for numbers that possess a certain property and are palindromic. For instance,
- the palindromic primes are 2, 3, 5, 7, 11, 101, 131, 151, … (sequence A002385 in OEIS)
- the palindromic perfect squares are 0, 1, 4, 9, 121, 484, 676, 10201, 12321, …
Seven Reasons I use Wikipedia « Dorai’s LearnLog said
[...] It is easy to provide a pointer to a wiki page on the topic. My blog on Palindromic Numbers was based on following such a link from a discussion forum. [...]