OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,0,1,-3).
FORMULA
G.f.: x*(2+2*x+x^2) / ( (x-1)*(3*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 2, 1}], 3], {n, 30}] (* or *) LinearRecurrence[ {3, 0, 1, -3}, {2, 8, 25, 77}, 30] (* Harvey P. Dale, Jul 08 2017 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved