Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A029908
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A029908 Starting with n, repeatedly sum prime factors (with multiplicity) until reaching 0 or a fixed point. +0
13
0, 2, 3, 4, 5, 5, 7, 5, 5, 7, 11, 7, 13, 5, 5, 5, 17, 5, 19, 5, 7, 13, 23, 5, 7, 5, 5, 11, 29, 7, 31, 7, 5, 19, 7, 7, 37, 7, 5, 11, 41, 7, 43, 5, 11, 7, 47, 11, 5, 7, 5, 17, 53, 11, 5, 13, 13, 31, 59, 7, 61, 5, 13, 7, 5, 5, 67, 7, 5, 5, 71, 7, 73, 5, 13, 23, 5, 5, 79, 13, 7, 43, 83, 5, 13 (list; graph; listen)
OFFSET

1,2

COMMENT

For n>1 the sequence reaches a fixed point which is either 4 or a prime.

A002217(n) is number of terms in sequence from n to a(n). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Apr 08 2003

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)=5.

MATHEMATICA

ffi[x_] := Flatten[FactorInteger[x]] lf[x_] := Length[FactorInteger[x]] ba[x_] := Table[Part[ffi[x], 2*w-1], {w, 1, lf[x]}] ep[x_] := Table[Part[ffi[x], 2*w], {w, 1, lf[x]}] slog[x_] := slog[x_] := Apply[Plus, ba[x]*ep[x]] Table[FixedPoint[slog, w], {w, 1, 128}]

f[n_] := Plus @@ Flatten[ Table[ #[[1]], {#[[2]]}] & /@ FactorInteger@n]; Array[ FixedPoint[f, # ] &, 87] (from Robert G. Wilson v (rgwv(at)rgwv.com), Jan 18 2006)

CROSSREFS

A001414(n) is sum of prime factors of n. Cf. A081758, A002217, A075860.

Cf. A001414, A056239, A008475, A082081, A082083.

Sequence in context: A017855 A051598 A086993 this_sequence A081758 A106492 A118503

Adjacent sequences: A029905 A029906 A029907 this_sequence A029909 A029910 A029911

KEYWORD

nonn

AUTHOR

Dann Toliver (fsdrt(AT)hotmail.com)

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 20 13:54 EST 2009. Contains 171081 sequences.


AT&T Labs Research