Happy number
In Mathematical, a happy number is a Integer which, when one adds the square each one of his Chiffre S, then the squares of the figures of this result and so on until obtaining a number with only one figure, gives 1 for résultat.
On the other hand, the numbers which are not happy are called unhappy numbers.
In a more formal way, one considers a positive entirety , then one defines the continuation where and are equal to the sum of the squares of the figures of . is known as happy if the continuation leads to 1 starting from a certain number of terms, i.e. for a certain index , (Of course, starting from this index, all the is equal to 1 and the continuation is constant). Thus, 7 is happy, since the associated continuation is:
The answer of the square of a happy number will always give another happy number. As in the preceding continuation.
- ; 49 = Happy Number
- ; 97 = Happy Number
- ; 130 = Happy Number
- ; 10 = Happy Number
- ; 97 = Happy Number
A number is happy if and only if all the members of the continuation defined above are happy. A contrario , a number is unhappy if and only if all the members of this continuation are unhappy.
The first twenty happy numbers are 1, 7, 10, 13, 19, 23, 28, 31, 32, 44, 49, 68, 70, 79, 82, 86, 91, 94, 97 and 100.
See too
External bonds
- happy Numbers on Maths World
- happy Numbers on Mathews
| Random links: | Championship of France of football D1 1957-58 | Foucauld of Saint-Germain Bowsprit | Ann Magnuson | Keel Lorentz | Yu-Gi-Oh! GX (manga) | Miltona,_Minnesota |