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 (7,0,0,1,-7).
FORMULA
a(n) = 7a(n-1) + a(n-4) - 7a(n-5).
G.f.: ( x*(2+x+3*x^3) ) / ( (x-1)*(7*x-1)*(1+x)*(1+x^2) ). - R. J. Mathar, Oct 14 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 1, 0, 3}], 7], {n, 20}] (* Harvey P. Dale, Jan 24 2026 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved
