The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A268271 Primes p such that there is a Fibonacci-type sequence (mod p) that begins with (1,b) and encounters all quadratic residues of p in the first (p-1)/2 iterations (for some b). 0
11, 19, 29, 31, 59, 71, 79, 89, 101, 131, 179, 181, 191, 229, 239, 251, 271, 311, 349, 359, 379, 401, 419, 431, 439, 479, 491, 499, 509, 571, 599, 631, 659, 719, 739, 751, 761, 839, 941, 971, 1019, 1021, 1039, 1051, 1061, 1091, 1109, 1171, 1229, 1249, 1259, 1319, 1361, 1399 (list; graph; refs; listen; history; text; internal format)
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
Subsequence of A045468.
Cf. A003147 (similar sequence for a different period).
Cf. A168429, A070373 (examples of such Fibonacci-type sequences).
Sequence in context: A123976 A045468 A196095 * A053032 A342961 A277123
KEYWORD
nonn
AUTHOR
Michel Marcus, Mar 02 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 16 23:54 EDT 2024. Contains 372555 sequences. (Running on oeis4.)