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!)
A066669 Numbers n such that phi(n) = 2^k*prime for some k >= 0. 5
7, 9, 11, 13, 14, 18, 21, 22, 23, 25, 26, 28, 29, 33, 35, 36, 39, 41, 42, 44, 45, 46, 47, 50, 52, 53, 55, 56, 58, 59, 65, 66, 69, 70, 72, 75, 78, 82, 83, 84, 87, 88, 89, 90, 92, 94, 97, 100, 104, 105, 106, 107, 110, 112, 113, 115, 116, 118, 119, 123, 130, 132, 137, 138 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Sequence is infinite, since 2n is in the sequence if and only if n is in the sequence. What is its density? - Charles R Greathouse IV, Feb 21 2013
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
7 is here because phi(7)=6 divided by 2 is prime; 21 is here because phi(21)=12 divided by 4 is prime; 15 is not here because phi(15)=8 divided by 8 is not prime.
MATHEMATICA
Select[Range@ 138, PrimeQ@ Last@ Most@ NestWhileList[#/2 &, EulerPhi@ #, IntegerQ@ # &] &] (* Michael De Vlieger, Mar 18 2017 *)
PROG
(PARI) is(n)=n=eulerphi(n); isprime(n>>valuation(n, 2)) \\ Charles R Greathouse IV, Feb 21 2013
CROSSREFS
Sequence in context: A360796 A004169 A295299 * A059808 A020742 A193071
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 18 2001
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 24 19:49 EDT 2024. Contains 371963 sequences. (Running on oeis4.)