Archive for numbers

Palindromic Numbers

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,

source: Palnidromic Numbers from Wikipedia

Comments (1)

Perfect Number

Alex and Peter are my colleagues. On Friday, they were deeply engrossed in a conversation. As I was walking past them, I asked them what they were talking about. Alex replied that they are trying to find an algorithm for “perfect numbers”. I asked “What is a perfect number?”. Alex explained to me what it is. Since I am not as good at explaining things as Alex is, I decided to find a good link. I found a few, but this one from Wikipedia, is probably one of the better ones.

A Perfect Number is defined as an integer which is the sum of its proper positive divisors, that is, the sum of the positive divisors not including the number. Six (6) is the first perfect number, because 1, 2 and 3 are its proper positive divisors and 1 + 2 + 3 = 6. The next perfect number is 28 = 1 + 2 + 4 + 7 + 14. The next perfect numbers are 496 and 8128.

Leave a Comment