The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 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 (list; graph; refs; listen; history; text; internal format)
 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}. LINKS CROSSREFS Cf. A087808. Sequence in context: A199334 A278910 A235669 * A298211 A088212 A085208 Adjacent sequences:  A118085 A118086 A118087 * A118089 A118090 A118091 KEYWORD nonn AUTHOR Reinhard Zumkeller, Apr 12 2006 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified January 20 11:01 EST 2020. Contains 331083 sequences. (Running on oeis4.)