login
A105904
Primes for which -32 is a primitive root.
1
5, 7, 13, 23, 29, 37, 47, 53, 79, 103, 149, 167, 173, 197, 199, 239, 263, 269, 293, 317, 349, 359, 367, 373, 383, 389, 463, 479, 487, 503, 509, 557, 599, 607, 613, 647, 653, 677, 709, 719, 743, 757, 773, 797, 823, 829, 839, 853, 863, 877, 887, 967, 983, 1039, 1063, 1087
OFFSET
1,1
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
Sequence in context: A003628 A216776 A105874 * A038901 A260791 A155006
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 24 2005
STATUS
approved