OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (6,-6,6,-5).
FORMULA
G.f.: ( x*(2+x) ) / ( (x-1)*(5*x-1)*(x^2+1) ). - R. J. Mathar, Oct 15 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 3, 1, 0}], 5], {n, 30}] (* Harvey P. Dale, Jan 26 2025 *)
(* Alternative: *)
LinearRecurrence[{6, -6, 6, -5}, {2, 13, 66, 330}, 30] (* Harvey P. Dale, Jan 26 2025 *)
PROG
(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; -5, 6, -6, 6]^(n-1)*[2; 13; 66; 330])[1, 1] \\ Charles R Greathouse IV, Jun 02 2026
CROSSREFS
KEYWORD
nonn,base,easy,changed
AUTHOR
STATUS
approved
