OFFSET
0,2
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1, 3, -2, -2)
FORMULA
a(n) = a(n-1) + 3*a(n-2) - 2*a(n-3) - 2*a(n-4), where a(0) = 1, a(1) = 2, a(2) = 3, a(3) = 4.
G.f.: (1 + x - 2 x^2 - 3 x^3)/(1 - x - 3 x^2 + 2 x^3 + 2 x^4).
MATHEMATICA
LinearRecurrence[{1, 3, -2, -2}, {1, 2, 3, 4}, 50]
nxt[{a_, b_, c_, d_}]:={b, c, d, d+3c-2b-2a}; NestList[nxt, {1, 2, 3, 4}, 40][[;; , 1]] (* Harvey P. Dale, Jan 16 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Nov 25 2017
STATUS
approved
