OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,0,1,-6).
FORMULA
G.f.: x*(x+2)*(1+x) / ( (x-1)*(6*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 3, 1}], 6], {n, 20}] (* or *) LinearRecurrence[{6, 0, 1, -6}, {2, 15, 91, 548}, 20] (* Harvey P. Dale, Jul 06 2021 *)
PROG
(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; -6, 1, 0, 6]^(n-1)*[2; 15; 91; 548])[1, 1] \\ Charles R Greathouse IV, Jun 02 2026
CROSSREFS
KEYWORD
nonn,base,easy,changed
AUTHOR
STATUS
approved
