OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MAPLE
select(t -> isprime(t) and numtheory:-order(-32, t) = t-1, [seq(2*k+1, k=1..1000)]); # Robert Israel, Apr 28 2015
MATHEMATICA
pr=-32; Select[Prime[Range[200]], MultiplicativeOrder[pr, # ] == #-1 &] (* OR *)
a[p_, q_]:=Sum[2 Cos[2^n Pi/((2 q+1)(2 p+1))], {n, 1, 2 q p}]
2 Select[Range[800], Rationalize[N[a[#, 5], 20]] == 1 &] + 1 (* Gerry Martens, Apr 28 2015 *)
PROG
(PARI) is(p)=isprime(p)&&p>2&&znorder(Mod(-32, p))==p-1 \\ M. F. Hasler, May 04 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 24 2005
STATUS
approved