OFFSET
0,4
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,2,-22,-4,14,-1,-1).
FORMULA
G.f.: 2*x^3*(x^2-x+2) / ((x+1)*(x^2-3*x+1)*(x^2-x-1)*(x^2+4*x-1)).
a(n) = (F(3*n) - 3*(-1)^n*F(n))/5 - (L(2*n) - 2*(-1)^n)/5, where F=A000045 and L=A000032. - Ehren Metcalfe, Mar 26 2016
EXAMPLE
a(4) is 18 because F(4)^3 - F(4)^2 = 3^3 - 3^2 = 18.
MATHEMATICA
CoefficientList[Series[2 x^3 (x^2 - x + 2)/((x + 1) (x^2 - 3 x + 1) (x^2 - x - 1) (x^2 + 4 x - 1)), {x, 0, 40}], x] (* Vincenzo Librandi, Jun 26 2014 *)
Table[#^3 - #^2 &@ Fibonacci@ n, {n, 0, 25}] (* Michael De Vlieger, Mar 27 2016 *)
LinearRecurrence[{5, 2, -22, -4, 14, -1, -1}, {0, 0, 0, 4, 18, 100, 448}, 30] (* Harvey P. Dale, Aug 22 2020 *)
PROG
(PARI) vector(50, n, fibonacci(n-1)^3-fibonacci(n-1)^2)
(Magma) [Fibonacci(n)^3 - Fibonacci(n)^2: n in [0..30]]; // Vincenzo Librandi, Jun 26 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jun 25 2014
STATUS
approved