login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A037799
Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 3,2,1,0.
0
3, 32, 321, 3210, 32103, 321032, 3210321, 32103210, 321032103, 3210321032, 32103210321, 321032103210, 3210321032103, 32103210321032, 321032103210321, 3210321032103210
OFFSET
1,1
FORMULA
G.f.: x*(3+2*x+x^2) / ( (x-1)*(10*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Aug 04 2013
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 2, 1, 0}]], {n, 20}] (* or *) LinearRecurrence[ {10, 0, 0, 1, -10}, {3, 32, 321, 3210, 32103}, 20] (* Harvey P. Dale, Apr 06 2017 *)
CROSSREFS
Sequence in context: A029502 A037792 A037673 * A091706 A091705 A137215
KEYWORD
nonn,base,easy
STATUS
approved