OFFSET
1,3
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,4,-4).
FORMULA
From Colin Barker, Feb 01 2013: (Start)
a(n) = a(n-1) + 4*a(n-3) - 4*a(n-4).
G.f.: x^2*(x^2+x+1) / ((x-1)*(4*x^3-1)). (End)
MATHEMATICA
LinearRecurrence[{1, 0, 4, -4}, Range[0, 3], 50] (* Paolo Xausa, Aug 27 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 25 2011
STATUS
approved