practice problems pending

1. 5 chairs, 4 people? How many ways can they sit?
2. 10 mangoes, 12 apples, 16 guava, 15 bananas. How many ways to eat 3 fruits?

Case 1:
Every single fruit is distinct.
We have 53 fruits in total. So 53C3. That is if the order of eating doesn't matter.
If the order of eating matters, then: 53.52.51

Case 2:
Fruits of one type are all same. 

Case 2.1 - Order of eating doesn't matter.
Then this is simply stars and bars.
(n+k-1)C(n) where 'n' is the number of items and 'k' is the number of buckets.
Here, 
n = 3
k = 4
So:


All 3 fruits are same: 4C1 = 4
2 Same 1 distinct: 4C2 * 2C1 = 12
All 3 distinct: 4C3 = 4
Total: 20

Case 2.2 - Order of eating does matter.
4 * 4 * 4 = 64

Case 3:
One fruit of each type, i.e. I eat 1 mango, 1 apple, 1 banana for e.g.
Case 3.1 Fruits of same type are also distinct

We have to consider 4 different cases(4C3):
Mango, banana, apple = 10*15*12
....
If order of eating matters, multiply them by 6.(3!)

Case 3.2 They are not distinct.
4C3 if the order doesn't matter
*6 if it does.

Comments

Popular posts from this blog

Simon's factoring trick(complete the rectangle)

IOQM 2024 Paper solutions (Done 1-21, 29)

IOQM 2023 solutions