A133247 Prime numbers p with property that no odd Fibonacci number is divisible by p.
2, 17, 19, 23, 31, 53, 61, 79, 83, 107, 109, 137, 167, 173, 181, 197, 211, 227, 229, 241, 257, 271, 293, 317, 349, 379, 383, 409, 421, 439, 443, 467, 499, 503, 541, 571, 587, 593, 601, 617, 631, 647, 653, 683, 691, 739, 751, 769, 773, 797, 811, 827, 829, 857
Offset: 1
Keywords
Links
- Robert Israel, Table of n, a(n) for n = 1..2000
Programs
-
Maple
filter:= proc(p) local a,b,i; if not isprime(p) then return false fi; a:= 0: b:= 1; for i from 2 do a,b:= b, (a+b) mod p; if b = 0 then if i mod 3 <> 0 then return false elif a = 1 then return true fi fi od: end proc: select(filter, [2,seq(i,i=3..1000,2)]); # Robert Israel, Nov 20 2016
-
Mathematica
Transpose[ Select[Table[{Prime[m], Select[Table[{n, Mod[Fibonacci[n], Prime[m]]}, {n, 6Prime[m] + 1}], Mod[ #[[1]], 3] != 0 && #[[2]] == 0 &]}, {m, 300}], #[[2]] == {} &]][[1]]
Comments