2017 Canadian Senior Mathematics Contest: The Centre For Education in Mathematics and Computing Cemc - Uwaterloo.ca
2017 Canadian Senior Mathematics Contest: The Centre For Education in Mathematics and Computing Cemc - Uwaterloo.ca
Solutions
Part A
1. Calculating,
6 (6×9×12)×15
3
× 69 × 12
9
× 15
12
= 6×9×12×15
3×6×9×12
= 3×(6×9×12)
= 15
3
=5
Answer: 5
2. Solution 1
Since 4AEF is right-angled at E, its area equals 12 (AE)(EF ).
Since 4AEF is right-angled at E and ABCD is a square, then EF = AD = 8 cm.
We are told that the area of 4AEF is 30% of the area of square ABCD, and so the area of
4AEF equals 0.3(8 cm)2 .
Therefore, 21 (AE)(8 cm) = 0.3(8 cm)2 and so AE = 2(0.3)(8 cm) = 0.6(8 cm) = 4.8 cm.
Solution 2
Since 4AEF is right-angled at E and ABCD is a square, then EF is parallel to AD which
makes AEF D a rectangle.
Since AF is a diagonal of rectangle AEF D, then the area of rectangle AEF D is twice the area
of 4AEF , or 60% of the area of the square.
Since rectangle AEF D and square ABCD share the same height, then it must be that AE
equals 60% of the length of AB.
Therefore, AE = 0.6 · AB = 0.6 · 8 cm = 4.8 cm.
Answer: 4.8 cm
Answer: x = 0, 3
4. Solution 1
Since the two 1s are not next to each other, then the two 1s can be placed in the following
pairs of positions, reading from the left: 1st and 3rd, 1st and 4th, 1st and 5th, 2nd and 4th,
2nd and 5th, 3rd and 5th.
There are 6 such pairs of positions.
Choose one of these pairs, say 1st and 3rd. This gives the number 1 1 .
There are 3 digits left to place. We place these from left to right.
There are 3 possible digits that could go in the leftmost empty position.
After this digit is placed, there are 2 possible digits that could go in the next empty position.
Finally, the remaining digit is placed in the remaining empty position.
This process works for each of the pairs of positions for the two 1s.
Therefore, there are 6 × 3 × 2 = 36 such five-digit integers (6 pairs of positions for the 1s, 3
choices for the first empty position, and 2 choices for the second empty position).
2017 Canadian Senior Mathematics Contest Solutions Page 3
Solution 2
5! 120
Since there are 5 digits to arrange and 2 of them are the same, there are = = 60
2! 2
arrangements:
To see this, replace one of the 1s with and X so that the “digits” were 1, 2, 3, 4, X.
There would be 5 choices for the first digit, 4 choices for the second digit, and so on,
giving 5! = 5 × 4 × 3 × 2 × 1 = 120 arrangements of the digits.
If we now replace the X with a 1, each arrangement is now counted 2 times. For
example, 43X21 and 4312X become the same arrangement.
Therefore, we need to divide the total 120 by 2! = 2 since each arrangement is
double-counted.
In some of these arrangements, the 1s will be next to each other and in some they will not be.
We will count the arrangements with the 1s next to each other and subtract this number from
the total.
If the two 1s are together, we can imagine arranging the four objects 11, 2, 3, 4.
There are 4! = 24 such arrangements.
Thus, there are 60 − 24 = 36 arrangements of 1, 1, 2, 3, 4 with the two 1s not next to each other.
Answer: 36
5. We note that the first point (0, 0) attached to the integer 1 lies on the line y = −x.
In the diagram, line segments of lengths 1, 1, 2, 2, 3, 3, 4, 4, . . . are drawn starting at the origin.
We guess that the points on the spiral that lie on the line y = −x are those obtained after an
even number of these segments are drawn. (For example, the number 3 is at the point (1, −1)
after 2 segments, the number 7 is at the point (−1, 1) after 4 segments, the number 13 is at
the point (2, −2) after 6 segments, and so on.)
To see why this is true, we note that, after 2k segments for some positive integer k, the
x-coordinate of the endpoint is
x = 1 − 2 + 3 − . . . + (−1)k−1 k
1 + (1 + 1 + 2 + 2 + 3 + 3 + . . . + k + k) = 1 + 2(1 + 2 + 3 + . . . + k) = 1 + 2 12 k(k + 1) = 1 + k + k 2
We want to determine the sum of the values of this expression starting with k = 1 and contin-
uing until the final one that is less than or equal to 1000.
We note that the expression is increasing as k increases (as k 2 and k are both increasing), that
when k = 31, 1 + k + k 2 = 993, and when k = 32, 1 + k + k 2 = 1057.
2017 Canadian Senior Mathematics Contest Solutions Page 4
Therefore, we want to calculate the sum of the values of 1 + k + k 2 from k = 0 to k = 31. (We
start at k = 0 to include the initial integer 1 = 1 + 0 + 02 .)
We obtain
31
X
(1 + k + k 2 ) = (1 + 0 + 02 ) + (1 + 1 + 12 ) + (1 + 2 + 22 ) + (1 + 3 + 32 ) + · · · + (1 + 31 + 312 )
k=0
= 32 · 1 + (1 + 2 + 3 + · · · + 31) + (12 + 22 + 32 + · · · + 312 )
= 32 + 21 (31)(32) + 61 (31)(32)(63)
(using the formulae given on the contest)
= 32 + 496 + 10 416
= 10 944
(The notation on the left side in the first equation is called sigma notation and represents the
sum on the right side of the first equation.)
Therefore, the sum of the positive integers from 1 to 1000 written at points on the line y = −x
is 10 944.
Answer: 10 944
Let M (s, t) be the centre of the large circle and r its radius.
Let the points U, V, W be the points where the semi-circles y
with centres X, Y and Z, respectively, touch the larger circle.
Join M to U , V and W .
A W
U
X Z
x
B Y C
V
2017 Canadian Senior Mathematics Contest Solutions Page 5
M X = M U − XU = r − 4
MY = MV − Y V = r − 3
M Z = M W − ZW = r − 5
The coordinates of M , X, Y , Z are M (s, t), X(0, 4), Y (3, 0), Z(3, 4).
Using the formula for the length of a line segment, we obtain the equations
Subtracting the third equation from the first, we obtain s2 − (s − 3)2 = (r − 4)2 − (r − 5)2 or
s2 − s2 + 6s − 9 = r2 − 8r + 16 − r2 + 10r − 25 and so 6s − 9 = 2r − 9 or r = 3s.
Subtracting the third equation from the second, we obtain t2 − (t − 4)2 = (r − 3)2 − (r − 5)2
or t2 − t2 + 8t − 16 = r2 − 6r + 9 − r2 + 10r − 25 and so 8t − 16 = 4r − 16 or r = 2t.
Substituting s = 31 r and t = 12 r into the first equation, we obtain the following equivalent
equations:
2 2
1
3
r + 12 r − 4 = (r − 4)2
1 2
9
r + 14 r2 − 4r + 16 = r2 − 8r + 16
1 2
9
r + 14 r2 + 4r = r2
4r2 + 9r2 + 144r = 36r2 (multiplying through by 36)
2
144r = 23r
0 = r(23r − 144)
144
Therefore, r = 0 (which is impossible) or r = 23
, which is the desired answer.
144
Answer: 23
2017 Canadian Senior Mathematics Contest Solutions Page 6
Part B
0 = − 32 (d − 1)2 + 8
3
2
3
(d − 1)2 = 83
(d − 1)2 = 4
d − 1 = ±2
Therefore, d = −2 + 1 = −1 or d = 2 + 1 = 3.
Since d > 0, then d = 3.
2. (a) The following table shows how Joe can win the game in three turns:
R R R R R R Start
G G G G R R After 1 turn
G R R R G R After 2 turns
G G G G G G After 3 turns
On Joe’s first turn, he turns over the first 4 cards.
On Joe’s second turn, he turns over cards 2 through 5.
On Joe’s third turn, he turns over the four red cards.
2017 Canadian Senior Mathematics Contest Solutions Page 7
(b) There are many sequences of moves in which Joe can win.
Suppose that Joe takes 9 turns. On turn 1, he turns over cards 1, 2, 3, 4, 5. On turn 2,
he turns over cards 2, 3, 4, 5, 6.
He continues in this way so that, on each turn, he turns over five consecutive cards starting
with the tth card on turn t, with the understanding that card 1 comes after card 9. This
means, for example, that on turn 7, Joe turns over cards 7, 8, 9, 1, 2.
In this way, each of the 9 cards is turned over 5 times (once as each of the 1st, 2nd, 3rd,
4th, 5th card in the sequence).
Since each card is turned over an odd number of times, its final colour is the opposite of
the starting colour, and so it is green.
We demonstrate this in the following chart:
R R R R R R R R R Start
G G G G G R R R R After 1 turn
G R R R R G R R R After 2 turns
G R G G G R G R R After 3 turns
G R G R R G R G R After 4 turns
G R G R G R G R G After 5 turns
R R G R G G R G R After 6 turns
G G G R G G G R G After 7 turns
R R R R G G G G R After 8 turns
G G G G G G G G G After 9 turns
Joe can actually finish in as few as three turns:
R R R R R R R R R Start
G G G G G R R R R After 1 turn
G G R R R G G R R After 2 turns
G G G G G G G G G After 3 turns
(c) Suppose that n = 2017. This means that Joe has 2017 cards.
We show that Joe can win the game when k is odd and cannot win the game when k is
even.
Suppose that k is odd.
Suppose that Joe takes 2017 turns.
For each t = 1, 2, 3, . . . , 2016, 2017, Joe turns over the k cards starting at card t, and with
the understanding that card 1 comes after card 2017.
In this way, each of the 2017 cards is turned over k times, once for each “position” in a
sequence of k consecutive cards.
Since k is odd, then the colour of each of the 2017 cards is reversed at the end, and so
each is green.
In this way, Joe wins the game when k is odd.
Suppose that k is even.
For Joe to win the game, each of the 2017 cards must be turned over an odd number of
times in order to reverse its colour.
This means that the total number of card flips is odd, since this total is the sum of 2017
odd integers (the number of flips for each of the 2017 cards).
For any positive integer t, after t turns, Joe has flipped a total of tk cards (k on each of
t turns).
Since k is even, then tk is even.
2017 Canadian Senior Mathematics Contest Solutions Page 8
Therefore, after any number of turns, the total number of card flips is always even and so
cannot be the odd number of flips necessary to reverse the colour of all of the cards.
Therefore, when k is even, Joe cannot win the game.
In summary, when n = 2017, Joe can win the game for all odd k with 1 ≤ k < 2017 and
cannot win the game for all even k with 1 ≤ k < 2017.
n = 11 : f (f (11)) = f (11) + 3 · 11
f (26) = 26 + 33 = 59
(c) Solution 1
First, we show that the function h(n) = n + 1 for each positive integer n satisfies the
conditions.
We note that this function satisfies the first two conditions.
Thus, if h(n) = n + 1 for each positive integer n,
h(h(n) + m) = h(n + 1 + m) = (n + 1 + m) + 1 = n + m + 2
and
1 + n + h(m) = 1 + n + m + 1 = n + m + 2
and so the third condition is satisfied.
Next, we show that there is no other such function.
Suppose that the function h satisfies the three conditions and that h(1) = k.
Step 1: Show that h(a + rk) = h(a) + 2r for each integer r ≥ 1
Using the functional equation with n = 1 and m = a, we obtain h(h(1) + a) = 1 + 1 + h(a)
or h(a + k) = h(a) + 2.
Using the functional equation with n = 1 and m = a + k, we obtain
h(h(1) + a + k) = 1 + 1 + h(a + k)
The values of h here form an infinite set of positive integers starting with h(3) + 2 which
are spaced 2 apart.
Since k ≥ 3, then the inputs in these three sets are all distinct, since those in the first
family give remainder 1 when divided by k, those in the second family give remainder 2
when divided by k, and those in the third family give remainder 3 (or possibly 0 if k = 3).
But the three sets of outputs h(1) + 2r, h(2) + 2r, h(3) + 2r must overlap eventually, as
there can be only two disjoint infinite sets with common difference 2.
This is a contradiction, so we cannot have k ≥ 3, which means that k ≤ 2.
Step 4: Show that k = 2
We know that k = 1 or k = 2.
If h(1) = k = 1, the equation h(1 + rk) = h(1) + 2r becomes h(1 + r) = 1 + 2r.
Substituting n = 1 + r (or r = n − 1) gives h(n) = 1 + 2(n − 1) = 2n − 1.
In this case,
and
1 + n + h(m) = 1 + n + 2m − 1 = n + 2m
These two expressions are not always equal for all n and m (for example, when n = m = 2).
Therefore, we cannot have k = 1. Thus, k = 2.
Step 5: h(n) = n + 1 when n is odd
From h(1 + rk) = h(1) + 2r and k = 2, we obtain h(1 + 2r) = 2 + 2r = (2r + 1) + 1 and
so h(n) = n + 1 when n is odd.
Step 6: h(n) = n + 1 when n is even
From h(2 + rk) = h(2) + 2r, we obtain h(2 + 2r) = h(2) + 2r.
If we can show that h(2) = 3, then we will obtain h(2 + 2r) = 3 + 2r as required.
Since h(x) is even when x is odd and since h is one-to-one, then h(x) must be odd when
x is even.
In particular, h(2) is odd.
From h(h(n) + m) = 1 + n + h(m) with n = 2 and m = 1, we get h(h(2) + 1) = 1 + 2 + h(1)
and so h(h(2) + 1) = 5.
When n is even, the values of h(n) form an increasing sequence of odd positive integers.
This is because h(2) is odd and so h(2) + 2r is odd and increasing as r increases, and so
h(2 + 2r) = h(2) + 2r is odd and increasing as r increases.
Therefore, h(h(2) + 1) = 5 has to be the third smallest, or second smallest, or smallest
value of h(n) when n is even.
Since h(2 + 2r) = h(2) + 2r, then the values of h(x) when x is even increase when x
increases by 2.
This means that we must have h(6) = 5 or h(4) = 5 or h(2) = 5.
If h(6) = 5, then h(h(2) + 1) = 5 gives h(2) + 1 = 6 or h(2) = 5, which cannot be the case,
since h is one-to-one.
If h(2) = 5, then h(h(2) + 1) = 5 gives h(2) + 1 = h(2) which cannot be the case.
Therefore, h(4) = 5 and so h(2 + 2) = h(2) + 2 which gives h(2) = 5 − 2 = 3.
We have shown that the function h(n) = n + 1 satisfies the given condition and that no
other function does, as required.
2017 Canadian Senior Mathematics Contest Solutions Page 11
Solution 2
Let h be a function that satisfies the given properties, and consider the infinite set of
lattice points of the form (m, h(m)), for m = 1, 2, 3, . . ..
Let a be a positive integer.
When n = a and m = h(a), the functional equation is h(h(a) + h(a)) = 1 + a + h(h(a)) or
h(2h(a)) = 1 + a + h(h(a)).
Thus, the point (2h(a), 1 + a + h(h(a))) is on the graph of y = h(x).
When n = a and m = 2h(a), the functional equation becomes