|
Search: id:A002217
|
|
|
| A002217 |
|
Starting with n, repeatedly calculate the sum of prime factors (with repetition) of the previous term, until reaching 0 or a fixed point: a(n) is the number of terms in the resulting sequence. (Formerly M0150 N0060)
|
|
+0 5
|
|
| 2, 1, 1, 1, 1, 2, 1, 3, 3, 2, 1, 2, 1, 4, 4, 4, 1, 4, 1, 4, 3, 2, 1, 4, 3, 5, 4, 2, 1, 3, 1, 3, 5, 2, 3, 3, 1, 4, 5, 2, 1, 3, 1, 5, 2, 4, 1, 2, 5, 3, 5, 2, 1, 2, 5, 2, 3, 2, 1, 3, 1, 6, 2, 3, 5, 5, 1, 4, 6, 5, 1, 3, 1, 6, 2, 2, 5, 5, 1, 2, 3, 2, 1, 5, 3, 3, 4, 2, 1, 2, 5, 5, 3, 6, 5, 2, 1, 5, 2, 5, 1, 3, 1, 2, 5
(list; graph; listen)
|
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
For n>1, the sequence reaches a fixed point, which is either 4 or a prime.
|
|
REFERENCES
|
M. Lal, Iterates of a number-theoretic function, Math. Comp., 23 (1969), 181-183.
|
|
LINKS
|
T. D. Noe, Table of n, a(n) for n=1..1000
Eric Weisstein's World of Mathematics, Sum of Prime Factors
|
|
EXAMPLE
|
20 -> 2+2+5 = 9 -> 3+3 = 6 -> 2+3 = 5, so a(20) = length of sequence {20,9,6,5} = 4.
|
|
CROSSREFS
|
A001414(n) is the sum of prime factors of n. A029908(n) is the fixed point that is reached.
Sequence in context: A111335 A134034 A029434 this_sequence A059342 A062831 A037828
Adjacent sequences: A002214 A002215 A002216 this_sequence A002218 A002219 A002220
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
njas
|
|
EXTENSIONS
|
More terms and better description from Reinhard Zumkeller (reinhard.zumkeller(AT)lhsystems.com), Apr 08 2003
|
|
|
Search completed in 0.002 seconds
|