OFFSET
1,1
COMMENTS
So-called near-Wall-Sun-Sun primes. Each term is "nearer" to being Wall-Sun-Sun than all smaller primes.
If any Wall-Sun-Sun primes exist, this sequence terminates at the smallest Wall-Sun-Sun prime.
If you start from p=7 (not p=2), then the sequence will start 7, 13, 17, 41, ... instead.
LINKS
Jeppe Stig Nielsen, Table of n, a(n) for n = 1..49
Ulrich Fries and PrimeGrid, PRPNet findlist for project WSS
Reginald McLean and PrimeGrid, WW Statistics
D. D. Wall, Fibonacci series modulo m, Amer. Math. Monthly, 67 (1960), 525-532.
Wikipedia, Wall-Sun-Sun prime
PROG
(PARI) rec=+oo; forprime(p=2, , r=abs(centerlift(((Mod([1, 1; 1, 0], p^2))^(p-kronecker(p, 5)-1))[1, 1]))/p^2; if(r<rec, rec=r; print1(p, ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeppe Stig Nielsen, Dec 19 2020
STATUS
approved