OFFSET
1,2
COMMENTS
The terms of this sequence are 1, every prime except 5, every "twice prime" except 6 and 10, and the terms of A279072, i.e., {323, 572, 646, 754, 2737, 3782, 4181, 5474, 5777, 6479, ...}.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
1 is in the sequence because Fibonacci(1) mod 1 = 1 mod 1 = 0 and +-1 mod 1 = 0.
2 is in the sequence because Fibonacci(2) mod 2 = 1 mod 2 = 1.
3 is in the sequence because Fibonacci(3) mod 3 = 2 mod 3 = 2 and -1 mod 3 = 2.
MATHEMATICA
Select[Range[200], MemberQ[{1, # - 1}, Mod[Fibonacci[#], #]] &] (* Amiram Eldar, Jun 13 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon E. Schoenfield, Dec 30 2016
STATUS
approved