OFFSET
1,1
LINKS
FORMULA
a(n) = 6a(n-1) + a(n-2) - 6a(n-3).
G.f.: x*(2+x) / ( (x-1)*(6*x-1)*(1+x) ). - R. J. Mathar, Nov 21 2011
MATHEMATICA
Module[{nn=20, d}, d=PadRight[{}, nn, {2, 1}]; Table[FromDigits[Take[d, n], 6], {n, nn}]] (* or *) LinearRecurrence[{6, 1, -6}, {2, 13, 80}, 20] (* Harvey P. Dale, Feb 26 2015 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
An incorrect recurrence was deleted by N. J. A. Sloane, Sep 13 2009
STATUS
approved