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

A037640
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 2,3,1.
0
2, 13, 66, 332, 1663, 8316, 41582, 207913, 1039566, 5197832, 25989163, 129945816, 649729082, 3248645413, 16243227066, 81216135332, 406080676663, 2030403383316, 10152016916582, 50760084582913, 253800422914566
OFFSET
1,1
FORMULA
G.f.: x*(x+2)*(1+x) / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 3, 1}], 5], {n, 30}] (* or *) LinearRecurrence[ {5, 0, 1, -5}, {2, 13, 66, 332}, 30] (* Harvey P. Dale, Jul 06 2020 *)
CROSSREFS
Sequence in context: A037626 A160459 A037752 * A137967 A045764 A106999
KEYWORD
nonn,base
STATUS
approved