Interesting Natural Numbers: A Fun Talk on Palindromic Numbers

“Shanghai tap water comes from the sea” is a classic sentence that everyone knows, and it reads the same forwards and backwards; such sentences are called “palindromes.”

In natural numbers, there are also some numbers with this characteristic, which are called palindromic numbers.

What is a palindromic number?

For any natural number n, if we reverse the order of its digits to get a new natural number m, and if m equals n, then n is a palindromic number.

For example:

For the natural number n=123454321, reversing the digits gives m=123454321, and since m=n, n is a palindromic number.

On the other hand, for the natural number n1=123456789, reversing the digits gives m=987654321, and since m does not equal n1, n1 is not a palindromic number.

The smallest palindromic number in natural numbers is 0. The digits 0, 1, …, 8, 9 are all palindromic numbers, and two-digit numbers like 11, 22, 33, …, 88, 99 are also palindromic numbers. There are even more palindromic numbers in three digits like 111, 121, …, 181, 191, 212, 222, …, 292, …, 919, 929, …, 989, 999.

Some natural numbers have additional interesting features aside from being palindromic. So what are some interesting palindromic numbers?

Square Palindromic Numbers

A natural number that is a palindromic number and also the square of another natural number is called a square palindromic number.

For example: 11 squared is 121, 22 squared is 484, and 26 squared is 676; thus, 121, 484, and 676 are all square palindromic numbers.

Additionally, there are some numbers whose squares are palindromic numbers:

For example:

1 squared is 1

11 squared is 121

111 squared is 12321

1111 squared is 1234321

…………

With the advancement of science and technology, aided by computers, it has been discovered that the proportion of palindromic numbers among perfect squares and perfect cubes is much higher than that among general natural numbers.

For instance: 11 squared is 121, 22 squared is 484, 7 cubed is 343, 11 cubed is 1331, and 11 to the power of 4 is 14641…… and so on; these numbers are all palindromic numbers.

So how do we find palindromic numbers among natural numbers?

There is an interesting algorithm for finding palindromic numbers:

Generally, for a natural number n, repeat the following steps until a palindromic number is obtained:

  1. Reverse the digits of the natural number n to get the reverse number m, then calculate m+n.

  2. If m+n is not a palindromic number, assign the value of m+n to n and repeat step 1.

  3. Repeat the above steps until m+n is a palindromic number. If we have repeated the steps several times, we say we have obtained a palindromic number after a few calculations.

Let’s see which of these natural numbers can obtain a palindromic number after a few calculations:

1. 28+82=110 110+011=121 28 gets a palindromic number after 2 steps.

2. 96+69=165 165+561=726 726+627=1353 1353+3531=4884; 96 gets a palindromic number after 4 steps.

Some natural numbers cannot obtain a palindromic number even after many calculations, but we cannot prove that they will never obtain a palindromic number after further calculations. Numbers that seem unable to form a palindromic number but we cannot determine whether they eventually can are called Lychrel numbers. If further calculations yield a palindromic number, then that number is not a Lychrel number. The first discovered Lychrel number is 196.

Some natural numbers need many calculations to finally obtain a palindromic number.

A 19-digit number 1,186,060,307,891,929,990 needs 261 steps to obtain a palindromic number; 261 steps is currently the world record for the number of calculations to obtain a palindromic number.

We will stop our introduction to palindromic numbers here; how to program to find palindromic numbers will be discussed in future articles. There are also some palindromic equations that you can check out if you are interested.

Article categories summary—Scratch

Article categories summary—C++

Article categories summary—Arduino

Visit: http://biyunmsu.stem86.com/index.html# or click on the end of the article Read the Original to join Teacher Yang’s Technology Innovation Class. Share the article screenshot to the public account background in the Moments to receive a Scratch beginner course.

Interesting Natural Numbers: A Fun Talk on Palindromic Numbers

Welcome to join Knowledge Planet: Qiuqiu’s Small Classroom to get Arduino related source code

(Qiuqiu’s own operated Knowledge Planet will share learning outcomes from time to time)

Interesting Natural Numbers: A Fun Talk on Palindromic Numbers

Join Knowledge Planet: Teacher Yang’s Technology Innovation Class, to obtain the source code and more programming information from this public account

Interesting Natural Numbers: A Fun Talk on Palindromic Numbers

The planet is temporarily free, and joining the WeChat group Teacher Yang’s Technology Innovation Class can get an invitation to join the planet for free (the free invitation card can only be distributed through the WeChat group)

Follow the video account: Teacher Yang’s Programming Class, to appreciate more small Arduino works

Interesting Natural Numbers: A Fun Talk on Palindromic Numbers

Follow the public account: Learn Programming with Qiuqiu, to learn together and make progress together.

Interesting Natural Numbers: A Fun Talk on Palindromic Numbers

Leave a Comment