Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 7

HAPPY

NUMBERS
Happy Number

It is a number which, if you add together the


squares of its digits, and then do the same process
on the results recursively, results in a value of 1.
Example # 1

Is 32 a happy number?
32 : 3 + 2 = 9 + 4 = 13
2 2

13 : 1 + 3 = 1 + 9 = 10
2 2

10 : 1 + 0 = 1 + 0 = 1
2 2
Question

How many times do you have to go through that cycle?


What if it never comes down to 1? How will you know?
Note

If the numbers 4, 16, 37, 58, 89, 145, 42, 20, and 4
show up in this order, number will not resolve to 1.
Therefore, those numbers will never be happy. In fact,
the numbers will repeat this cycle forever. That’s sad.
Example # 2
Is 27 a happy number?
27 : 22 + 72 = 4 + 49 = 53
53 : 5 + 3 = 25 + 9 = 34
2 2

34 : 3 + 4 = 9 + 16 = 25
2 2

25 : 22 + 52 = 4 + 25 = 29
29 : 22 + 92 = 4 + 81 = 85
85 : 82 + 52 = 64 + 25 = 89
89 : 82 + 92 = 64 + 81 = 145
Example # 2
Is 6 a happy number? 6 : 62 = 36
36 : 32 + 62 = 9 + 36 = 45
45 : 42 + 52 = 16 + 25 = 41
41 : 42 + 12 = 16 + 1 = 17
17 : 12 + 72 = 1 + 49 = 50
50 : 52 + 02 = 25 + 0 = 25
25 : 22 + 52 = 4 + 25 = 29
29 : 22 + 92 = 4 + 81 = 85
85 : 82 + 52 = 64 + 25 = 89

You might also like