Sep 2007

Computers are HappyHappy and Unhappy Numbers

This is probably one of my crazier thoughts. A friend of mine pointed out "Happy Numbers".

(from the Wikipedia page)A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those numbers for which this process ends in 1 are happy numbers and those that do not are unhappy numbers.

One of those funny things is that 666 is a very unhappy number, it seems. And all unhappy numbers end up in a sequence including 42.

So either a number is happy, or it ends up as 42. Very curious.

Another interesting fact is that Base2, or Binary as most of us know it. Is a Happy Base. Every positive number is a Happy Number in Base2. So computers are very happy indeed, as long as they're not empty/null.

Read more about Happy Numbers

Read more about why 42 is vitally important.