This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A190128 Numbers 1 through 10000 sorted lexicographically in ternary representation. 8
 1, 3, 9, 27, 81, 243, 729, 2187, 6561, 6562, 6563, 2188, 6564, 6565, 6566, 2189, 6567, 6568, 6569, 730, 2190, 6570, 6571, 6572, 2191, 6573, 6574, 6575, 2192, 6576, 6577, 6578, 731, 2193, 6579, 6580, 6581, 2194, 6582, 6583, 6584, 2195, 6585, 6586, 6587, 244 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS A190129 = inverse permutation: a(A190129(n)) = A190129(a(n)) = n; a(n) <> n for n > 1. LINKS Reinhard Zumkeller, Table of n, a(n) for n = 1..10000 (full sequence) Eric Weisstein's World of Mathematics, Lexicographic Order Eric Weisstein's World of Mathematics, Ternary Wikipedia, Lexicographical order Wikipedia, Ternary numeral system EXAMPLE a(12) = 2188 -> 10000001  [tern]; a(13) = 6564 -> 100000010 [tern]; a(14) = 6565 -> 100000011 [tern]; a(15) = 6566 -> 100000012 [tern]; a(16) = 2189 -> 10000002  [tern]; a(17) = 6567 -> 100000020 [tern]; a(18) = 6568 -> 100000021 [tern]; a(19) = 6569 -> 100000022 [tern]; a(20) =  730 -> 1000001   [tern]; a(21) = 2190 -> 10000010  [tern]; largest term a(5164) = 10000 -> 111201101 [tern]; last term a(10000) = 6560 -> 22222222 [tern], largest term lexicographically. PROG (Haskell) import Data.Ord (comparing) import Data.List (sortBy) a190128 n = a190128_list !! (n-1) a190128_list = sortBy (comparing (show . a007089)) [1..10000] CROSSREFS Cf. A007089; A190126 (base 2), A190130 (base 8), A190016 (base 10), A190132 (base 12), A190134 (base 16). Sequence in context: A249019 A216096 A300148 * A216097 A243845 A140429 Adjacent sequences:  A190125 A190126 A190127 * A190129 A190130 A190131 KEYWORD nonn,base,fini,full AUTHOR Reinhard Zumkeller, May 06 2011 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 May 26 15:18 EDT 2019. Contains 323597 sequences. (Running on oeis4.)