OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (7,0,1,-7).
FORMULA
G.f.: x*(x+2) / ((x-1)*(7*x-1)*(x^2+x+1)). [Colin Barker, Jan 12 2013]
MATHEMATICA
CoefficientList[Series[(x + 2)/((x - 1) (7 x - 1) (x^2 + x + 1)), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 21 2013 *)
Table[FromDigits[PadRight[{}, n, {2, 1, 0}], 7], {n, 20}] (* or *) LinearRecurrence[{7, 0, 1, -7}, {2, 15, 105, 737}, 20] (* Harvey P. Dale, Feb 28 2023 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved