This site is supported by donations to The OEIS Foundation. Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A181099 Exchange rightmost two ternary digits of n>1; a(0)=0, a(1)=3. 0
 0, 3, 6, 1, 4, 7, 2, 5, 8, 9, 12, 15, 10, 13, 16, 11, 14, 17, 18, 21, 24, 19, 22, 25, 20, 23, 26, 27, 30, 33, 28, 31, 34, 29, 32, 35, 36, 39, 42, 37, 40, 43, 38, 41, 44, 45, 48, 51, 46, 49, 52, 47, 50, 53, 54, 57, 60, 55, 58, 61, 56, 59, 62, 63, 66, 69, 64, 67, 70, 65, 68, 71, 72 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS This is to A080412 as A007089 Numbers in base 3, is to A007088 Numbers written in base 2. self-inverse permutation of natural numbers: a(a(n)) = n. LINKS Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,1,-1). FORMULA a(n)= +a(n-1) +a(n-9) -a(n-10) = 9 *floor(n/9) + 3* (n mod 3)+(floor(n/3) mod 3). G.f.: x*(3+3*x-5*x^2+3*x^3+3*x^4-5*x^5+3*x^6+3*x^7+x^8) / ( (1+x+x^2)*(x^6+x^3+1)*(x-1)^2 ). [From R. J. Mathar, Oct 12 2010] EXAMPLE a(10) = a('101') = 110 = 12. a(20) = a('202') = 220 = 24. a(30) = a('1010') = 1001 = 28. CROSSREFS Cf. A007089, A080412. Sequence in context: A195699 A199795 A200358 * A163327 A175032 A078768 Adjacent sequences:  A181096 A181097 A181098 * A181100 A181101 A181102 KEYWORD base,easy,nonn AUTHOR Jonathan Vos Post, Oct 03 2010 EXTENSIONS Corrected and extended by D. S. McNeil, Oct 06 2010 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 September 21 08:36 EDT 2019. Contains 327253 sequences. (Running on oeis4.)