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

A037560
Base 3 digits are, in order, the first n terms of the periodic sequence with initial period 2,2,1.
0
2, 8, 25, 77, 233, 700, 2102, 6308, 18925, 56777, 170333, 511000, 1533002, 4599008, 13797025, 41391077, 124173233, 372519700, 1117559102, 3352677308, 10058031925, 30174095777, 90522287333, 271566862000, 814700586002
OFFSET
1,1
FORMULA
G.f.: x*(2+2*x+x^2) / ( (x-1)*(3*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 2, 1}], 3], {n, 30}] (* or *) LinearRecurrence[ {3, 0, 1, -3}, {2, 8, 25, 77}, 30] (* Harvey P. Dale, Jul 08 2017 *)
CROSSREFS
Sequence in context: A119854 A176855 A309237 * A138804 A212323 A301842
KEYWORD
nonn,base,easy
STATUS
approved