Palindrome Number Checker
What is a Palindrome Number ?
A palindromic number (also known as a numeral palindrome or a numeric palindrome) is a number that remains the same when its digits are reversed. Like 16461, for example, it is "symmetrical". The term palindromic is derived from palindrome, which refers to a word (such as rotor or racecar) whose spelling is unchanged when its letters are reversed. The first 30 palindromic numbers (in decimal) are:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 101, 111, 121, 131, 141, 151, 161, 171, 181, 191, 202, … (sequence A002113 in the OEIS).
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 the OEIS).
- The palindromic square numbers are 0, 1, 4, 9, 121, 484, 676, 10201, 12321, … (sequence A002779 in the OEIS).
Palindrome Number Checker in C
Palindrome Number Checker in Python 3
Comments
Post a Comment