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

A037641
Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 2,3,1.
1
2, 15, 91, 548, 3291, 19747, 118484, 710907, 4265443, 25592660, 153555963, 921335779, 5528014676, 33168088059, 199008528355, 1194051170132, 7164307020795, 42985842124771, 257915052748628, 1547490316491771
OFFSET
1,1
FORMULA
G.f.: x*(x+2)*(1+x) / ( (x-1)*(6*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 3, 1}], 6], {n, 20}] (* or *) LinearRecurrence[{6, 0, 1, -6}, {2, 15, 91, 548}, 20] (* Harvey P. Dale, Jul 06 2021 *)
CROSSREFS
Sequence in context: A037627 A192369 A037753 * A361303 A288952 A356554
KEYWORD
nonn,base
STATUS
approved