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

A037563
Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 2,2,1.
0
2, 14, 85, 512, 3074, 18445, 110672, 664034, 3984205, 23905232, 143431394, 860588365, 5163530192, 30981181154, 185887086925, 1115322521552, 6691935129314, 40151610775885, 240909664655312, 1445457987931874
OFFSET
1,1
FORMULA
G.f.: x*(2+2*x+x^2) / ( (x-1)*(6*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 2, 1}], 6], {n, 20}] (* or *) LinearRecurrence[{6, 0, 1, -6}, {2, 14, 85, 512}, 20] (* Harvey P. Dale, Mar 14 2023 *)
CROSSREFS
Sequence in context: A361552 A036692 A075140 * A005610 A065355 A162478
KEYWORD
nonn,base,easy
STATUS
approved