OFFSET
0,2
COMMENTS
Primes in sequence for n = 1, 3, 5, 6, 9, 24, 42, 48, 53, 71, 86, 102, 138, 182, 302, 438, 506, 926, ...
LINKS
Bruno Berselli, Table of n, a(n) for n = 0..500
A. Bremner, R. Høibakk, D. Lukkassen, Crossed ladders and Euler’s quartic, Annales Mathematicae et Informaticae, 36 (2009) pp. 29-41. See p. 33.
Index entries for linear recurrences with constant coefficients, signature (2,2,-1).
FORMULA
G.f.: (-1 + 4*x - x^2)/((1 + x)*(1 - 3*x + x^2)).
a(n) = -a(-n-1) = 2*a(n-1) + 2*a(n-2) - a(n-3) for all n in Z.
a(n) = F(n+2)^2 - 2*F(n+1)^2.
Sum_{i>=0} 1/a(i) = .754301907697893871765121109686...
a(n) = (2^(-1-n)*(-3*(-1)^n*2^(2+n)-(3-sqrt(5))^n*(-1+sqrt(5))+(1+sqrt(5))*(3+sqrt(5))^n))/5. - Colin Barker, Sep 29 2016
MAPLE
with(combinat): A260259:=n->fibonacci(n)*fibonacci(n+1)-(-1)^n: seq(A260259(n), n=0..50); # Wesley Ivan Hurt, Feb 04 2017
MATHEMATICA
Table[Fibonacci[n] Fibonacci[n + 1] - (-1)^n, {n, 0, 30}]
PROG
(PARI) for(n=0, 30, print1(fibonacci(n)*fibonacci(n+1)-(-1)^n", "));
(PARI) a(n) = round((2^(-1-n)*(-3*(-1)^n*2^(2+n)-(3-sqrt(5))^n*(-1+sqrt(5))+(1+sqrt(5))*(3+sqrt(5))^n))/5) \\ Colin Barker, Sep 29 2016
(PARI) Vec(-(1-4*x+x^2)/((1+x)*(1-3*x+x^2)) + O(x^30)) \\ Colin Barker, Sep 29 2016
(Sage) [fibonacci(n)*fibonacci(n+1)-(-1)^n for n in (0..30)]
(Maxima) makelist(fib(n)*fib(n+1)-(-1)^n, n, 0, 30);
(Magma) [Fibonacci(n)*Fibonacci(n+1)-(-1)^n: n in [0..30]];
KEYWORD
sign,easy
AUTHOR
Bruno Berselli, Oct 31 2015
STATUS
approved