KMO Training Main
KMO Training Main
Teachers’ Training
Combinatorics
1 The Fundamental Principle of Enumeration
RECALL 1.1
Multiplication Principle If there are a1 ways of doing a job A1 , a2 ways of doing a second job A2 after
A1 has been done, a3 ways of doing a third job A3 after A1 and A2 have been done, and, in general, an ways
of doing the nth job An after A1 , A2 , . . . , An−1 have been done, then there are a1 × a2 × a3 × · · · × an an ways
of doing all the jobs A1 , A2 , . . . , An .
Example 1: How many 3-digit even numbers can be made using the digits 2, 3, 4 and 5 without
repeats (i.e. without using any digit more than once)?
Solution
The number of such 3-digit numbers is the same as the number of ways of filling in the boxes below with
the given digits but, of course,taking care to do this in such a way that we create even numbers only, that is,
we make the last digit even. We see that there are two ways of choosing the last digit (it is either 2 or 4).
Having done that, we are left with three digits from which we select one to go in the first box, after which
we are left with two digits from which we select one to go in the second (middle) box. Hence we have, by the
FPE, a total of 3 × 2 × 2 = 12 ways of filling up all the three boxes – that is, 12 distinct 3-digit even numbers
we can construct from the given set.
Example 2: Twenty players took part in a round robin tournament where every player must
play against every other player exactly once. There are no draws in this tournament. Suppose
the first player won x1 games, the second player won x2 games, the third player won x3 games
and so on. Find the value of
x1 + x2 + x3 + x4 + x5 + · · · + x1 9 + x2 0
Solution
20 × 19
A total of = 190 games
2
Since there are no draws there are exactly 190 wins.
=⇒ x1 + x2 + x3 + x4 + x5 + · · · + x1 9 + x2 0 = 190
1
Exercise
1. There are 10 people at a party. Each person shakes hands with the other 9 exactly once. How many
handshakes will there be?
2. While cleaning out the garage, John found four old single-digit house numbers: one 3, one 4 and two
5s. The number of different two-digit house numbers he can create is:
2 Factor Arithmetics
RECALL 2.1
1. We denote n factorial as n!
Example
4! = 1 × 2 × 3 × 4 = 4 × 3 × 2 × 1 = 24
n! = 1 × 2 × 3 × · · · × (n − 1) × n = n × (n − 1) × · · · × 3 × 2 × 1
2. 0! = 1 This is by convention.
10! + 11!
Solution
n!(n2 + 3n + 2)
Solution
2
Exercise
1.
6! + 7!
2!3!4!
2.
(2n)! − (2n − 1)!
2n! − (n − 1)!
3 Permutations
RECALL 3.1
2. If, from a set of n objects, we select r and order them, then we have what are known as permutations of
n objects taken r at a time. The number of such permutations for a given n and r is denoted by n Pr .We
seek a formula for n Pr .
3.
n
Pr =n × (n − 1) × · · · × (n − r + 1)
n × (n − 1) × · · · × (n − r + 1) × (n − r) × · · · × 3 × 2 × 1
=
(2 − r) × (2 − r − 1) × · · · 3 × 2 × 1
n!
=
(n − r)!
Example 1: How many distinct even numbers can you form with the digits 0, 1, 2, 3
1. if repeats are allowed
2. if repeats are not allowed
3
Exercise
1. A horse race has 14 horses, how many different possible ways can the top 3 horses finish?
2. In a qualifying heat for the 100 meter dah, the top 3 finishers out of each group of 8 moves on to the
next round. The number of different permutations for first, second, and third place in each heat is:
3. Consider a machining operation in which a piece of sheet metal needs two identical diameter holes
drilled and two identical size notches cut. We denote a drilling operation as d and a notching operation
as n. In determining a schedule for a machine shop, what might be the number of different possible
sequences of the four operations?
4 Combinations
RECALL 4.1
1. When calculating the number of outcomes for experiments involving multiple choices, often we do not
care what order the choices
2. A choice of r objects from a group of n objects without regard to order, is called a combination of n
objects taken r at a time.
3. n
Pr = r!n Cr
n n!
Thus the formula for n Cr = Pr
r! =
(n − r)!r!
Example 1: A committee comprising two women and three men is to be chosen from a group of
five men and four ladies. In how many ways can this be done?
Solution
The three men can be chosen in 5 C3 ways and the two women in 4 C2 ways so that by the FPE the committee
can be chosen in 5 C3 ×4 C2 = 60 ways.
Example 2: How many ways of selecting a 3 person committee from a group of 30.
Solution
30 30! 30 × 29 × 28
C3 = = = 4060
3!27! 3×2×1
Exercise
1. In a classroom, there are 8 women and 5 men. A committee of 3 women and 2 men is to be formed
for a project. How many different possibilities are there?
4
RECALL 5.1
• You can as well draw a venn diagram to represent the above information and aid you solve Such problems.
Example 1: Find the number of positive integers at most 1000 which are divisible by 10 or 12
or 14.
Solution
Let Ak be the set of positive integers at most 1000 which are divisible by k. Since Ai ∩Aj = Alcm(i,j) , lcm(10, 12) =
60, lcm(10, 14) = 70, lcm(12, 14) = 84andlcm(10, 12, 14) = 240, so by IEP,
x3 − y 3 = (x − y) x2 + xy + y 2 = xy + 61
y =1 x3 − x − 62 = 0
y =2 x3 − 2x − 69
y =3 x3 − 3x − 89
y =4 x3 − 4x − 125
y =5 x3 − 5x − 186 = 0
Of these equations, we see the only working value for x is when x = 6, y = 5 so the only natural pair of solutions
is (x, y) = (6, 5).
Example 3: How many ordered pairs (x, y) are there which satisfy the equation
Solution
Exercise
3. There are 30 multiple choice questions in a contest. 5 marks are awarded for each correct answer. 3
marks are deducted for each incorrect answer. No marks are awarded for questions left unanswered. If
Jared scored 78 marks in the contest, what is the greatest number of questions he answered correctly?
5
RECALL 6.1
f n + 1 or more objects are put into n boxes, then at least two of the objects will be in the same box. More
m
generally, if m objects are put into n boxes, then at least objects will be in the same box.
n
7 Binomial Theorem
6
Day II:Kenya Mathematics Olympiad
Teachers’ Training
Number Theory
8 Division algorithm and GCD
RECALL 8.1
a = bq + r
490 =110 × 4 + 50
110 =50 × 2 + 10
50 =10 × 5
gcd(x2 − 4x + 1, 5x) = 1
Exercise
7
9 Divisibility, primes and factorization
RECALL 9.1
Exercise
1. Find the number of digits in N where N is the product of all the positive divisors of 100, 000, 000:
n ≡ r( mod m)
3. If a ≡ b( mod m) andc ≡ d( mod m), then (a + c) ≡ (b + d)( mod m); (a − c) ≡ (b − d)( mod m):
4. If a ≡ b( mod m) and c ≡ d( mod m), then a · c ≡ b · d( mod m).
5. If a ≡ b( mod m) then an ≡ bn( mod m) for all natural numbers n.
6. If ac ≡ bc( mod m) and (c, m) = 1, then a ≡ b( mod m).
8
Example 1: When a three digit number is divided by 2, 3, 4, 5 and 7, the remainders are all 1.
Find the minimum and maximum values of such three digit numbers.
Solution
Let x be a three digit with the remainder 1 when divided by 2, 3, 4, 5 and 7.
Then x − 1is divisible by each of 2, 3, 4, 5, 7, so
x − 1 = k · [2, 3, 4, 5, 7] = 420k
: Thus, the minimum value of x is 420 + 1 = 421, the maximum value of x is 2 × 420 + 1 = 841.
The remainder is 9/
Example 3: Write down the last four digits of the number 7128.
Solution
Here the recursive method is effective. Start from 74 = 2401, then
Exercise
1. Find the smallest positive integer k such that 269 + k is divisible by 127.
2. What is the remainder when 6273 + 8273 is divided by 49?
9
RECALL 11.1
10
where p1 , p2 , . . . , pk are prime, p1 < p2 < · · · < pk , and z1 , z2 , · · · , zk are positive integers.
3. To get the product of the above divisors, we raise the number to half the number of divisors., that is:
1
P = N 2n
4. To get the sum of all divisors of our number N , we use the below formulae:
Define the function S(pzi i ) to be the sum of all factors of the form pzi i Therefore:
Then we get:
S(pz11 ) × S(pz22 ) × · · · S(pznn )
Example
P (22 ) =1 + 2 + 22 = 7
P (5) =1 + 5 = 6
Thus: 7 × 6 = 42
1 × 2 × 4 × 5 × 10 × 20 = 8000
Example 1: Find the sum of all the divisors of the number 1800.
Solution
It is easy to see that 1800 = 23 · 32 · 52
Thus: 4 3 3
2 −1 3 −1 5 −1
S= × × = 6045
2−1 3−1 5−1
Example 2: Find the product of all the divisors of the number 1800.
Solution
11
It is easy to see that 1800 = 23 · 32 · 52
Thus:
n
P = 1800 2
where n is the number of divisors.
n = (3 + 1)(2 + 1)(2 + 1) = 36
∴ P = 180018
Exercise
1. How many factors (including 1 and itself) does the number 576 have?
2. If x, y are positive integers with 45x = y 2 , what is the smallest possible value of x + y?
3. Find all integers n and p, such that
n2 + p + 73 = np
, where p is a prime number.
ax + by = c
Example 1: Find all positive integer solutions to the equation 12x + 5y = 125.
Solution
12x = 5(25 − y) indicates 5|x. Let x = 5, then 5y = 65 gives y = 13, so (5, 13) is a special solution. By the
formula for general solution, it is obtained that:
12
Since x ≥ 1, so t ≥ 0. But y ≥ 1 implies t ≤ 1, so t = 0or1.
When t = 0, the solution is x = 5, y = 13. When t = 1, then x = 10, y = 1. Thus, the equation has exactly
two solutions.
x3 − y 3 = (x − y) x2 + xy + y 2 = xy + 61
y =1 x3 − x − 62 = 0
y =2 x3 − 2x − 69
y =3 x3 − 3x − 89
y =4 x3 − 4x − 125
y =5 x3 − 5x − 186 = 0
Of these equations, we see the only working value for x is when x = 6, y = 5 so the only natural pair of solutions
is (x, y) = (6, 5).
Example 3: How many ordered pairs (x, y) are there which satisfy the equation
1 1 1
+ = , x, y ∈ N
x y 12
Solution
We use a similar trick to that of the previous example, transforming the given equation step by step into
an equivalent equation of the form (x + s)(y + t):
1 1 1
+ =
x y 12
12(x + y) =xy
xy − 12x − 12y =0
xy − 12x − 12y + 144 =144
(x − 12)(y − 12) =144.
Exercise
3. There are 30 multiple choice questions in a contest. 5 marks are awarded for each correct answer. 3
marks are deducted for each incorrect answer. No marks are awarded for questions left unanswered. If
Jared scored 78 marks in the contest, what is the greatest number of questions he answered correctly?
13
13 Chinese Remainder Theorem
RECALL 13.1
14