OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Primitive Root.
MAPLE
f:= proc(n) local m; uses NumberTheory;
if n::odd then
if NumberOfPrimeFactors(n, distinct) > 1 then return NULL fi;
elif n mod 4 = 0 or NumberOfPrimeFactors(n, distinct) > 2 then return NULL
fi;
m:= PrimitiveRoot(n, ith=Totient(Totient(n)));
if isprime(m) then NULL else m fi
end proc:
f(1):= 0:map(f, [$1..300]); # Robert Israel, Dec 01 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Harry J. Smith, Jan 31 2005
EXTENSIONS
Offset changed by Robert Israel, Dec 01 2024
STATUS
approved
