OFFSET
0,4
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 0..2106
Eric Weisstein's World of Mathematics, Thue-Morse sequence.
Wikipedia, Thue-Morse sequence.
FORMULA
a(n) = (-1)^n/2 + 3^(n+3/2)/2^(n+4) * (2*n-3)!!/n! * hypergeom([3/2, 3/2], [3/2 - n], 1/4).
D-finite with recurrence: n*a(n) = (n-4)*a(n-1) + (n-2)*(5*a(n-2) + 3*a(n-3)).
a(n) ~ c * 3^n / n^(3/2), where c = 3^(3/2) / (32*sqrt(Pi)) = 0.09161297...
MAPLE
f:= gfun:-rectoproc({n*a(n) = (n-4)*a(n-1) + (n-2)*(5*a(n-2) + 3*a(n-3)), a(0)=0, a(1)=1, a(2)=-1}, a(n), remember):
map(f, [$0..40]); # Robert Israel, Jul 23 2019
MATHEMATICA
Table[(-1)^n/2 + 3^(n + 3/2)/2^(n + 4) (2 n - 3)!!/n! Hypergeometric2F1[3/2, 3/2, 3/2 - n, 1/4], {n, 0, 31}]
CROSSREFS
KEYWORD
sign
AUTHOR
Vladimir Reshetnikov, Jul 21 2019
STATUS
approved