What is a happy prime you ask?
You can think about a happy number in the following way. Take a positive integer, then replace the number by the sum of the squares of its digits. Take the new number, and repeat the process again and again. If the process eventually takes you to 1, then the original starting number is a happy number. If the process avoids 1 and goes into a cycle of numbers, then it is an unhappy number.
For example, 91 is happy, because it leads to the following sequence.
92 + 12 = 82
82 + 22 = 68
62 + 82 = 100
12 + 02 + 02 = 1 = happiness
82 + 22 = 68
62 + 82 = 100
12 + 02 + 02 = 1 = happiness
Because 91 is prime, then it is not just a happy number, but also a happy prime.
No comments:
Post a Comment