1

It is given that there are two sets of real numbers $A = \{a_1, a_2, ..., a_{100}\}$ and $B= \{b_1, b_2, ..., b_{50}\}.$ If there is a mapping $f$ from $A$ to $B$ such that every element in $B$ has an inverse image and $f(a_1)\leq f(a_2) \leq ...\leq f(a_{100})$ Then, what is the number of such mappings?

I have started tackling the problem by supposing that $b_1<b_2<...<b_{50}$ and dividing elements $a_1, a_2, ..., a_{100}$ in $A$ into $50$ nonempty groups according to their order. Now the problem is... How do I compute the number of mappings defined as $f: A\rightarrow B$ given the observations above?

james42
  • 1,160

3 Answers3

1

EDIT:My idea is to do an order-preserving partition of the set {$1,2,..,100$} into 50 parts, e.g., (1,2,3), (4,5,6,7,..10),..., (98, 99,100). Then every number in the i-th part would map to $a_i$. I think this takes care of all maps.

This is a matter of balls-in-boxes , i.e., of finding the number of solutions to $x_1+x_2+.....+x_{50}=100; x_i \geq 0$, i.e.,it is a matter of counting the number of ordered partitions of the se $a_1, a_2,...,a_{100}$ into $50$ parts, and then $x_1$ is the number of preimages of $b_1$, and $x_i$ is the number of preimages of $b_i$. So, using the fact that the number of solutions to $$x_1+x_2+....+x_k=n $$ is $(n+k-1)C(k-1)$ , the number of solutions is $$(49+100-1)C(99)=148C99 $$.

Gary.
  • 2,432
  • Nope. This is not a problem of simple combinatorics. If you try the solution that you have exposed drawing a sketch in a simpler case with lower cardinality of the given sets, your mappings wouldn't satisfy the properties given. It's much more subtle. – james42 Jun 30 '15 at 03:03
  • Where is it wrong? Ah, sorry, I mixed up the cardinalities of the sets, but I think the idea is right. But the basic idea is the same: every subset of 50+ elements in the domain will give rise to a unique map, by ordering the image set. It depends on what the largest element is in the image set. – Gary. Jun 30 '15 at 03:12
  • So yes, it is more complicated, or different, but still manageable. Choose the largest image for $f(a_{100})$; could be any $b_1,.., b_{50}$. – Gary. Jun 30 '15 at 03:30
  • You can delete your answer first, and undelete after you finish. Your answer is now in the rewiew quete, and as stated, I have to vote to delete. –  Jun 30 '15 at 03:32
  • 1
    @JohnMa: The delete option seemed to be disabled. Anyway, I rewrote my answer. – Gary. Jun 30 '15 at 03:48
1

HINT:
Suppose $f(a_1)=b_{51},$ then there is only $1$ such mapping.
Suppose $f(a_1)=b_{50},$ then there are $\dbinom{50}{1}=50$ such mappings.
Suppose $f(a_1)=b_{49},$ then there are $\dbinom{51}{2}=1275$ such mappings.

Can you see a pattern!

Bumblebee
  • 18,220
  • 5
  • 47
  • 87
  • 1
    Hocky stick identity also helps to simplify the answer. – Bumblebee Jun 30 '15 at 03:51
  • I don't know if our answers coincide, but my idea was to do an order-preserving partition of the set {$1,2,..,100$} into 50 parts, e.g., (1,2,3), (4,5,6,7,..10),..., (98, 99,100). Then every number in the i-th part would map to $a_i$. I think this takes care of all maps. – Gary. Jul 01 '15 at 00:47
0

To come up with such a function $f$, you need to decide, for each element $b_i \in B$, the number $n_i$ of elements of $A$ which are going to map to it. Once these numbers have been chosen, there is only one way to make the function $f$ because of the condition $f(a_1)\leq f(a_2) \leq ...\leq f(a_{100})$. So, how many ways are there to choose the numbers $n_i$? Well...

  • Since each element of $B$ needs to have a nonempty preimage, you have the constraint $n_i \geq 1$.
  • Since every element of $A$ must map somewhere, you have the constraint $\sum_{i=1}^{50} n_i = 100$.

Counting the solutions to a constrained integer equation of this type is a a pretty common problem. Similar questions have been asked before on this website, for instance here.

Mike F
  • 22,196
  • So, are you saying that the solution is $C(49,100)$? – james42 Jun 30 '15 at 03:35
  • @ale42: That would be the answer if you had $n_i \geq 0$ instead of $n_i \geq 1$. You're on the right track, but an adjustment needs to be made. – Mike F Jun 30 '15 at 04:34
  • @MikeF: I don't know if our answers coincide, but my idea was to do an order-preserving partition of the set {$1,2,..,100$} into 50 parts, e.g., (1,2,3), (4,5,6,7,..10),..., (98, 99,100). Then every number in the i-th part would map to $a_i$. I think this takes care of all maps. – Gary. Jul 01 '15 at 00:49