OFFSET
1,2
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, Duodecimal
Wikipedia, Lexicographical order
Wikipedia, Duodecimal
EXAMPLE
a(13) = 1737 -> 1009 [doz];
a(14) = 1738 -> 100A [doz];
a(15) = 1739 -> 100B [doz];
a(16) = 145 -> 101 [doz];
a(17) = 1740 -> 1010 [doz];
a(18) = 1741 -> 1011 [doz];
largest term a(9026) = 10000 -> 5282 [doz];
last term a(10000) = 1727 -> BBB [doz], largest term lexicographically.
PROG
(Haskell)
import Data.Ord (comparing)
import Data.List (sortBy)
import Numeric (showIntAtBase)
import Data.Char (intToDigit)
a190132 n = a190132_list !! (n-1)
a190132_list =
sortBy (comparing (flip (showIntAtBase 12 intToDigit) "")) [1..10000]
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Reinhard Zumkeller, May 06 2011
STATUS
approved