OFFSET
1,1
LINKS
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*(3+2*x^2+x^3) / ( (x-1)*(7*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, May 02 2015
MATHEMATICA
nn=20; With[{c=PadRight[{}, nn, {3, 0, 2, 1}]}, Table[FromDigits[Take[c, n], 7], {n, nn}]] (* or *) LinearRecurrence[{7, 0, 0, 1, -7}, {3, 21, 149, 1044, 7311}, 20] (* Harvey P. Dale, Jul 10 2012 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved