SOLUTION: This is a question my teacher assigned if we want to do, it is extra, but I would like to learn more and this is a great problem. I cannot understand it no matter how hard I try. P

Algebra ->  Sequences-and-series -> SOLUTION: This is a question my teacher assigned if we want to do, it is extra, but I would like to learn more and this is a great problem. I cannot understand it no matter how hard I try. P      Log On


   



Question 1046020: This is a question my teacher assigned if we want to do, it is extra, but I would like to learn more and this is a great problem. I cannot understand it no matter how hard I try. Please explain fully and how you got your answer.

For any positive integer, find the sum of the squares of its digits. If the result is 1, you’re done. Otherwise, find the sum of the squares of the digits of the result. Continue this process until the result is 1, in which case we call the original integer a happy number, or until there is a repeated result, which leads to an endless loop, in which case we call the original integer an unhappy number. For example, consider 13 and 85.

13 is a happy number since
12 + 32 = 1 + 9 = 10,
12 + 02 = 1 + 0 = 1.
85 is an unhappy number since
82 + 52 = 64 + 25 = 89,
82 + 92 = 64 + 81 = 145,
12 + 42 + 52 = 1 + 16 + 25 = 42,
42 + 22 = 16 + 4 = 20,
22 + 02 = 4, 42 = 16,
12 + 62 = 1 + 36 = 37,
32 + 72 = 9 + 49 = 58,
52 + 82 = 25 + 64 = 89, which is a repeated result.
What is the least unhappy number?

What is the least prime number that is a happy number?

What is the least integer greater than 1 that, when multiplied by any happy number, yields another happy number?

Answer by KMST(5328) About Me  (Show Source):
You can put this solution on YOUR website!
Squares end in 0, 1, 4, 5, 6, or 9.
To add up to 1 (or 10, or 100), only a few combinations work.
For a 2-digit numbers, you need to pair
0 with 1,
or 1 with 3, or
6 with 8.
Obviously 1 is a happy number, and so are 10 , and 100 .
Other happy numbers are
13 , 31 , 68 and 86 .
The least unhappy number is highlight%282%29 .
2%5E2=4
4%5E2=16
1%5E2%2B6%5E2=1%2B36=37
3%5E2%2B7%5E2=9%2B49=58
5%5E2%2B8%5E2=25%2B64=89
8%5E2%2B9%5E2=64%2B81=145
1%5E2%2B4%5E2%2B5%5E2=1%2B16%2B25=42
4%5E2%2B2%5E2=16%2B4=20
2^2+0^2=4}}} and we went full loop back to 4 .
That also tells us that as soon as we found a number, or a sum of squares that is
4 , or 16 , or 37 , or 58 , or 89 , or 145 , or 42 , or 20 ,
we know we have entered the loop above,
meaning that the original number is an unhappy number,
and so are all the other intermediate results.
Numbers with the same digits in a different order, are also unhappy,
because they will yield the same sum of squares.
The least prime that is a happy number is obviously not 2.
It is not 3 either, because
3%5E2=9
9%5E2=81
8%5E2%2B1%5E2=64%2B1=65
6%5E2%2B5%5E2=36%2B25=61 and 61 is as unhappy as 16 ,
bringing us into the same -->37-->58-->89--->145... unhappy loop we found for 2%5D%7D%7D+.%0D%0AThe+next+prime%2C+%7B%7B%7B5 , is also unhappy:
5%5E2=25
2%5E2%2B5%5E2=4%2B25=29
2%5E2%2B9%5E2=4%2B81=85 , and 85 , as unhappy as 58 brings us back into the
--->89--->145 ... loop we knew from 2 .
The next prime is happy number highlight%287%29 :
7%5E2=49
4%5E2%2B9%5E2=16%2B81=97
9%5E2%2B7%5E2=81%2B49=130 , and as
1%5E2%2B3%5E2%2B0%5E2=1%2B9%2B0=10 is happy, making
1%5E2%2B0%5E2=1%2B0=1 , highlight%287%29 is the least happy prime number.From the sums above,m we see that 49 and 97 are also happy numbers.
Obviously 10 is a number greater than 1 ,
than when multiplied by any happy number gives a product with the same digits as the original number plus a zero added at the end,
so the product is also a happy number.
If there were a smaller factor whose products times a all happy numbers were happy, it would be a happy single digit number itself (as a product time happy 1 .
However, all digits other than 0 and 7 are unhappy, and while 7%2A7=49 is happy 7%2A49=343 is not:
3%5E2%2B4%5E2%2B3%5E2=9%2B16%2B9=34
3%5E2%2B4%5E2=9%2B16=25 , and we knew that 25 is unhappy from testing 5 .
So, I think the least nteger greater than 1 that, when multiplied by any happy number, yields another happy number is highlight%2810%29 .