OFFSET
1,3
COMMENTS
Inspired by A266569.
LINKS
Robert Price, Table of n, a(n) for n = 1..1000
MAPLE
MATHEMATICA
a[1]=0; a[n_] := a[n] = If[EvenQ[n], n/2 + a[n/2], (n - 1)/2 + a[3*(n - 1) + 4]]; Array[a, 60] (* Robert Price, Apr 08 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 08 2016
STATUS
approved