OFFSET
1,2
REFERENCES
Steven R. Finch, Mathematical Constants, Cambridge University Press, 2003, Section 6.8 Prouhet-Thue-Morse Constant, p. 437.
LINKS
Eric Weisstein's MathWorld, Thue-Morse Constant
FORMULA
2 - 1/(4 - 3/(16 - 15/(256 - 255/65536 - ...))).
Pattern is generated by 2^(2^n) and 2^(2^n)-1.
EXAMPLE
1.737657494776553621260067888517462099794385624106538329626...
MAPLE
evalf(1/(3-1/(1/2-(1/4)*(product(1-1/2^(2^k), k=0..11)))), 120); # Vaclav Kotesovec, Oct 01 2014
MATHEMATICA
(* 10 terms suffice to get 103 correct digits *) t = Fold[Function[2^2^#2 - (2^2^#2 - 1)/#1], 2, Reverse[Range[0, 10]]]; RealDigits[t, 10, 103] // First
CROSSREFS
KEYWORD
nonn,cons
AUTHOR
Jean-François Alcover, Oct 01 2014
STATUS
approved