|
|
A037512
|
|
Base 3 digits are, in order, the first n terms of the periodic sequence with initial period 2,0,1.
|
|
0
|
|
|
2, 6, 19, 59, 177, 532, 1598, 4794, 14383, 43151, 129453, 388360, 1165082, 3495246, 10485739, 31457219, 94371657, 283114972, 849344918, 2548034754, 7644104263, 22932312791, 68796938373, 206390815120, 619172445362
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(2+x^2) / ( (x-1)*(3*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
|
|
MATHEMATICA
|
Table[FromDigits[PadRight[{}, n, {2, 0, 1}], 3], {n, 30}] (* or *) LinearRecurrence[{3, 0, 1, -3}, {2, 6, 19, 59}, 30] (* Harvey P. Dale, Jun 30 2022 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|