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