OFFSET
1,3
COMMENTS
REFERENCES
Steven R. Finch, Mathematical Constants, Cambridge University Press, 2003, p. 20.
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..2000
EXAMPLE
Let s(n) = Pi/2 - sum{2^h/((2h+1)*C(2h,h)), h = 1..n}. Approximations follow:
n ... s(n) ........ 1/3^n
1 ... 0.0483114 ... 0.333333
2 ... 0.0066446 ... 0.111111
3 ... 0.0010891 ... 0.037037
4 ... 0.0001962 ... 0.012345
5 ... 0.00003754 .. 0.004115
a(5) = 3 because s(3) < 1/3^5 < s(2).
MATHEMATICA
z = 300; p[k_] := p[k] = Sum[1/((h^2)*Binomial[2 h, h]), {h, 1, k}]
d = N[Table[Pi^2/18 - p[k], {k, 1, z/5}], 12]
f[n_] := f[n] = Select[Range[z], Pi^2/18 - p[#] < 1/3^n &, 1]
u = Flatten[Table[f[n], {n, 1, z}]] (* A248610 *)
d = Differences[u]
v = Flatten[Position[d, 0]] (* A248611 *)
w = Flatten[Position[d, 1]] (* A248612 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 10 2014
STATUS
approved