OFFSET
1,1
LINKS
Zhuorui He, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (6,1,-6).
FORMULA
G.f.: x*(3+x) / ( (x-1)*(6*x-1)*(1+x) ). - R. J. Mathar, Apr 26 2015
a(n) = floor(19*6^n/35). - Christian Krause, Jun 07 2026
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 1}], 6], {n, 20}] (* Harvey P. Dale, Jul 06 2025 *)
(* Alternative: *)
LinearRecurrence[{6, 1, -6}, {3, 19, 117}, 20] (* Harvey P. Dale, Jul 06 2025 *)
CROSSREFS
KEYWORD
nonn,base,easy,changed
AUTHOR
STATUS
approved
