login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A270821
Numbers n such that F(n) - n is a prime, where F(n) denotes the n-th Fibonacci number.
2
6, 8, 16, 26, 28, 76, 148, 159, 808, 848, 916, 1143, 4036, 4959, 43239, 73432, 98716, 144039, 146132
OFFSET
1,1
EXAMPLE
fibonacci(6) - 6 = 8 - 6 = 2 that is a prime;
fibonacci(8) - 8 = 21 - 8 = 13 that is a prime.
MAPLE
with(combinat): P:=proc(q) local n;
for n from 0 to q do
if isprime(fibonacci(n)-n) then print(n); fi; od; end: P(10^5);
MATHEMATICA
Select[Range[150000], PrimeQ[Fibonacci[#]-#]&] (* Harvey P. Dale, May 03 2018 *)
PROG
(PARI) lista(nn) = {for(n=1, nn, if(ispseudoprime(fibonacci(n)-n), print1(n, ", "))); } \\ Altug Alkan, Mar 30 2016
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Paolo P. Lava, Mar 30 2016
EXTENSIONS
a(15)-a(19) from Giovanni Resta, Apr 14 2016
STATUS
approved