OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (111,-1110,1000).
FORMULA
MAPLE
A332159 := n -> 5*(10^(2*n+1)-1)/9+4*10^n;
MATHEMATICA
Array[5 (10^(2 # + 1)-1)/9 + 4*10^# &, 15, 0]
Table[FromDigits[Join[PadRight[{}, n, 5], PadRight[{9}, n+1, 5]]], {n, 0, 20}] (* or *) LinearRecurrence[ {111, -1110, 1000}, {9, 595, 55955}, 20] (* Harvey P. Dale, May 31 2023 *)
PROG
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
M. F. Hasler, Feb 09 2020
STATUS
approved