OFFSET
0,1
COMMENTS
See Comments at A245215.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1999
EXAMPLE
c = 2.7207664507294752975469517348171513242... ; the first 12 numbers f(n,1) comprise S(12) = {1, 2, 1/2, 3/2, 2/3, 5/3, 8/3, 3/8, 11/8, 8/11, 19/11, 11/19}; max(S(12)) = 8/3, with continued fraction [2,1,2].
MATHEMATICA
tmpRec = $RecursionLimit; $RecursionLimit = Infinity; u[x_] := u[x] = x + 1; d[x_] := d[x] = 1/x; r = Sqrt[3]; w = Table[Floor[k*r], {k, 2000}]; s[1] = 1; s[n_] := s[n] = If[MemberQ[w, n - 1], u[s[n - 1]], d[s[n - 1]]]; max = Max[N[Table[s[n], {n, 1, 3000}], 200]] (* A245221 *)
ContinuedFraction[max, 120] (* A245222 *)
CROSSREFS
KEYWORD
nonn,cofr,easy
AUTHOR
Clark Kimberling, Jul 14 2014
EXTENSIONS
Offset changed by Andrew Howroyd, Aug 08 2024
STATUS
approved