OFFSET
1,3
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..5004
MATHEMATICA
Block[{a, r, s, nn = 119}, a[1] = 1; Do[If[! IntegerQ[a[#1]], Set[a[#1], i], Set[a[#2], i]] & @@ {i - #, i + #} &@ Floor[i/2], {i, 2 nn}]; s = TakeWhile[Array[a[#] &, 2 nn], IntegerQ]; Map[(1/2) (# - 1) &, Union@ FoldList[Max, s]]] (* Michael De Vlieger, Aug 27 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved