OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A001838(n)+2. - Robert Israel, Oct 30 2018
EXAMPLE
7 is in the sequence because phi(5) = 4 = phi(7) - 2.
8 is in the sequence because phi(6) = 2 = phi(8) - 2.
9 is not in the sequence because phi(7) = 6 but phi(9) - 2 = 4 instead.
MAPLE
with(numtheory): select(k->phi(k-2)=phi(k)-2, [$1..960]); # Muniru A Asiru, Oct 28 2018
MATHEMATICA
Select[Range@1000, EulerPhi@(# - 2) == EulerPhi[#] - 2 &]
Flatten[Position[Partition[EulerPhi[Range[1000]], 3, 1], _?(#[[1]]==#[[3]]-2&), 1, Heads->False]]+2 (* Harvey P. Dale, Oct 24 2020 *)
PROG
(Magma) [n: n in [3..1000] | EulerPhi(n-2) eq EulerPhi(n)-2];
(PARI) isok(n) = eulerphi(n-2) == eulerphi(n)-2; \\ Michel Marcus, Oct 14 2018
(GAP) Filtered([1..960], k->Phi(k-2)=Phi(k)-2); # Muniru A Asiru, Oct 28 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Oct 13 2018
STATUS
approved