login
A118088
a(0) = 0, a(n) = (1+2*0^(n mod 3))*a(floor(n/3)) + n mod 3.
1
0, 1, 2, 3, 2, 3, 6, 3, 4, 9, 4, 5, 6, 3, 4, 9, 4, 5, 18, 7, 8, 9, 4, 5, 12, 5, 6, 27, 10, 11, 12, 5, 6, 15, 6, 7, 18, 7, 8, 9, 4, 5, 12, 5, 6, 27, 10, 11, 12, 5, 6, 15, 6, 7, 54, 19, 20, 21, 8, 9, 24, 9, 10, 27, 10, 11, 12, 5, 6, 15, 6, 7, 36, 13, 14, 15, 6, 7, 18, 7, 8, 81, 28, 29, 30, 11, 12
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
Cf. A087808.
Sequence in context: A278910 A337982 A235669 * A298211 A088212 A085208
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 12 2006
STATUS
approved