4. A happy number is a number in which the eventual sum of the square of the digits of the number is equal to 1.