Challenging interesting combinatorics problem

A company has 4 employees ranked from 1 to 4 according to experience. CEO wants to pay them salary from ranging 1 to 5 euros but only integers. To be fair with salaries, CEO wants to avoid this situation: there are three employees X, Y and Z such that X has higher rank than Y, Y has higher rank than Z, but Y is paid more than X while Z is paid more than Y. That would be unfair and must be avoided. In how many ways can the CEO still pay them?

Example:when there were 3 employees and they were paid up to 3€ each day, there were very few combinations to do this. Valid combinations starting with (1,1,1), (1,1,2) all the way to (3,3,3) were allowed. Only combination not allowed was (1,2,3). In this case, best ranked employee would get 1€, second one would get 2€ and the last one would get 3€. That would clearly break the fairness principle. So, in the early day, CEO concluded, there were 3^3 - 1 = 26 valid salary combinations


The answer is 485.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Jon Haussmann
Sep 20, 2014

We can represent every combination of salaries with a quadruple ( a , b , c , d ) (a,b,c,d) , where each number is between 1 and 5; also, a a is the salary of the highest ranking employee, b b is the salary of the second-highest ranking employee, and so on.

Let S S be the set of all possible salaries, without any restrictions. Let A = { ( a , b , c , d ) S : b < c < d } , B = { ( a , b , c , d ) S : a < c < d } , C = { ( a , b , c , d ) S : a < b < d } , D = { ( a , b , c , d ) S : a < b < c } . \begin{aligned} A &= \{(a,b,c,d) \in S : b < c < d\}, \\ B &= \{(a,b,c,d) \in S : a < c < d\}, \\ C &= \{(a,b,c,d) \in S : a < b < d\}, \\ D &= \{(a,b,c,d) \in S : a < b < c\}. \end{aligned} These sets represent the combinations we want to avoid; in other words, we want to count A B C D |\overline{A} \cap \overline{B} \cap \overline{C} \cap \overline{D}| , which we can do by applying the Principle of Inclusion-Exclusion (PIE).

By PIE, A B C D = S A B C D + A B + A C + A D + B C + B D + C D A B C A B D A C D B C D + A B C D . \begin{aligned} |\overline{A} \cap \overline{B} \cap \overline{C} \cap \overline{D}| &= |S| - |A| - |B| - |C| - |D| \\ &\quad + |A \cap B| + |A \cap C| + |A \cap D| + |B \cap C| + |B \cap D| + |C \cap D| \\ &\quad - |A \cap B \cap C| - |A \cap B \cap D| - |A \cap C \cap D| - |B \cap C \cap D| \\ &\quad + |A \cap B \cap C \cap D|. \end{aligned}

It is easy to compute that S = 625 , A = B = C = D = 50 , A B = B C = C D = 20 , A C = A D = B D = 5 , A B C = A B D = A C D = B C D = 5 , A B C D = 5 , \begin{aligned} |S| &= 625, \\ |A| = |B| = |C| = |D| &= 50, \\ |A \cap B| = |B \cap C| = |C \cap D| &= 20, \\ |A \cap C| = |A \cap D| = |B \cap D| &= 5, \\ |A \cap B \cap C| = |A \cap B \cap D| = |A \cap C \cap D| = |B \cap C \cap D| &= 5, \\ |A \cap B \cap C \cap D| &= 5, \end{aligned} so A B C D = 625 4 50 + ( 3 20 + 3 5 ) 4 5 + 5 = 485 |\overline{A} \cap \overline{B} \cap \overline{C} \cap \overline{D}| = 625 - 4 \cdot 50 + (3 \cdot 20 + 3 \cdot 5) - 4 \cdot 5 + 5 = 485 .

Thanks a lot Mr. Haussmann. It is really so informative answer and you showed it very simple, but again if you don't mind please for |A∩B|, |A∩B∩C| and so on .. Do i have to write down all combinations for these events or there is some way or theory can be used generally for all of them? Thank You so much again.

Abdelhameed Nasser - 6 years, 7 months ago

Log in to reply

and if for the same problem there were 1000 employees how would it be?

Abdelhameed Nasser - 6 years, 7 months ago

and if for the same problem there were 1000 employees how would it be?

Abdelhameed Nasser - 6 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...