OFFSET
1,1
LINKS
FORMULA
a(n) = 5a(n-1) + a(n-2) - 5a(n-3).
G.f.: x*(2+x) / ( (x-1)*(5*x-1)*(1+x) ). - R. J. Mathar, Nov 21 2011
a(n) = (11*5^n - 2*(-1)^n - 9)/24. - Stefano Spezia, Jul 21 2021
MATHEMATICA
With[{nn=30}, Table[FromDigits[PadRight[{}, n, {2, 1}], 5], {n, nn}]] (* or *) LinearRecurrence[{5, 1, -5}, {2, 11, 57}, 30] (* Harvey P. Dale, Jun 13 2016 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved