OFFSET
1,2
LINKS
R. J. Mathar, Table of n, a(n) for n = 1..1000
FORMULA
MATHEMATICA
a[1] = 1; a[n_] := a[n] = If[EvenQ@ n, 2 n + a[n/2], (n - 1)/2 + a[2 (n + 1)]]; Union@ Rest@ FoldList[Max, 0, #] &@ Array[a, 10^3] (* Michael De Vlieger, May 06 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 07 2016
EXTENSIONS
Typo in definition corrected by Felix Fröhlich, Apr 07 2016
STATUS
approved