Counting techniques
Counting techniques
2023 年 9 月 29 日
1 Basic Knowledge
1.1 terms
A permutation is an arrangement or a listing of things in which order
is important.
1.2 Definition
The symbol ! (factorial) is defined as follows: 0! = 1,
and for integers n ≥ 1,
n! = n · (n − 1) · · · 1
1! = 1,
2! = 2 · 1 = 2,
3! = 3 · 2 · 1 = 6,
4! = 4 · 3 · 2 · 1 = 24,
5! = 5 · 4 · 3 · 2 · 1 = 120,
6! = 6 · 5 · 4 · 3 · 2 · 1 = 720.
1
1.3 Permutations
(1). Different elements, with no repetition. Take r elements each time
from n distinct elements (1≤ r ≤ n).
n!
Number of permutations P (n, r) =
(n − r)!
Example
In how many ways can the letters of the word MATH be arranged?
1.4 Combinations
Unlike Permutations, Combinations are used when order does not mat-
ter. If we have n different elements, and it doesn’t matter which order
we take the(elements,
) the number of ways to take m elements where 1
n
≤ m ≤ n, is
m
Example
In a group of 2 cats, 3 dogs, and 4 pigs in how many ways can we choose a
committee of 6 animals?
2
1.5 The Sum Rule
If an event E1 can happen in n1 ways, event E2 can happen in n2 ways,
event Ek can happen in nk ways, and if any event E1 , E2 , · · · or Ek happens,
the job is done, then the total ways to do the job is n1 + n2 + · · · + nk .
Example
In how many ways can one book be selected from a book shelf of 5 paperback
books and 3 hardcover books?
n1 × n2 × n3 × · · · × n k
Example
A girl has 5 shirts, 4 skirts, and 3 pairs of shoes. How many different outfits
can she create?
3
2 Problem Solving Skills
2.1 Using Charts
Two dice are rolled. How many ways are there to roll a sum of 7?
4
2.4 With Restriction
(1)How many ways can 5 distinct paperback books and 1 hardcover
book be arranged on a shelf if the hardcover must be the rightmost book
on the shelf?
(2)In how many ways can 5 books be arranged on a shelf if two of the
books must remain together, but may be interchanged?
(3)How many four –digit whole numbers do not contain the digit 1?
No digit is allowed to use more than once in any such 4-digti number.
2.5 Grouping
Theorem 1: Let the number of different objects be n. Divide n into r
groups A1 , A2 , · · · , Ar such that there are n1 objects in group A1 , n2 objects
in group A2 , ..., nr objects in the group Ar , where n1 + n2 + · · · + nr = n.
n!
The number of ways to do so is
n! !n2 ! · · · nr !
(1)In how many ways may we distribute 6 different books to Alex, Bob,
and Catherine such that each person gets 2 books?
5
(2)In how many ways may we distribute 7 different books to Alex, Bob,
and Catherine such that Alex and Bob each get 2 books and Catherine gets
3 books?
(3)In how many different ways can all the letters in INDIANA be ar-
ranged in a line? Assume that duplicate letters are indistinguishable.
(1)In how many ways is it possible to seat seven people at a round table?
(3)In how many ways can four men and four women be seated at a
round table if no two men are to be in adjacent seats?
(4)In how many ways can a family of six people be seated at a round
table if the youngest kid must sit between the parents?
6
2.7 Combinations with Repetitions
Theorem 4: Let n be a positive integer.
( The
) number of positive integer
n−1
solutions to x1 + x2 + · · · + xr = n is
r−1
(1)Three friends have a total of 6 identical pencils, and each one has
at least one pencil. In how many ways can this happen?
(2)In how many ways may we write the number 9 as the sum of three
positive integer summands? Here order counts, so, for example, 1 + 7 + 1
is to be regarded different from 7 + 1 + 1.
(1)How many ways are there to get from A to B if you can only go
north or west?
7
Theorem 7: counting how many rectangles. For a rectangular grid with
m vertical lines and n horizontal
( ) ( lines, ) the total number of rectangles that
m n
can be counted is N = ×
2 2
8
3 Homework
(1)Any 2 points determine a line. If there are 7 points in a plane, no
3 of which lie on the same line, how many lines are determined by pairs of
these 7 points?
(2)An electrician is testing 7 different wires. For each test, the electri-
cian chooses 2 of the wires and connects them. What is the least number
of tests that must be done so that every possible pair of wires is tested?
(4) In the figure above, each line segment represents a one-way road
with travel permitted only in the direction indicated by the arrow. How
many different routes from A to G are possible?
(5)A boy is walking along the line starting from point A to point B.
Any point of intersection and line cannot be walked twice in one trip. How
many ways are there?
9
by moving upward or to the right along the grid lines. How many different
paths can be drawn from A to D that must include both B and C?
(11) In how many ways can four married couples be seated at a round
table if no two men, as well as no husband and wife are to be in adjacent
seats?
10
(12)In the figure above, each line segment represents a one-way road
with travel permitted only in the direction indicated by the arrow. How
many different routes from A to G that pass through E are possible?
(14)Four lines are drawn in a plane so that there are exactly three dif-
ferent intersection points. Into how many nonoverlapping regions do these
lines divide the plane?
(16)A number is called increasing if each of its digits is greater than the
digit immediately to its left, if there is one. How many increasing numbers
are there between 100 and 200?
(17)In a volleyball league with 5 teams, each team plays exactly 3 games
with each of the other 4 teams in the league. What is the total number of
11
games played in this league?
(18)Meredith has a red hat, a blue hat, yellow hat, and a white hat.
She also has four sweaters�one red, one blue, one yellow, and one white�and
four pairs of jeans�one red, one blue, one yellow, and one white. Meredith
wants to wear a red, white, a yellow, and blue outfit consisting of one hat,
one sweater, and one pair of jeans. How many different possibilities does
she have?
(20)Four circles lie in the same plane. What is the maximum number
of points of intersection of them?
(21)Two circles and two straight lines lie in the same plane. If neither
the circles nor the lines are coincident, what is the maximum possible num-
ber of points of intersection?
(22)How many positive three-digit integers are there such that each
digit is an odd number less than 8?
12
(23)Jesse finds that by selecting from the different combinations of the
jackets, pants, and shirts that he owns, he can create up to 150 different
outfits, each consisting of one jacket, one pair of pants, and one shirt. If he
owns 3 jackets and 5 shirts, how many pairs of pants does Jesse own?
(24)A circle (not drawn) passes through point A in the figure above.
What could be the total number of points of intersection of this circle and
δABC?
(25)Three girls and four boys are to be seated in a row containing seven
chairs. If the chairs at both ends of the row must be occupied by girls, in
how many different ways can the children be seated?
(26)How can three-digit natural numbers are there of the form htu
where h > t > u ?
(27)How many different ways can Marco travel from Annandale to Ball-
ston? He may not visit any city more than once, and he must stay on the
roads.
(28)How many four-digit odd integers greater than 6000 can be formed
from the digits 0, 1, 3, 5, 6 and 8, if no digit may be used more than once?
13
(29) How many 3-digit numbers can be formed using the digits of 0, 1,
2, 3, and 4? No digit can be used twice in any such 3-digit number.
(30)Five students are sitting in a row. Alex and Bob are not sitting
next to each other. How many arrangements are there?
(32)How many triples of three positive integers (x, y, z) have the prod-
uct of 24?
14