210k views
2 votes
Consider the set S={1,2,3,4,5,6,7,8,9,12,13,14,15,16,17,18,19,23,24, .............. ,123456789}, which consists of all positive integers whose digits strictly increase from left to right. This set is finite. What is the median of the set?

1 Answer

5 votes

Answer:

12345

Explanation:

The number of numbers with n digits is the same as the number of combinations of n things taken from 9. That means as many numbers have 5 or more digits as have 4 or fewer, with the exception that the number 123456789 is not matched by the number 0 (or a number with no digits). There are 256 numbers with 5 or more digits, but only 255 with 4 or fewer.

So, the median number is the first number with 5 digits:

12345

User Jaquan
by
5.7k points