login
A037535
Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 1,1,2.
2
1, 11, 112, 1121, 11211, 112112, 1121121, 11211211, 112112112, 1121121121, 11211211211, 112112112112, 1121121121121, 11211211211211, 112112112112112, 1121121121121121
OFFSET
1,2
FORMULA
G.f.: x*(1+x+2*x^2) / ( (x-1)*(10*x-1)*(1+x+x^2) ). - R. J. Mathar, Aug 12 2013
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {1, 1, 2}]], {n, 20}] (* Harvey P. Dale, Aug 03 2017 *)
PROG
(PARI) Vec(x*(1+x+2*x^2)/((x-1)*(10*x-1)*(1+x+x^2)) + O(x^25)) \\ Jinyuan Wang, Apr 14 2020
CROSSREFS
Sequence in context: A058949 A119742 A075842 * A065834 A104720 A132926
KEYWORD
nonn,base,easy
STATUS
approved