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”).

A271729
Numbers n such that 2*Fibonacci(n+2)+((-1)^n-3)/2 is a prime.
1
1, 2, 6, 8, 14, 16, 32, 40, 66, 88, 112, 120, 146, 158, 318, 514, 630, 638, 680, 710, 1054, 1630, 2198, 2466, 2696, 2994, 3138, 3654, 3958, 5558, 7008, 11416, 11632, 13510, 19752, 24480
OFFSET
1,2
COMMENTS
These numbers are the positions of prime numbers in A066629.
MAPLE
with(combinat): A271729:=n->`if`(isprime(2*fibonacci(n+2)+((-1)^n-3)/2), n, NULL): seq(A271729(n), n=1..3*10^3); # Wesley Ivan Hurt, Apr 13 2016
MATHEMATICA
Select[Range[10000], PrimeQ[(2 Fibonacci[# + 2] + ((-1)^# - 3) / 2)] &]
PROG
(Magma) [n: n in [0..2000] | IsPrime(2*Fibonacci(n+2)+((-1)^n-3) div 2)];
(PARI) lista(nn) = for(n=1, nn, if(ispseudoprime(2*fibonacci(n+2)+((-1)^n-3)/2), print1(n, ", "))); \\ Altug Alkan, Apr 13 2016
CROSSREFS
Cf. A066629.
Sequence in context: A213364 A212124 A213374 * A249624 A104636 A212014
KEYWORD
nonn,more
AUTHOR
Vincenzo Librandi, Apr 13 2016
STATUS
approved