login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A064918 a(n) is the number of iterations of k -> A064916(k) to reach a prime, starting at n. 5

%I #9 Jun 19 2018 05:15:11

%S 0,0,1,0,2,0,1,1,3,0,1,0,2,1,2,0,4,0,1,2,2,0,1,2,3,1,2,0,3,0,1,1,5,1,

%T 1,0,2,2,3,0,3,0,1,1,2,0,3,1,4,1,2,0,3,2,1,3,4,0,1,0,2,1,2,1,6,0,2,3,

%U 2,0,1,0,3,2,3,1,4,0,1,1,4,0,1,3,2,1,2,0,3,1,1,2,4,1,2,0,5,2,2,0,3,0,1,1,4

%N a(n) is the number of iterations of k -> A064916(k) to reach a prime, starting at n.

%C a(p) = 0 for all primes p.

%H Harry J. Smith, <a href="/A064918/b064918.txt">Table of n, a(n) for n = 2..1000</a>

%e a(6) = 2 as A064916(A064916(6)) = A064916(4) = 3 = A064917(6).

%o (PARI) lpf(n)= { local(f); f=factor(n); return(f[1, 1]) } { for (n=2, 1000, m=n; a=0; while (!isprime(m), L=lpf(m); m=m / L + L - 1; a++); write("b064918.txt", n, " ", a) ) } \\ _Harry J. Smith_, Sep 29 2009

%Y Cf. A064916, A064917, A064922.

%K nonn

%O 2,5

%A _Reinhard Zumkeller_, Oct 14 2001

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 23 15:25 EDT 2024. Contains 374552 sequences. (Running on oeis4.)