what is happy number in Computer applications
Answers
Answered by
2
Answer:
The happy number can be defined as a number which will yield 1 when it is replaced by the sum of the square of its digits repeatedly. If this process results in an endless cycle of numbers containing 4, then the number is called an unhappy number.
Answered by
2
Answer:
A b {\displaystyle b} b-happy number is a natural number in a given number base b {\displaystyle b} b that eventually reaches 1 when iterated over the perfect digital invariant function for p = 2 {\displaystyle p=2} p=2. Those numbers that do not end in 1 are b {\displaystyle b} b-unhappy numbers (or b {\displaystyle b} b-sad numbers)
Similar questions