OFFSET
1,5
LINKS
Mathenomicon, Hofstadter-Conway Sequence.
N. J. A. Sloane, My favorite integer sequences, in Sequences and their Applications (Proceedings of SETA '98).
Eric Weisstein's World of Mathematics, Hofstadter-Conway 10000-Dollar Sequence.
MATHEMATICA
a[1] = a[2] = 1; a[n_] := a[n] = a[a[n - 1]] + a[n - a[n - 1]]; Do[ a[n], {n, 10000000}]; f[n_] := Block[{k = C}, While[ a[k]/k - 1/2 < 1/n, k-- ]; k] (C is a number generally twice as large as the previous answer) (* Robert G. Wilson v, Jun 11 2004 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jun 11 2004
STATUS
approved