|
|
A037532
|
|
Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,2.
|
|
0
|
|
|
1, 8, 58, 407, 2850, 19952, 139665, 977656, 6843594, 47905159, 335336114, 2347352800, 16431469601, 115020287208, 805142010458, 5635994073207, 39451958512450, 276163709587152, 1933145967110065
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1+x+2*x^2) / ( (x-1)*(7*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 29 2015
a(n) = (29*7^n + 7*sqrt(3)*sin(2*Pi*n/3) + 9*cos(2*Pi*n/3) - 38)/171. - Ilya Gutkovskiy, Apr 27 2016
|
|
MATHEMATICA
|
Rest@ CoefficientList[Series[x (1 + x + 2 x^2)/((x - 1) (7 x - 1) (1 + x + x^2)), {x, 0, 19}], x] (* Michael De Vlieger, Apr 28 2016 *)
|
|
PROG
|
(PARI) Vec(x*(1+x+2*x^2) / ( (x-1)*(7*x-1)*(1+x+x^2) ) + O(x^30)) \\ Michel Marcus, Apr 28 2016
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|