OFFSET
1,1
COMMENTS
REFERENCES
Steven R. Finch, Mathematical Constants, Cambridge University Press, 2003, p. 14.
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
EXAMPLE
Approximations are shown here:
n ... ((n+2)/(n-2))^n - e^4 ... 1/n
6 .... 9.40185 ................ 0.16666
12 ... 2.09576 ................ 0.8333333
18 ... 0.913001 ............... 0.0555555
24 ... 0.510023 ............... 0.0416667
30 ... 0.325376 ............... 0.0333333
36 ... 0.225565 ............... 0.0277778
a(2) = 25 because p(25) - e^4 < 1/2 < p(24) - e^4.
MATHEMATICA
z = 1200; p[k_] := p[k] = ((k + 2)/(k - 2))^k
N[Table[p[n] - E^4, {n, 1, z/12}]]
f[n_] := f[n] = Select[Range[z], # > 2 && p[#] - E^4 < 1/n &, 1]
u = Flatten[Table[f[n], {n, 1, z/10}]] (* A248111 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Oct 02 2014
STATUS
approved