Solved exercises🧮 Solve my exercise

Combinatorics — solved exercise (Middle school)

MathematicsLevel : Middle schoolCombinatorics✔ Verified by computer algebra (1/1)🌐 Lire en français
Statement
In celebration of the Youth Day on May 4th, a bookstore created 3 different types of exquisite cards, each book is randomly inserted with one card, and a prize can be won by collecting all 3 types of cards. Given that a person bought 5 books, what is the probability of winning the prize?
Strategy
Count all possible card sequences for 5 books, then count the sequences containing all 3 card types.
Step-by-step solution
1. Count all possible outcomes
Each of the 5 books can contain any one of the 3 card types. Thus the total number of possible ordered outcomes is $$3^5=243.$$
📖 Multiplication principle: 3 choices for each of 5 independent books.
2. Count outcomes with all 3 types present
We use inclusion-exclusion. The number of sequences using all 3 card types is $$3^5-\binom31 2^5+\binom32 1^5.$$ So $$3^5-3\cdot 2^5+3\cdot 1^5=243-96+3=150.$$
📖 Subtract sequences missing at least one card type. If one type is missing, there are $2^5$ sequences, and there are 3 choices for the missing type. Sequences using only one type were subtracted twice, so add them back.
3. Compute the probability
Therefore, $$P=\frac{150}{243}=\frac{50}{81}.$$
📖 Probability = favorable outcomes divided by total equally likely outcomes.
Result
The probability of winning the prize is $$\boxed{\frac{50}{81}}.$$
Question-by-question check (two independent resolutions)
150/81✔
Key concepts
independent trialsequally likely outcomesinclusion-exclusionprobability
Tip
A common mistake is to think only about unordered groups of cards. Since each book independently receives a card, ordered sequences should be counted first.

Have a similar exercise? Get it solved step by step, for free.

🧮 Solve my exercise