|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
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
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|