Monday, 21 July 2014

Happy numbers

A couple of weeks ago I talked about sexy numbers but what makes a number happy? To find out if a number is a happy number you go through the following process.

Pick a number (Lets say 23) square each digit and add them together. so 4+9=13. Now repeat the process.

1+9=10
1+0=1

We've taken a number and through this procedure we have reduced it to 1 so it is now happy. If the number never reaches one then it is an unhappy number. Poor thing :-(

We can also have happy prime numbers such as 313, 331, 367, 379. these numbers are also interesting for another reason to this number geek. There are many happy primes before these numbers but in the Doctor Who episode 42 the numbers 313, 331, 367, 379 are used for unlocking a sealed door but no one can spot the pattern except The Doctor.....see, you never know when this trivia may come in useful!

No comments:

Post a Comment