|
|
A037785
|
|
Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 3,1,2,0.
|
|
0
|
|
|
3, 31, 312, 3120, 31203, 312031, 3120312, 31203120, 312031203, 3120312031, 31203120312, 312031203120, 3120312031203, 31203120312031, 312031203120312, 3120312031203120
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(3+x+2*x^2) / ( (x-1)*(10*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Aug 04 2013
|
|
MATHEMATICA
|
Table[FromDigits[PadRight[{}, n, {3, 1, 2, 0}]], {n, 30}] (* Harvey P. Dale, Mar 15 2020 *)
|
|
PROG
|
(PARI) Vec(x*(3+x+2*x^2)/((x-1)*(10*x-1)*(1+x)*(x^2+1)) + O(x^25)) \\ Jinyuan Wang, Apr 14 2020
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|