Math Wiki
Advertisement

Happy Number Definition

happy number is defined by the following process: Start with any positive integer , the replace by the sum of the squares of its digits in base-ten. Repeat the process until either equals (where it will stay at forever), or it loops endlessly in a cycle that does not include . Those numbers for which this process ends in are happy numbers, while those that never get are unhappy numbers (or sad numbers).

Advertisement