OFFSET
1,5
COMMENTS
Essentially sequence A046144 with all zero entries deleted.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = phi(phi(A033948(n))).
MATHEMATICA
Reap[ Do[ If[n == 1, Sow[1], If[ IntegerQ[ PrimitiveRoot[n]], Sow[ EulerPhi[ EulerPhi[n]]]]] , {n, 1, 100}]][[2, 1]] (* Jean-François Alcover, Feb 24 2012 *)
Join[{1}, (Length/@PrimitiveRootList[Range[300]])/.(0->Nothing)] (* Harvey P. Dale, Oct 01 2024 *)
PROG
(PARI) is(n)=if(n%2, isprimepower(n) || n==1, n==2 || n==4 || (isprimepower(n/2, &n) && n>2));
lista(nn) = for (n=1, nn, if (is(n), print1(eulerphi(eulerphi(n)), ", "))); \\ Michel Marcus, May 12 2017
CROSSREFS
KEYWORD
nice,nonn
AUTHOR
Lekraj Beedassy, Jul 03 2002
STATUS
approved