I stumbled upon a really cool mathematical anomaly that is easy to understand and can be appreciated by almost anyone.

The game begins by starting with any whole number greater than zero. To illustrate, let’s choose my birth year of 1977.

Now, we will create a sequence from this number in the following way.

Add up the square of the digits of your number for the next number in the sequence.

Since , this is the next number in the sequence. The next number? Well, , so 65 is the next number in the sequence. Here are the next several:

42! I got to 42!

Can you believe that if you form sequences in this manner, every number will either end at 1 or at 42? Indeed, about 14-15% of the whole numbers will end at 1, while the other 85-86% will end at 42.

Try it for yourself!

To be a little more precise, there is nothing special about 42. You could name any of the following numbers that result from 42 coming back to itself:

About 85-86% of the whole numbers will get trapped in this loop. But 42 is the coolest, since it is the answer to the great question of Life, the Universe, and Everything. Perhaps we’ve stumbled upon the great question?

If you create a sequence beginning with any whole number greater than zero by adding up the squares of the digits of the number each time, what number other than 1 will the sequence converge to?

For a fun example of one that converges to 1, let’s go with my high school graduation year of 1995:

My hobbies include cycling, running, playing guitar, coffee roasting, reading, traveling, and problem solving. I have also earned a blue belt in Brazilian Jiu-Jitsu. I obviously like to write, too, and want to share some of my experiences and knowledge with the world.
View all posts by Jason Shaw