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 t, then one defines the continuation t_0, t_1, t_2 \ ldots \, \! where t_0 = T \, \! and t_ {i+1} are equal to the sum of the squares of the figures of t_i \, \! . t is known as happy if the continuation leads to 1 starting from a certain number of terms, i.e. for a certain index i, t_i = 1 \, \! (Of course, starting from this index, all the t_j \, \! is equal to 1 and the continuation is constant). Thus, 7 is happy, since the associated continuation is:

t_1 = 7^2 = 49 \,
t_2 = 4^2 + 9^2 = 97 \,
t_3 = 9^2 + 7^2 = 130 \,
t_4 = 1^2 + 3^2 + 0^2 = 10 \,
t_5 = 1^2 + 0^2 = 1 \,

The answer t of the square of a happy number will always give another happy number. As in the preceding continuation.

t_1 = 7^2 = 49 \, ; 49 = Happy Number
t_2 = 4^2 + 9^2 = 97 \, ; 97 = Happy Number
t_3 = 9^2 + 7^2 = 130 \, ; 130 = Happy Number
t_4 = 1^2 + 3^2 + 0^2 = 10 \, ; 10 = Happy Number
Can imports the starting value in the continuation, if this one is the answer of more a happy small number

A t number is happy if and only if all the members of the continuation defined above are happy. A contrario , a t 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