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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A115303 a(n) = if n<3 then n else 3*a(floor(n/3)) + 2 - n mod 3. 9
 1, 2, 5, 4, 3, 8, 7, 6, 17, 16, 15, 14, 13, 12, 11, 10, 9, 26, 25, 24, 23, 22, 21, 20, 19, 18, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Self-inverse permutation of the natural numbers; A115310(n+1,2) = a(n); if n is written in ternary representation, then a(n) is the value after replacing all digits d (but not the leading one) by 2-d. LINKS CROSSREFS Cf. A054429, A115304, A115305, A115306, A115307, A115308, A115309, A106649. Sequence in context: A265358 A171837 A216253 * A266403 A266415 A132664 Adjacent sequences:  A115300 A115301 A115302 * A115304 A115305 A115306 KEYWORD nonn,base AUTHOR Reinhard Zumkeller, Jan 20 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 February 25 08:48 EST 2020. Contains 332221 sequences. (Running on oeis4.)