OFFSET
1,1
COMMENTS
Composites c where a(n) = 0 could be called "Wall-Sun-Sun pseudoprimes" or "Fibonacci-Wieferich pseudoprimes". Do any such composites exist?
Any such c would have to be a term of A241505.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
N:= 100: # to get a(1)..a(N)
count:= 0: R:= NULL:
for n from 4 while count < N do
if not isprime(n) then
count:= count+1;
R:= R, combinat:-fibonacci(n - numtheory:-jacobi(5, n)) mod n^2;
fi
od:
R; # Robert Israel, Feb 02 2018
MATHEMATICA
composite[n_Integer] := FixedPoint[n + PrimePi@ # + 1 &, n + PrimePi@ n + 1] ; Array[With[{c = composite@ #}, Mod[Fibonacci[c - KroneckerSymbol[5, c]], c^2]] &, 50] (* Michael De Vlieger, Jan 31 2018, composite function by Robert G. Wilson v at A066277 *)
PROG
(PARI) forcomposite(c=1, 200, print1(lift(Mod(fibonacci(c-kronecker(5, c)), c^2)), ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Jan 30 2018
STATUS
approved