For the set $S$ which consists of all positive integers whose digits strictly increase from left to right. I have to find the median of this set.
Here is what I have done so far.
I identified the number of elements of this set as $511$. ($2^9-1$) $1$ for the empty set. The median is $256$. I am on the right track? How do I find the $256$th number?
Hint: Look at smaller bases and see if you can spot a meaningful pattern.
In base 2 we have only 1 element that does this. Namely, $1$
In base 3 we have 3 elements. $1,2,12$
$2 \choose 1$ elements with length 1 and $2 \choose 2$ elements with length 2.
In base 4 we have 7 such elements. $1,2,3,12,13, 23, 123$
$3 \choose 1$ elements with length 1 and $3 \choose 2$ elements with length 2 and $3 \choose 3$ elements with length 3.
In base 5, we have 15 such elements:
$1,2,3,4,12,13,14,23,24,34,123,124,134,234,1234$
$4 \choose 1$ elements with length 1 and $4 \choose 2$ elements with length 2 and $4 \choose 3$ elements with length 3 and $4 \choose 4$ elements with length 4.
I think this pattern should prove useful.