
5. Basic Counting
(a) [4 points] Among all positive numbers that devide 4050 exactly, how many are multiples of 45?
Answers:
Observe the prime factorisation of 4050 = 2 Β· 3
4
Β· 5
2
. Also note the fact that an integer π β€ π divides π exactly iο¬ every
prime factor of π is also a prime factor of π, i.e., the multiples of at least one prime factor of π divide π exactly.
Then, the divisors of 4050 must have the form 2
π
Β· 3
π
Β· 5
π
where π β [0, 1] β©Z, π β [0, 4] β©Z, and π β [0, 2] β©Z. We
have 2 ways to choose π, 5 ways to choose π, and 3 ways to choose π. Thus, the total number of divisors of 4050 is
2 Β· 5 Β· 3 = 30.
Now, we denote π
π
as the set of multiples of π with βπ₯ β π
π
: 1 β€ π₯ β€ 4050. Then,
|
π
45
|
=
ξ
4050
45
ξ
= 90. Note that
every multiple of 45 must have the form πΆ Β·3
2
Β· 5, where πΆ β Z
+
such that πΆ Β· 3
2
Β· 5 β€ 4050. Then, for the multiples of
45 to also be divisors of 4050, πΆ must be in the form 2
π
Β·3
π
Β·5
π
where π β [0, 1] β©Z, π β [0, 2]β©Z, and π β [0, 1] β©Z.
We have 2 ways to choose π, 3 ways to choose π, and 2 ways to choose π. Thus, the total number of multiples of 45 that
are also divisors of 4050 is 2 Β· 3 Β· 2 = 12.
Therefore, there are 12 such numbers .
(b) [4 points] There are 2 identical red balls and 3 identical black balls. You are going to put them into 5 diο¬erent boxes. If
each box can contain at most 2 balls, how many ways are there to put the balls in the boxes?
Answers:
Consider the distribution of balls, we can solve the problem by cases.
Case 1: Every box contains exactly 1 ball. This is the same as the number of 5-permutations of 2 red balls and 3 black
balls, which is
5!
2!3!
= 10.
Case 2: One box contains 2 balls, another box contains no balls, and the remaining 3 boxes contain 1 ball each. We
can choose 1 box out of 5 to contain 2 balls (label it as π΅
2
), and then choose 1 box out of 4 to contain no balls (π΅
0
). The
remaining 3 boxes will contain 1 ball each (π΅
1π
, π = 1, 2, 3). There are 5 Β· 4 = 20 ways to choose the boxes. In each of
these choices, π΅
2
can either contain 2 red balls, 2 black balls, or 1 of each colour. For the two red balls case, π΅
1π
must
contain 1 black ball each, which is 1 way. For the two black balls case, we have 3 ways to choose one of π΅
1π
to contain
the remaining black ball, and the other two boxes will contain 1 red ball each. For the 1 red and 1 black balls case, we
have 3 ways to choose one of π΅
1π
to contain the remaining red ball, and the other two boxes will contain 1 black ball
each. Thus, there are 1 +3 +3 = 7 ways to distribute the balls in each choice of boxes. Therefore, there are 20 Β·7 = 140
ways in this case.
Case 3: Two boxes contain 2 balls each, and one box contains 1 ball, and the remaining 2 boxes contain no balls. We
ο¬rst choose 1 box to hold 1 ball (π΅
1
), there are 5 ways. π΅
1
can either hold a black ball or a red ball (2 ways). If π΅
1
holds
a black ball, then we either choose 1 box out of 4 to hold 2 red balls (4 ways) and 1 box out of 3 to hold 2 black balls (3
ways), or we choose 2 boxes out of 4, each holding the same colour (6 ways) This gives us 4 Β· 3 + 6 = 18 ways. If π΅
1
holds a red ball, then we must choose 1 box out of 4 to hold 2 black balls (4 ways) and 1 box out of 3 to hold 1 red and
1 black balls (3 ways). This gives us 4 Β· 3 = 12 ways. Therefore, there are 5 Β· (18 + 12) = 150 ways in this case.
Putting all cases together, we have 10 + 140 + 150 = 300 ways in total
.
(c) [4 points] In a game, the player needs to move from the point (0, 0) to the point (π, π) where π β₯ π > 0 are integers. At
each point (π₯, π¦), the player can either move right to (π₯ + 1, π¦) or move up to (π₯, π¦ + 1). It is forbidden to move up for two
successive times. How many diο¬erent ways are there for the player to reach (π, π)?
Answers:
Note that since the player can move only one unit to the right or upwards, regardless of the path the player chooses,
exactly (π + π) steps are required to reach (π, π) from (0, 0), with π steps to reach the line π₯ = π and π steps to reach
the line π¦ = π.
The path is a (π + π)-sequence of the set {π, π
}, where π denotes moving upwards and π
denotes moving to the right.
In addition, we must have no pairs of πβs that are adjacent to each other. The sequence must have π π
βs and π πβs.
Consider a sequence of π π
βs and (π + 1) gaps between each pair of π
βs, including the head and the tail. We need to
choose π gaps to put the π πβs, that is
ξ
π+1
π
ξ
ways. Thus, there are
ξ
π+1
π
ξ
ways in total .
Page 7 of 11