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!)
A066422 a(n) = least k such that phi^(k)(n) + 1 is prime, where phi^(k) denotes application of phi k times. 1
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 2, 3, 1, 1, 1, 1, 2, 1, 1, 3, 1, 3, 1, 1, 1, 3, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 3, 2, 3, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 1, 2, 4, 3, 1, 3, 1, 1, 1, 1, 1, 3, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,15
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
EulerPhi(EulerPhi(15)) + 1 = EulerPhi(8) + 1 = 4 + 1 = 5, a prime; so a(15) = 2.
PROG
(PARI) a(n) = {nb = 1; n = eulerphi(n); while(! isprime(n+1), n = eulerphi(n); nb ++; ); return (nb); } \\ Michel Marcus, May 18 2013
CROSSREFS
Cf. A000010.
Sequence in context: A140500 A156054 A030616 * A274888 A239702 A202084
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Dec 26 2001
EXTENSIONS
Corrected and extended by Michel Marcus, May 18 2013
STATUS
approved

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 April 23 10:21 EDT 2024. Contains 371905 sequences. (Running on oeis4.)