login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A271657
Primes p such that phi(p-3) = phi(phi(p-1)-1).
5
5, 17, 257, 1277, 3853, 6203, 8663, 16481, 65537, 131519, 257953, 265961, 269573, 380201, 510449, 512927, 846563, 904793, 1056707, 1503329, 1538057, 2675753, 2756153, 2952413, 3333893, 3837347, 4457753, 4643213, 4783873, 5068937, 6874949, 7536917, 13248227
OFFSET
1,1
COMMENTS
The first 4 known Fermat primes > 3 from A019434 are in the sequence.
EXAMPLE
257 is a term because phi(257-3) = phi(254) = 126 = phi(phi(257-1)-1) = phi(phi(256)-1) = phi(128-1) = phi(127).
MATHEMATICA
Rest@ Select[Prime@ Range[10^6], EulerPhi[# - 3] == EulerPhi[EulerPhi[# - 1] - 1] &] (* Michael De Vlieger, Apr 11 2016 *)
PROG
(Magma) [n: n in [4..5*10^7] | IsPrime(n) and EulerPhi(n-3) eq EulerPhi(EulerPhi(n-1)-1)]
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Apr 11 2016
STATUS
approved