|
Search: id:A082381
|
|
|
| A082381 |
|
Sequence of the squared digital root of a number until 1 or 4 is reached. The initial numbers 1,2,..n are not output. |
|
+0 1
|
|
| 1, 4, 9, 81, 65, 61, 37, 58, 89, 145, 42, 20, 4, 16, 37, 58, 89, 145, 42, 20, 4, 25, 29, 85, 89, 145, 42, 2, 0, 4, 36, 45, 41, 17, 50, 25, 29, 85, 89, 145, 42, 20, 4, 49, 97, 130, 10, 1, 64, 52, 29, 85, 89, 145, 42, 20, 4, 81, 65, 61, 37, 58, 89, 145, 42, 20, 4, 1, 2, 4, 5, 25, 29
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
COMMENT
|
Conjecture: The sequence always terminates with 1 or the 4 16 37 58 89 145 42 20 4... loop.
|
|
REFERENCES
|
C. Stanley Ogilvy, Tomorrow's Math, 1972
|
|
PROGRAM
|
(PARI) \ The squared digital root of a number digitsq2(m) = {y=0; for(x=1, m, digitsq(x) ) } digitsq(n) = { while(1, s=0; while(n > 0, d=n%10; s = s+d*d; n=floor(n/10); ); print1(s" "); if(s==1 || s==4, break); n=s; ) }
|
|
CROSSREFS
|
Sequence in context: A041597 A041030 A061104 this_sequence A155931 A077530 A115551
Adjacent sequences: A082378 A082379 A082380 this_sequence A082382 A082383 A082384
|
|
KEYWORD
|
easy,nonn,uned
|
|
AUTHOR
|
Cino Hilliard (hillcino368(AT)gmail.com), Apr 13 2003
|
|
|
Search completed in 0.002 seconds
|