%I #8 Oct 19 2014 15:41:05
%S 1,2,3,4,5,5,6,7,8,8,9,10,11,12,12,13,14,15,16,16,17,18,19,19,20,21,
%T 22,23,23,24,25,26,27,27,28,29,30,30,31,32,33,34,34,35,36,37,38,38,39,
%U 40,41,41,42,43,44,45,45,46,47,48,49,49,50,51,52,52,53
%N Least k such that 4*k/v(2*k)^2 - Pi < 1/n, where the sequence v is defined in Comments.
%C The sequence v is defined as follows: v(1) = 0, v(2) = 1, v(n) = v(n-1)/(n-2) + v(n-2). It appears that a(n+1) - a(n) is in {0,1} for n >= 2.
%D Steven R. Finch, Mathematical Constants, Cambridge University Press, 2003, p. 19.
%H Clark Kimberling, <a href="/A247971/b247971.txt">Table of n, a(n) for n = 1..1000</a>
%e Approximations for the first few terms w(n) = 4*n/v(2*n)^2 - Pi and 1/n:
%e n ... 4*n/v(2*n)^2-Pi ... 1/n
%e 1 ... 0.858407 .......... 1
%e 2 ... 0.413963 ......... 0.5
%e 3 ... 0.271741 .......... 0.333333
%e 4 ... 0.202081 .......... 0.25
%e 5 ... 0.160801 .......... 0.2
%e 6 ... 0.133508 .......... 0.166666
%e a(2) = 2 because w(2) < 1/2 < w(1).
%t $RecursionLimit = Infinity; z = 400; v[1] = 0; v[2] = 1;
%t v[n_] := v[n] = v[n - 1]/(n - 2) + v[n - 2];
%t TableForm[Table[{n, N[4 n/(v[2 n]^2) - Pi], N[1/n]}, {n, 1, 10}]]
%t f[n_] := f[n] = Select[Range[z], 4 #/(v[2 #]^2) - Pi < 1/n &, 1];
%t u = Flatten[Table[f[n], {n, 1, z}]] (* A247971 *)
%t d = Differences[u]
%t v = Flatten[Position[d, 0]] (* A247972 *)
%Y Cf. A247972, A247973, A247974.
%K nonn,easy
%O 1,2
%A _Clark Kimberling_, Sep 28 2014