OFFSET
0,4
COMMENTS
Row sums of number triangle A186024.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-4,1).
FORMULA
G.f.: (1-4x+3x^2-x^3)/(1-4x+4x^2-x^3) = (1-4x+3x^2-x^3)/((1-x)(1-3x+x^2)).
a(n) = -A027941(n-1), n>0. - R. J. Mathar, Mar 21 2013
MATHEMATICA
Join[{1}, Table[0^n + 1 - Fibonacci[n - 1]^2 - Fibonacci[n]^2, {n, 30}]] (* Vincenzo Librandi, Apr 24 2015 *)
LinearRecurrence[{4, -4, 1}, {1, 0, -1, -4}, 30] (* Harvey P. Dale, Dec 16 2015 *)
PROG
(Magma) [0^n+1-Fibonacci(n-1)^2-Fibonacci(n)^2: n in [0..30]]; // Vincenzo Librandi, Apr 24 2015
(PARI) x='x+O('x^50); Vec((1-4*x+3*x^2-x^3)/(1-4*x+4*x^2-x^3)) \\ G. C. Greubel, Jul 24 2017
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Barry, Feb 10 2011
EXTENSIONS
More terms from Vincenzo Librandi, Apr 24 2015
STATUS
approved