|
|
A037528
|
|
Base-3 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,2.
|
|
0
|
|
|
1, 4, 14, 43, 130, 392, 1177, 3532, 10598, 31795, 95386, 286160, 858481, 2575444, 7726334, 23179003, 69537010, 208611032, 625833097, 1877499292, 5632497878, 16897493635, 50692480906, 152077442720, 456232328161
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1+x+2*x^2) / ( (x-1)*(3*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 27 2015
|
|
MATHEMATICA
|
nn=30; With[{c=PadRight[{}, nn, {1, 1, 2}]}, Table[FromDigits[Take[c, n], 3], {n, nn}]] (* Harvey P. Dale, Jun 04 2012 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|