OFFSET
1,1
REFERENCES
G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, Oxford University Press, 6 ed., 2008, section 17.10, p. 340.
LINKS
D. H. Bailey, J. M. Borwein, R. E. Crandall and C. Pomerance, On the binary expansions of algebraic numbers, Journal de Théorie des Nombres de Bordeaux 16 (2004), 487-518. LBNL-53854.
Simon Plouffe, Constants derived from sums of A004018 [broken link?].
FORMULA
Sum_{i>=0} A004018(i)/2^i.
Bailey et al. point out the approximation Pi*(1+2*exp(-Pi^2/log(2))^2)/log(2), correct up to 23 decimal places. - Jean-François Alcover, Jun 27 2015
Equals 1 + 4 * Sum_{k>=0} (-1)^k/(2^(2*k+1) - 1). - Amiram Eldar, Jun 22 2020
EXAMPLE
4.532372014258974100827957178...
MATHEMATICA
Clear[s]; s[n_] := s[n] = RealDigits[ Sum[ SquaresR[2, k]/2^k, {k, 0, n}], 10, 29] // First; s[n=100]; While[s[n] != s[n-100], n = n+100]; s[n] (* Jean-François Alcover, Feb 13 2013 *)
RealDigits[1 + 4*Sum[(-1)^n/(2^(2*n + 1) - 1), {n, 0, 200}], 10, 100][[1]] (* Amiram Eldar, Jun 22 2020 *)
CROSSREFS
KEYWORD
cons,nonn
AUTHOR
R. J. Mathar, Nov 25 2006
STATUS
approved