login
This site is supported by donations to The OEIS Foundation.

 

Logo

110 people attended OEIS-50 (videos, suggestions); annual fundraising drive to start soon (donate); editors, please edit! (stack is over 300), your editing is more valuable than any donation.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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)
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; refs; listen; history; text; internal format)
OFFSET

1,1

REFERENCES

M. Lal, Iterates of a number-theoretic function, Math. Comp., 23 (1969), 181-183.

N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

T. D. Noe and Christian N. K. Anderson, Table of n, a(n) for n = 1..10000 (first 1000 terms are from T. D. Noe)

Christian N. K. Anderson, n, the fixed point, a(n), and the trajectories for n = 1..10000.

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

Cf. A001414 (sum of prime factors of n), A029908 (fixed point that is reached).

Sequence in context: A163768 A029434 A156281 * A157047 A059342 A062831

Adjacent sequences:  A002214 A002215 A002216 * A002218 A002219 A002220

KEYWORD

nonn

AUTHOR

N. J. A. Sloane.

EXTENSIONS

More terms and better description from Reinhard Zumkeller, Apr 08 2003

Removed incorrect comment [from Harvey P. Dale, Aug 16 2011]

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified October 25 22:54 EDT 2014. Contains 248563 sequences.