OFFSET
1,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Caroline Lucheta, Eli Miller and Clifford Reiter, Digraphs from Powers Modulo p, Fibonacci Quarterly, Volume 34, Number 3, June-July 1996. See p. 9.
Troy Vasiga and Jeffrey Shallit, On the iteration of certain quadratic maps over GF(p), Discrete Mathematics, Volume 277, Issues 1-3, 28 February 2004, Pages 219-240. See p.9.
MATHEMATICA
Select[Range[10^4], PrimeQ[#] && PrimeQ[(q = (# - 1)/2)] && PrimitiveRoot[q] == 2 &] (* Amiram Eldar, Oct 09 2021 *)
PROG
(PARI) isok(p) = isprime(p) && (p%2) && isprime(q=(p-1)/2) && (q%2) && (znorder(Mod(2, q))==(q-1)); \\ Michel Marcus, Jan 30 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Jun 24 2008
EXTENSIONS
Incorrect term 5 removed by Michel Marcus, Jan 30 2016
STATUS
approved