OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 7 is a term because 7 is a primitive root mod 10, while the least prime > 7 for which 7 is a primitive root is 11.
MAPLE
filter:= proc(n) local k;
if issqr(n) then return false fi;
for k from n+1 do
if igcd(k, n) = 1 and numtheory:-order(n, k) = numtheory:-phi(k) then return not isprime(k) fi
od
end proc:
select(filter, [$2..1000]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Nov 11 2024
STATUS
approved