login
A037544
Base-3 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,2.
0
1, 5, 17, 52, 158, 476, 1429, 4289, 12869, 38608, 115826, 347480, 1042441, 3127325, 9381977, 28145932, 84437798, 253313396, 759940189, 2279820569, 6839461709, 20518385128, 61555155386, 184665466160, 553996398481
OFFSET
1,2
FORMULA
G.f.: x*(1+2*x+2*x^2) / ( (x-1)*(3*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
MATHEMATICA
nn=40; With[{c=PadRight[{}, nn, {1, 2, 2}]}, Table[FromDigits[Take[c, n], 3], {n, nn}]] (* Harvey P. Dale, Jul 15 2012 *)
CROSSREFS
Sequence in context: A290186 A178703 A248875 * A090575 A191139 A107167
KEYWORD
nonn,base,easy
STATUS
approved