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”).

A037792
Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 3,2,0,1.
0
3, 32, 320, 3201, 32013, 320132, 3201320, 32013201, 320132013, 3201320132, 32013201320, 320132013201, 3201320132013, 32013201320132, 320132013201320, 3201320132013201
OFFSET
1,1
FORMULA
G.f.: x*(3-x+x^2) / ( (x-1)*(10*x-1)*(x^2+1) ). - R. J. Mathar, Aug 04 2013
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 2, 0, 1}]], {n, 20}] (* or *) LinearRecurrence[ {11, -11, 11, -10}, {3, 32, 320, 3201}, 20] (* Harvey P. Dale, Jan 18 2014 *)
CROSSREFS
Sequence in context: A035533 A278303 A029502 * A037673 A037799 A091706
KEYWORD
nonn,base,easy
STATUS
approved