login
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