OFFSET
0,3
COMMENTS
a(0) = 0, a(3*n) = 3*a(n), a(3*n+i) = a(n)+i with 1<=i<=2;
A118089(n) = Min{m: a(m) = n}.
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 12 2006
STATUS
approved