OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..99 [offset shifted by Georg Fischer, Jun 16 2021]
Index entries for linear recurrences with constant coefficients, signature (101,-100).
FORMULA
a(n) = 12*(100^(n-1)-1)/99 = 12*A094028(n-1) for n>=1. - Jon E. Schoenfield, Jun 24 2010
G.f.: 12*x / ( (100*x-1)*(x-1) ). - R. J. Mathar, Aug 24 2011
MAPLE
a:= n-> parse(cat(0, 12$n)):
seq(a(n), n=0..20); # Alois P. Heinz, Jun 16 2021
MATHEMATICA
CoefficientList[Series[12 x /((100 x - 1) (x - 1)), {x, 0, 20}], x] (* Vincenzo Librandi, Jun 13 2014 *)
Table[FromDigits[PadRight[{}, 2n, {1, 2}]], {n, 0, 15}] (* or *) LinearRecurrence[ {101, -100}, {0, 12}, 15] (* Harvey P. Dale, Nov 12 2017 *)
PROG
(Magma) [12*((100^(n-1)-1)/99): n in [1..20]]; // Vincenzo Librandi, Jun 13 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jun 05 2010
EXTENSIONS
Corrected by N. J. A. Sloane, Jun 22 2010
Offset changed to 0 by Georg Fischer, Jun 16 2021
STATUS
approved