OFFSET
1,2
COMMENTS
a(n) == 0 for n > 1 iff either n is a Wall-Sun-Sun prime (when n is prime) or a 'Wall-Sun-Sun pseudoprime' (when n is composite). The numbers meeting the second criterion are those composites where the congruence in A241505 is satisfied modulo n^2. No members are known from either of those two sets of numbers. - Felix Fröhlich, May 15 2015
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Wall-Sun-Sun Prime
PROG
(PARI) a(n)=lift(Mod([1, 1; 1, 0]^(n-kronecker(n, 5)), n^2)[1, 2]) \\ Charles R Greathouse IV, Oct 31 2011
(PARI) a(n) = fibonacci(n-kronecker(n, 5)) % n^2 \\ Jeppe Stig Nielsen, Jul 22 2014
(Magma) [Fibonacci(n-(KroneckerSymbol(n, 5))) mod n^2: n in [1..70]]; // Vincenzo Librandi, May 16 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, Nov 03 2005
STATUS
approved