OFFSET
0,3
LINKS
M. Albert, R. Aldred, M. Atkinson, C Handley, D. Holton, D. McCaughan and H. van Ditmarsch, Sorting Classes, Elec. J. of Comb., Vol. 12 (2005), R31.
Index entries for linear recurrences with constant coefficients, signature (5,-3,0,-1).
FORMULA
a(n) = 4*a(n-1) + a(n-2) + a(n-3) - 4; n>=4.
G.f.: 1+x*(1-3*x-x^2-x^3)/((1-x)*(1-4*x-x^2-x^3)). - Colin Barker, Jan 16 2012
MATHEMATICA
a[1] = 1; a[2] = 2; a[3] = 6; a[n_] := a[n] = 4a[n - 1] + a[n - 2] + a[n - 3] - 4; Table[a[n], {n, 24}] (* Robert G. Wilson v, Nov 04 2005 *)
LinearRecurrence[{5, -3, 0, -1}, {1, 2, 6, 23}, 30] (* Harvey P. Dale, Jan 01 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Len Smiley, Nov 01 2005
EXTENSIONS
More terms from Robert G. Wilson v, Nov 04 2005
a(0)=1 prepended by Alois P. Heinz, Mar 12 2024
STATUS
approved