login
A037680
Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 1,0,2,3.
0
1, 10, 102, 1023, 10231, 102310, 1023102, 10231023, 102310231, 1023102310, 10231023102, 102310231023, 1023102310231, 10231023102310, 102310231023102, 1023102310231023
OFFSET
1,2
FORMULA
G.f.: x*(1-x+3*x^2) / ( (x-1)*(10*x-1)*(x^2+1) ). - R. J. Mathar, Aug 12 2013
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {1, 0, 2, 3}]], {n, 20}] (* Harvey P. Dale, Sep 26 2021 *)
PROG
(PARI) Vec(x*(1-x+3*x^2)/((x-1)*(10*x-1)*(x^2+1)) + O(x^25)) \\ Jinyuan Wang, Apr 14 2020
CROSSREFS
Sequence in context: A078282 A336401 A037503 * A038378 A158242 A147636
KEYWORD
nonn,base,easy
STATUS
approved