OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Kival Ngaokrajang, Illustration of initial terms
Kival Ngaokrajang, Illustration for n = 6
Wikipedia, Thue-Morse sequence
Index entries for linear recurrences with constant coefficients, signature (4, 5, -20, -4, 16).
FORMULA
Empirical g.f.: -2*x*(4*x^3-4*x^2-2*x+1) / ((x-1)*(x+1)*(2*x-1)*(2*x+1)*(4*x-1)). - Colin Barker, Apr 27 2014
a(n) = floor((2^(n + 2) + 3 - (-1)^n)^2/72). - G. C. Greubel, Sep 29 2017
MATHEMATICA
Table[Floor[(2^(n + 2) + 3 - (-1)^n)^2/72], {n, 0, 50}] (* G. C. Greubel, Sep 29 2017 *)
PROG
(PARI){for (n=1, 50, b=(2^(n+1)+3+(-1)^n)/6; a=floor(b^2/2); print1(a, ", "))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Kival Ngaokrajang, Apr 27 2014
STATUS
approved