OFFSET
1,2
COMMENTS
Numbers k = p - 1 such that p is a prime with primitive root 5. - Joerg Arndt, Jun 25 2020
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A019335(n) - 1. - Joerg Arndt, Jun 25 2020
MAPLE
filter:= proc(n)
isprime(n+1) and numtheory:-order(5, n+1)=n
end proc:
select(filter, [$1..1000]); # Robert Israel, Jun 25 2020
MATHEMATICA
Select[Prime[Range[1000]], MultiplicativeOrder[5, #] == # - 1&] - 1 (* Jean-François Alcover, Aug 16 2020 *)
PROG
(PARI) forprime(p=2, 10^3, if(p==5, next()); if(znorder(Mod(5, p))==p-1, print1(p-1, ", "))); \\ Joerg Arndt, Jun 25 2020
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Jun 22 2002
EXTENSIONS
a(1)=1 inserted by Robert Israel, Jun 24 2020
STATUS
approved