OFFSET
1,2
MATHEMATICA
a[1]=1; a[n_]:=a[n]=If[OddQ[n], a[(n+1)/2]+1, a[n/2]+2]; Table[a[n], {n, 300}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 22 2006
STATUS
approved