login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A190134 Numbers 1 through 10000 sorted lexicographically in hexadecimal representation (base 16). 7
1, 16, 256, 4096, 4097, 4098, 4099, 4100, 4101, 4102, 4103, 4104, 4105, 4106, 4107, 4108, 4109, 4110, 4111, 257, 4112, 4113, 4114, 4115, 4116, 4117, 4118, 4119, 4120, 4121, 4122, 4123, 4124, 4125, 4126, 4127, 258, 4128, 4129, 4130, 4131, 4132, 4133, 4134 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

A190135 = inverse permutation: a(A190135(n)) = A190135(a(n)) = n;

a(n) <> n for n > 1.

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 1..10000 (full sequence)

Wikipedia, Lexicographical order

Eric Weisstein's World of Mathematics, LexicographicOrder

Wikipedia, Hexadecimal

Eric Weisstein's World of Mathematics, Hexadecimal

EXAMPLE

a(17) = 4109 -> 100D [hex];

a(18) = 4110 -> 100E [hex];

a(19) = 4111 -> 100F [hex];

a(20) =  257 -> 101  [hex];

a(21) = 4112 -> 1010 [hex];

a(22) = 4113 -> 1011 [hex];

largest term a(6301) = 10000 -> 2710 [hex];

last term a(10000) = 4095 -> FFF [hex], largest term lexicographically.

PROG

(Haskell)

import Data.Ord (comparing)

import Data.List (sortBy)

import Numeric (showHex)

a190134 n = a190134_list !! (n-1)

a190134_list = sortBy (comparing (flip showHex "")) [1..10000]

CROSSREFS

Cf. A190126 (base 2), A190128 (base 3), A190130 (base 8), A190016 (base 10), A190132 (base 12).

Sequence in context: A220107 A171290 A136577 * A267792 A220252 A267976

Adjacent sequences:  A190131 A190132 A190133 * A190135 A190136 A190137

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 24 17:16 EDT 2019. Contains 323533 sequences. (Running on oeis4.)