Combinat or Ics
Combinat or Ics
COMBINATORICS
03 04 Inclusion-Exclusion
Binomial Coefficients Principle
and Pascal’s Triangle
01
BASIC COUNTING
PRINCIPLES
(Sum rule, Product rule)
BASIC COUNTING
PRINCIPLES TWO BASIC COUNTING
PRINCIPLES
is a rule used to
count the total number of 1. SUM RULE
possible outcomes in a 2. PRODUCT RULE
situation.
Because we have to choose from either a cupcake or donut or muffin (notice the “OR”),
we have 20 + 10 + 15 = 45 treats to choose from.
PRODUCT RULE PRINCIPLE
The Product Rule states
that if a task can be performed in
a sequence of tasks, one after the
other, then completing the job can
be done by the product of the
ways to perform the task
PRODUCT RULE EXAMPLE:
suppose a bakery has a selection of 20 different cupcakes, 10 different donuts, and 15 different muffins
— how many different orders are there?
What makes this question different from the first problem is that we are not asking how many total
choices there are. We are asking how many different ways we can select a treat.
It’s possible that you only want one treat, but you can quite easily want more than one.
So how many different orders can you create, if you’re allowed to choose as few or as many as you
like?
This is the job for the product rule!
Because we can choose treats from a selection of cupcakes and donuts and muffins (notice the
“AND”), we 20 x 10 x 15 = 3,000 ordering options.
SUM AND PRODUCT RULE EXAMPLE:
QUESTION:
A boy lives at X and wants to go to School at Z. From his home X he has to first reach Y
and then Y to Z. He may go X to Y by either 3 bus routes or 2 train routes. From there,
he can either choose 4 bus routes or 5 train routes to reach Z. How many ways are there
to go from X to Z?
SOLUTION:
From X to Y, he can go in 3+2=5 ways (Rule of Sum).
Thereafter, he can go Y to Z in 4+5=9 ways (Rule of Sum).
Hence from X to Z he can go in 5×9=45 ways (Rule of Product).
02
PERMUTATIONS AND
COMBINATIONS
PERMUTATIONS
Where:
Example 2: Find the number of subsets of the set {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} having 3 elements.
Solution: The set given here have 10 elements. We need to form subsets of 3 elements in any order. If we
select {1,2,3} as first subset then it is same as {3,2,1}. Hence, we will use the formula of combination
here.
Therefore, the number of subsets having 3 elements = 10C3
= 10!/(10-3)!3!
= 10.9.87!/7!.3!
= 10.9.8/3.2
= 120 ways.
03
BINOMIAL
COEFFICIENTS AND
PASCAL’S TRIANGLE
BINOMIAL COEFFICIENTS
A coin is tossed three times, find the probability of getting exactly 2 tails.
Solution:
Using the Pascal triangle formula, the total number of outcomes will be 2 3 = 8 (1 + 3 + 3 + 1 =
8)
Where 3 of them give exactly two tails.
So the probability of getting exactly two tails is 3/8, or 37.5%