login
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