OFFSET
0,4
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..10000
Catherine Mary Kenyon, The Calkin-Wilf Tree and Its Various Properties, Master's Thesis, Clemson University (2019), 3075.
FORMULA
a(n) = max_{0 <= i <= n} A002487(i).
MATHEMATICA
FoldList[Max, Nest[Append[#1, If[OddQ[#2], #1[[(#2 + 1)/2]], #1[[#2/2]] + #1[[(#2 + 2)/2]] ]] & @@ {#, Length@ # + 1} &, {0, 1}, 90]] (* Michael De Vlieger, Jul 10 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Mar 15 2016
STATUS
approved