XXX Olimpiada Colombiana de Matem Aticas y XII Olimpiada Bolivariana de Matem Aticas
XXX Olimpiada Colombiana de Matem Aticas y XII Olimpiada Bolivariana de Matem Aticas
de Matemáticas y
XII Olimpiada Bolivariana
de Matemáticas
Solucionario
Nivel Superior
a+b+c = 1
a + 2b + 4c = 7
a + 3b + 9c = 19
1
n
X
p(1) + p(2) + · · · + p(n) = p(i)
i=1
Xn
= 3i2 − 3i + 1
i=1
n
X n
X n
X
2
= 3 i −3 i+ 1
i=1 i=1 i=1
n(n + 1)(2n + 1) n(n + 1)
= 3 −3 +n
6 2
n(n + 1)(2n + 1) n(n + 1)
= 3 −3 +n
6 2
n + 3n2 + 2n3 3n2 + 3n
= − +n
2 2
= n3
2
odd, and the rest of its elements are odd. This implies that there is
only one odd number in A, and the rest of its elements are even.
PA = 1 × 2 × 4 × 8 = 64 and PB = 3 × 5 × 6 × 7 = 630
PA = 2 × 4 × 5 × 8 = 320 and PB = 1 × 3 × 6 × 7 = 126
PA = 2 × 4 × 7 × 8 = 448 and PB = 1 × 3 × 5 × 6 = 90
PA = 3 × 4 × 6 = 72 and PB = 1 × 2 × 5 = 10
PA = 3 × 4 × 6 = 72 and PB = 1 × 2 × 5 = 10
PA = 1 × 2 × 4 = 8 and PB = 3 × 5 × 6 = 90
3. Ivan and Alexander write lists of integers. Ivan writes all the lists of
length n with elements a1 , a2 , . . . , an such that |a1 |+|a2 |+· · ·+|an | ≤ k.
Alexander writes all the lists with length k with elements b1 , b2 , . . . , bk
such that |b1 | + |b2 | + · · · + |bk | ≤ n. Prove that Alexander and Ivan
wrote the same number of lists.
Solution 1: We will create a biyection between Ivan’s lists and Alexan-
der’s lists. In order to do that, we will define some terms that we will
3
use during the proof. A sublist of a list is a sequence of numbers ap-
pearing consecutively in the list. The weight of a sublist (list), is the
sum of the absolute value of the numbers of the sublist (list). The
length of a sublist (list) is the number of numbers in it. A block is
a sublist with the first element different from 0, and the rest of the
numbers equal to 0. In particular, a sublist of length one and weight
different from 0 is a block. The sign of a block corresponds to the sign
of the first element.
Thus, we can say that a list belongs to Ivan if it has lenght n and
weigth less or equal to k, and it belongs to Alexander if the length is
k and the weight is less than or equal to n. Consider a list belonging
to Ivan, and add a positive number at the beginning of it, so that the
weigth of the new list is k + 1; the number added must be different
from zero. The new list can be divided into blocks, since the initial
number is different from 0. To do this, consider the first number and
all the zeros that follow it. When we reach a number different from
0, we start a new block. Each block B will be changed by an inverse
block B 0 , with length equal to the weight of B and weight equal to
the length of B. Also, the sign of B must be equal to that of B 0 . This
process of changing a block by its inverse can only be made in a unique
way.
With this process, when we change all the blocks of a list that belongs
to Ivan, we will get a list with weight n+1 and length k +1, whose first
element is different from 0. When we delete this number, we get a list
with length k and weigth less than or equal to n, which corresponds to
a list that belongs to Alexander. When we make the inverse process,
adding a number at the beginning of a list belonging to Alexander in
such a way that the weight is k+1, invert the blocks and delete the first
number, we will get a list that belongs to Ivan. Hence, we have found an
invertible function that transforms Ivan’s lists into Alexander’s lists,
and therefore it’s a biyection, which concludes the problem.
Solution 2: Let nk be the number of lists of length k and weight
4
n n n−1 n−2 0
= +2 +2 + ··· + 2 (1)
k k−1 k−1 k−1 k−1
The first term of the sum counts all the lists with first element equal to
0; counting these lists is equivalent to count the lists with length k − 1
and weight less than or equal to n. The second term counts the lists
with first element equal to ±1. Since the initial number has absolute
value 1, the remaining part of the list is a list of length k−1
and weigth
less than or equal to n − 1. In general, the term 2 n−r k−1 counts the
lists with first element equal to ±r. In this way, (1) is demonstrated.
Now, we will show another recurrence for the number of lists:
k k−1 k−1 k−1 k−1
= +2 +2 + ··· + 2 (2)
n n n−1 n−2 0
In this case, we will interpret the terms of the sum in a different way.
The first term represents those lists whose weigth is strictly less than
k. When the weigth is exactly k there are several cases to consider.
The first one is when the first term is different from 0. In such case,
we can complete a list of length n − 1 and weight less than or equal
to k − 1 by adding a correct initial number, without considering the
sign. In this way, the number of lists with weight exactly k whose first
k−1
number is different from 0 is 2 n−1 . If the first term is 0, but the
second isn’t, we take a sublist of length n − 2 and weight less than or
equal to k − 1, and complete it in two ways by adding 0, ±p, where p
isthe number required to complete the weight k. In general, the term
k−1
2 n−r counts the lists with weight exactly equal to k, and whose first
r − 1 elements are 0 and the r-th element is different from 0.
Combining (1) and (2), and considering k k − 1 = w0 , we can use
n that
the hypothesis of induction to get k = n , as desired.
Solution 3: We will count the number of lists a1 , a2 , . . . , an with |a1 |+
|a2 | + · · · + |an | ≤ k.
Let 0 ≤ r ≤ n be the number of terms in the list that are different
from 0. Considering their absolute values, we must find the number of
lists of positive integers b1 , · · · , br satisfying b1 + · · · + bn ≤ k.
5
k
Lemma The number of such lists is r .
Proof It is well known that the number of lists of positive integers
b1 , · · · , br with b1 + · · · + bn = k is k−1
r−1 . We must count the lists
whose sum is strictly less than k.
For each list with r terms with sum strictly less than k we can construct
a list with r + 1 terms that add exactly k by adding br+1 = k − (b1 +
· · · + br ), and it’s clear that the process is reversible: given a list with
r + 1 terms whose sum is exactly k we can delete br+1 to get a list of
r elements whose sum is strictly less than k. Therefore, the number
of lists with r terms whose sum is strictly less than k is the same as
the number of lists with r + 1 terms with sum exactly k, which is
k−1 k−1
r+1−1 = r .
6
vertices that have their bulbs turned on and vk+1 , . . . , vn the vertices
with their bulbs turned off, and for i between 1 and n let ai be the
number of times that vi changed its state after we have erased all the
diagonals.
The total number of changes of state equals to the number of diagonals,
so
n
n(n − 1) X
= ai
2
i=1
If all the lights are on in the end, it means that a1 , a2 , . . . , ak are all
even and all the others are odd, because a bulb will end in the same
state as the initial if and only
P if it changes an even number of times. It
follows that the parity of ni=k+1 ai is the same as that of n(n−1) 2 and
since all the terms are odd, the parity must be equal to that of n − k.
As a result, the parity of k and the parity of n(n+1)
2 must be the same.
Now we must show that if n and n(n+1) 2 have the same parity then it is
possible to turn on all the bulbs after having deleted all the diagonals.
It is easy to check that it’s possible for n = 1, 2, 3, 4. If we can turn on
all the bulbs for n then take a configuration for a polygon of n+4 sides.
Clearly n(n+1)
2 and (n+4)(n+5)
2 have the same parity and it is possible
to pick 4 points among which there is an even number of bulbs on. If
n is even we use the case n = 4 to leave the 4 bulbs on, and if n is
odd, we use the same case to turn them off. Then, for each of these
four bulbs we delete the n diagonals that come out from each of their
vertices and change the state of the bulbs. If n is odd they will change
an odd number of times, and since they were off, they will be on in
the end, and if n is even, they will change an even number of times
and since they were on, they will end on. Finally, we use the case n to
turn on the remaining n bulbs. This concludes the induction and the
problem.
5. Let p and q be fixed integers. We define:
a0 = 0, a1 = 1, and
an = pan−1 − an−2 for n ≥ 2 even,
an = qan−1 − an−2 for n ≥ 3 odd.
Find the values of p and q such that the sequence has negative values.
Solution: Let us write Xn = a2n y Yn = a2n+1 . The recurrence rela-
tions given in the problem can be rewritten as follows:
7
X0 = 0, Y0 = 1, and
Xn = pYn−1 − Xn−1 for n ≥ 1,
Yn = qXn − Yn−1 for n ≥ 1.
8
7. Notice that ∠DQB = 90 since Q is in a circle with diameter DB.
Then, ∠DQC = 90; in the same way, ∠CP D = 90. Therefore, DP CQ
is a rectangle. Since the diagonals of a rectangle intersect at their mid-
points, we conclude that M belongs to P Q. Then ∠QCD = ∠QP D,
and ∠QCD = ∠BCD = ∠CAD, since CD is the height. Hence,
∠QP D = ∠CAD = ∠P AD which implies that P Q is tangent to Γ1 ,
and in a similar way we conclude that it is also tangent to Γ2 . From
here we get that ∠QBY = ∠M QY . We also have that ∠CQM =
∠QCM = ∠CAD, and as a result ABQP is cyclic. Notice that DY
is perpendicular to M B since Y belongs to a circle with diameter
DB. In the same way, DX is perpendicular to M A, and we conclude
that DXM Y is cyclic. Therefore, ∠DBY = ∠M DY = ∠M XY . Al-
so, 4M XP ∼ 4M P A because they share the angle ∠P M X and
∠M P X = ∠M AP ; from this we get that ∠M XP = ∠M P A . Since
ABQP is cyclic, we have that ∠ABQ + ∠QP A = 180◦ which means
(∠DBY + ∠QBY ) + ∠M XP = 180◦ ; thus:
180◦ = (∠M XY + ∠M QY ) + ∠M XP
= ∠M QY + (∠M XY + ∠M XP )
= ∠P QY + ∠P XY