OFFSET
1,2
EXAMPLE
A218320(n) for 1 <= n <= 24 is {1, 1, 1, 2, 1, 2, 1, 3, 2, 2, 1, 4, 1, 2, 2, 5, 1, 4, 1, 4, 2, 2, 1, 7}; the records are {1, 2, 3, 4, 5, 7}, thus these are the first 6 terms of this sequence.
MATHEMATICA
f[n_, i_, t_] := f[n, i, t] = If[n == 1, 1, If[t == 1, Boole[n <= i], Sum[f[n/d, d, t - 1], {d, Select[Divisors@ n, # <= i &]}]]]; Union@ FoldList[Max, Array[f[#, #, 4] &, 10^5]] (* Michael De Vlieger, Sep 06 2017, after Alois P. Heinz at A218320 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Sep 06 2017
STATUS
approved