OFFSET
1,1
LINKS
Alexandru Gica, Quadratic Residues in Fibonacci Sequences, Fibonacci Quart. 46/47 (2008/2009), no. 1, 68-72.
EXAMPLE
p=11 is a term since, modulo 11, the sequence 1, 4, 5, 9, 3 satisfies 5=4+1, 9=5+4, 3=9+5, 1=9+3, ..., with a period of (11-1)/2 = 5.
PROG
(PARI) findr(p) = {for (k=1, (p-1)/2, if ((k^2 % p) == 5, return(k)); ); }
isok(p) = {if ((p % 2) && isprime(p), pm = p % 5; if ((pm == 1) || (pm == 4), rf = findr(p); (znorder(Mod((1+rf)/2, p)) == (p-1)/2) || (znorder(Mod((1-rf)/2, p)) == (p-1)/2); ); ); }
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Mar 02 2016
STATUS
approved