

A029914


Start with n; repeatedly sum squares of prime factors (counted with multiplicity), until reach a prime p, then set a(n) = p; if reach a fixed point q, set a(n) = q; set a(n) = 0 if no limit exists.


1




OFFSET

2,1


LINKS



EXAMPLE

2 > 2^2 = 4 > 2^2 + 2^2 = 8 > 2^2 + 2^2 + 2^12 = 12 > 2^2 + 2^2 + 3^2 = 17, prime, so stop; a(2)=17.


CROSSREFS



KEYWORD

nonn,more


AUTHOR



EXTENSIONS



STATUS

approved



