A Collection of Math Competition Problems
A Collection of Math Competition Problems
2023/2024
Koper, 2024
Slobodan Filipovski
A Collection of Math Competition Problems
2.05 Other study textbook
Koper, 2024
Self-published
Licensing: Open Access Creative Commons CC BY-SA
2
Preface
The International Mathematics Competition (IMC) for university students is an annual
mathematics competition open to all undergraduate students of mathematics. The IMC is
primarily a competition for individuals, although most participating universities select and
send one or more teams of students.
Another prestige international mathematical competition for university students is the
Vojtěch Jarnı́k International Mathematical Competition. It is a competition with varied
international participation, known as the oldest mathematics competition for university
students in the European Union. The Vojtěch Jarnı́k competition held each year since 1991
in Ostrava, Czech Republic.
In the last decade the students from University of Primorska took active participation
in both competitions. In the period 2013-2023, at IMC, our students won 1 golden, 5 silver,
8 bronze medals and 13 honorable mentions.
In front of you there is a collection of math competition problems, given on IMC and
Vojtěch Jarnı́k, which took place between 2013 and 2023. The solutions of the problems
can be found on the links https://www.imc-math.org.uk/ and https://vjimc.osu.cz/.
In cases when a larger number of students are interested to participate on the competitions,
the Faculty of Mathematics, Natural Sciences and Information Technologies organizes Team
Selection Test. The problems posed on TST are also included in this textbook.
This collection of competition problems is completed with original authored problems,
proposed by University of Primorska to the Problem Selection Committees of IMC and
Vojtěch Jarnı́k.
3
Content
4
1.1 Academic year 2012/2013
5
INTERNATIONAL MATHEMATICS COMPETITION 2013
Between August 6 and 12, the twentieth anniversary edition of the International Math-
ematics Competition for University Students 2013 took place in Blagoevgrad, Bulgaria.
The colors of FAMNIT and the University of Primorska were represented by five students:
Ratko Darda, Edin Husić and Anastasiya Tanana took part in the competition from
the first year, and Radovan Krtolica and Bećo Merulić from the second year. Our
students excelled, as Anastasiya Tanana received the second prize, while Edin Husić and
Radovan Krtolica received praise. It should be noted that all students competed in the
same category, so our students were among the youngest.
IMC 2013
Day 1, August 8, 2013
Problem 1. Let A and B be real symmetric matrices with all eigenvalues strictly greater
than 1. Let λ be a real eigenvalue of matrix AB. Prove that |λ| > 1.
Problem 5. Does there exist P a sequence (an ) of complex numbers such that for every
positive integer p we have that ∞ p
n=1 an converges if and only if p is not a prime?
6
IMC 2013
Day 2, August 9, 2013
Problem 8. Suppose that v1 , . . . , vd are unit vectors in Rd . Prove that there exists a unit
vector u such that √
|u · vi | ≤ 1/ d
for i = 1, 2, . . . , d.
(Here · denotes the usual scalar product on Rd .)
Problem 9. Does there exist an infinite set M consisting of positive integers such that for
any a, b ∈ M , with a < b, the sum a + b is square-free?
(A positive integer is called square-free if no perfect square greater than 1 divides it.)
Problem 10. Consider a circular necklace with 2013 beads. Each bead can be painted
either white or green. A painting of the necklace is called good, if among any 21 successive
beads there is at least one green bead. Prove that the number of good paintings of the
necklace is odd.
(Two paintings that differ on some beads, but can be obtained from each other by rotating
or flipping the necklace, are counted as different paintings.)
7
1.2 Academic year 2013/2014
8
VOJTĚCH JARNÍK 2014
On April 4, 2014, the Vojtěch Jarnı́k International Mathematical Competition was held
in Ostrava, Czech Republic.
It is a competition with varied international participation and a long tradition. This year
was the 24th edition. In category I, the colors of FAMNIT and the University of Primorska
were successfully represented by Mathematics students, namely: Marko Palangetić,
Marko Rajković and Roman Solodukhin from the 1st year and Ratko Darda and
Anastasiya Tanana from the 2nd year. The team leader was our PhD student István
Estélyi.
They scored a total of 66 points and thus ranked 2nd according to the total number of
points scored. Ahead of them were only students from the University of Dolgoprudny.
The most successful among our students was Anastasiya Tanana, who collected as much
as half of all points in this extremely demanding competition. At this year’s competition,
86 students from 31 universities from 16 countries competed in the mentioned category.
Category I
√
Problem 1. Find all complex numbers z such that |z 3 + 2 − 2i| + zz|z| = 2 2.
(z is the conjugate of z.)
Problem 2. We have a desc of 2n cards. Each shuffling changes the order from
a1 , a2 , . . . , an , b1 , b2 , . . . , bn to a1 , b1 , a2 , b2 , . . . , an , bn . Determine all even numbers 2n such
that after shuffling the desk 8 times the original order is restored.
Problem 3. Let n ≥ 2 be an integer and let x > 0 be a real number. Prove that
p n p
1 − tanh(x) + tanh(nx) < 1.
e2t −1
Recall that tanh t = e2t +1
.
9
VOJTĚCH JARNÍK 2014
April 4, 2014
Category II
Prove that
lim f (x) = 0.
x→∞
Problem 2. Let p be a prime number and let A be a subgroup of the multiplicative group
F⋆p of the finite field Fp with p elements. Prove that if the order of A is a multiple of 6, then
there exist x, y, z ∈ A satisfying x + y = z.
Rb
Problem 4. Let 0 < a < b and let f : [a, b] → R be a continuous function with a
f (t)dt =
0. Show that Z Z b b
f (x)f (y) ln(x + y)dxdy ≤ 0.
a a
10
INTERNATIONAL MATHEMATICS COMPETITION 2014
Between July 29 and August 4, 2014, the 21st edition of the International Mathematics
Competition for University Students 2014 took place in Blagoevgrad, Bulgaria. The colors
of FAMNIT and the University of Primorska were represented by three undergraduate
students. Marko Rajković and Marko Palangetić took part in the competition from
the first year, and Anastasiya Tanana from the second year. A leader of our team was
István Estélyi.
All three students return with a prize: Anastasiya Tanana won the first prize, and
Marko Rajković and Marko Palangetić won the third prize.
IMC 2014
Day 1, July 31, 2014
Problem 1. Determine all pairs (a, b) of real numbers for which there exists a unique
symmetric 2 × 2 matrix M with real entries satisfying trace(M ) = a and det(M ) = b.
(an )∞
n=1 = (1, 1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5, 1, . . .).
Pn
αk
Find all pairs (α, β) of positive real numbers such that limn→∞ k=1
nα
= β.
Problem 3. Let n be a positive integer. Show that there are positive real numbers
a0 , a1 , . . . , an such that for each choice of signs the polynomial
Problem 4. Let n > 6 be a perfect number, and let n = pe11 · · · pekk be its prime factorization
with 1 < p1 < . . . < pk . Prove that e1 is an even number.
A number n is perfect if s(n) = 2n, where s(n) is the sum of the divisors of n.
Problem 5. Let A1 A2 . . . A3n be a closed broken line consisting of 3n line segments in the
Euclidean plane. Suppose that no three of its vertices are collinear, and for each index i =
1, 2, . . . , 3n, the triangle Ai Ai+1 Ai+2 has counterclockwise orientation and ∠Ai Ai+1 Ai+2 =
60◦ , using the notation A3n+1 = A1 and A3n+2 = A2 . Prove that the number of self-
intersections of the broken line is at most 23 n2 − 2n + 1.
11
IMC 2014
Day 2, August 1, 2014
Problem 6. For a positiveP∞ integern−1x, denote its nth decimal digit by dn (x), i.e. dn (x) ∈
{0, 1, . . . , 9} and x = n=1 dn (x)10 . Suppose that for some sequence (an )∞ n=1 there are
∞
only finitely many zeros in the sequence (dn (an ))n=1 . Prove that there are infinitely many
positive integers that do not occur in the sequence (an )∞n=1 .
Problem 7. Let A = (aij )ni,j=1 be a symmetric n × n matrix with real entries, and let
λ1 , λ2 , . . . , λn denote its eigenvalues. Show that
X X
aii ajj ≥ λi λj ,
1≤i<j≤n 1≤i<j≤n
Problem 10. For every positive integer n, denote by Dn the number of permutations
(x1 , . . . , xn ) of (1, 2, . . . , n) such that xj ̸= j for every 1 ≤ j ≤ n. For 1 ≤ k ≤ n2 , denote
by ∆(n, k) the number of permutations (x1 , . . . , xn ) of (1, 2, . . . , n) such that xi = k + i for
every 1 ≤ i ≤ k and xj ̸= j for every 1 ≤ j ≤ n. Prove that
k−1
X k − 1 D(n+1)−(k+i)
∆(n, k) = .
i=0
i n − (k + i)
12
1.3 Academic year 2014/2015
13
VOJTĚCH JARNÍK 2015
On March 27, 2015, the Vojtěch Jarnı́k International Mathematical Competition was
held in Ostrava, Czech Republic.
It is a competition with varied international participation and a long tradition. This year
was the 25th edition. In category I, the colors of FAMNIT and the University of Primorska
were successfully represented by Mathematics students, namely: Anes Valentić from the
1st year and Marko Palangetić, Marko Rajković and Roman Solodukhin from the
2nd year. A leader of the team was István Estélyi.
They scored a total of 70 points and thus ranked in 7th place. The most successful
among our students were Marko Palangetić and Roman Solodukhin, who scored 24 points
each in this extremely demanding competition. At this year’s competition, 74 students
from 31 universities competed in the mentioned category. Students from the University of
Maribor also performed from Slovenia.
In the picture, from left to right: Marko Rajković, István Estélyi, Roman Solodukhin, Marko
Palangetić and Anes Valentić.
14
VOJTĚCH JARNÍK 2015
Category I
Problem 2. Consider the infinite chessboard whose rows and columns are indexed by
positive integers. Is it possible to put a single positive rational number into each cell of
the chessboard so that each positive rational number appears exactly once and the sum of
every row and of every column is finite?
Problem 3. Let P (x) = x2015 − 2x2014 + 1 and Q(x) = x2015 − 2x2014 − 1. Determine
for each of the polynomials P and Q whether it is a divisor of some nonzero polynomial
c0 + c1 x + . . . + cn xn whose coefficients ci are all in the set {1, −1}.
Problem 4. Let m be a positive integer and let p be a prime divisor of m. Suppose that
p
the complex polynomial a0 + a1 x + . . . + an xn with n < p−1 ϕ(m) and an ̸= 0 is divisible by
the cyclotomic polynomial Φm (x). Prove that there are at least p nonzero coefficients ai .
The cyclotomic polynomial Φm (x) is the monic polynomial whose roots are the m-th
primitive complex roots of unity. Euler’s totient function ϕ(m) denotes the number of
positive integers less than or equal to m which are coprime to m.
15
VOJTĚCH JARNÍK 2015
Category II
Problem 1. Let A and B be two 3 × 3 matrices with real entries. Prove that
provided all the inverses appearing on the left-hand side of the equality exist.
Problem 2. Determine all pairs (n, m) of positive integers satisfying the equation
5n = 6m2 + 1.
Problem 3. Determine the set of real values of x for which the following series converges,
and find its sum:
∞
X X (k1 + . . . + kn )! k1 +...+kn
x .
k 1 ! · . . . · kn !
n=1 k ,...,k ≥0
1 n
1·k1 +2·k2 +···+n·kn =n
Problem 4. Find all continuously differentiable functions f : R → R, such that for every
a ≥ 0 the following relation holds:
!
πa3
ZZZ
ay
xf p dxdydz = (f (a) + sin a − 1),
x2 + y 2 8
D(a)
16
INTERNATIONAL MATHEMATICS COMPETITION 2015
Between July 27 and August 2, 2015, the 22nd International Mathematics Competition for
University Students 2015 took place in Blagoevgrad, Bulgaria . The colors of FAMNIT and
the University of Primorska were represented by four second-year undergraduate students
Marko Palangetić, Ivan Bartulović, Roman Solodukhin and Vladan Jovičić. Team
leader was Slobodan Filipovski.
Marko Palangetić received the second prize, Ivan Bartulović the third prize, and Roman
Solodokhin and Vladan Jovičić were commended.
In the picture, from left to right: Roman Solodukhin, Ivan Bartulović, Slobodan Filipovski
(team leader), Vladan Jovičić and Marko Palangetić.
17
IMC 2015
Day 1, July 29, 2015
Problem 1. For any integer n ≥ 2 and two n × n matrices with real entries A, B that
satisfy the equation
A−1 + B −1 = (A + B)−1
prove that det(A) = det(B).
Does the same conclusion follow for matrices with complex entries?
Problem 2. For a positive integer n, let f (n) be the number obtained by writing n in
binary and replacing every 0 with 1 and vice versa. For example, n = 23 is 10111 in binary,
so f (n) is 1000 in binary, therefore f (23) = 8. Prove that
n
X n2
f (k) ≤ .
k=1
4
Problem 4. Determine whether or not there exist 15 integers m1 , . . . , m15 such that
15
X
mk · arctan(k) = arctan(16).
k=1
18
IMC 2015
Day 2, July 30, 2015
Problem 7. Compute Z A
1 1
lim A x dx.
A→+∞ A 1
Problem 8. Consider all 2626 words of length 26 in the Latin alphabet. Define the weight
of a word as 1/(k + 1), where k is the number of letters not used in this word. Prove that
the sum of the weights of all words is 375 .
Problem 10. Let n be a positive integer, and let p(x) be a polynomial of degree n with
integer coefficients. Prove that
1
max |p(x)| > n .
0≤x≤1 e
19
1.4 Academic year 2015/2016
20
VOJTĚCH JARNÍK 2016
On April 4, the 26th Vojtěch Jarnı́k International Mathematical Competition took place
in Ostrava, Czech Republic - the oldest mathematics competition for students in the Eu-
ropean Union.
This year’s performance was attended by 154 students from 35 universities. In the
first category (for 1st and 2nd year students or under 22 years old), Famnit’s colors were
represented by Anes Valentić and Marija Tepegjozova (2nd year MA), while in the
second category Marko Palangetić and Roman Solodukhin (3rd year MA ).
Marko Palangetić received a certificate of successful participant for his 13 points (the
winner in this category collected 29 points out of a possible 40). At the same time, we
point out that the task of Famit’s doctoral student and assistant Slobodan Filipovski,
who was a delegate of Famnit’s team in the Czech Republic, was also included among the
competing tasks for the second category (problem 1).
In the picture, from left to right: Anes Valentić, Marija Tepegjozova, Slobodan Filipovski
(team leader), Marko Palangetić and Roman Solodukhin.
21
VOJTĚCH JARNÍK 2016
April 8, 2016
Category I
22
VOJTĚCH JARNÍK 2016
April 8, 2016
Category II
Problem 1. Let a, b and c be positive real numbers such that a + b + c = 1. Show that
1 1 1 1 1 1
+ + + ≥ 1728.
a bc b ca c ab
Problem 2. Let X be a set and let P(X) be the set of all subsets of X. Let µ : P(X) →
P(X) be a map with the property that µ(A ∪ B) = µ(A) ∪ µ(B) whenever A and B are
disjoint subsets of X. Prove that there exists a set F ⊂ X such that µ(F ) = F.
Problem 3. For n ≥ 3 find the eigenvalues (with their multiplicities) of the n × n matrix
1 0 1 0 0 0 ... ...
0 0
0 2 0 1 0 0 ... ...
0 0
1 0 2 0 1 0 ... ...
0 0
0 1 0 2 0 1 ... ...
0 0
0 0 1 0 2 0 ... ...
0 0
0 0 0 1 0 2 ... ...
0 0
.. .. .. .. .. .. .. .. ..
. . . . . . . . .
.. .. .. .. .. .. . . .. ..
. . . . . . . . .
0 0 0 0 0 0 ... ... 2 0
0 0 0 0 0 0 ... ... 0 1
for all x ≥ 1. Show that f has bounded variation on [1, ∞), i.e.
Z ∞
′
|f (x)|dx < ∞.
1
23
Proposed problems for Vojtěch Jarnı́k 2016
by University of Primorska
Problem 1. Let a, b and c be positive real numbers such that a + b + c = 1. Show that
1 1 1 1 1 1
+ + + ≥ 1728.
a bc b ca c ab
64 √
4
≥ p = 64 312 = 64 · 27 = 1728.
4
39 (3−3 )7
1 1 1
Solution 2. If we replace 1 with a + b + c and k = + + we get
a b c
1 a+b+c 1 a+b+c 1 a+b+c 1 1 1 a
+ + + = + + + ·
a bc b ca c ab a b c bc
1 1 1 b 1 1 1 c a b c
· + + + + + + = k+ k+ k+ =
a b c ca a b c ab bc ca ab
3 2 c b a 1 1 1 1
k +k + + +k 2
+ 2+ 2 + .
ab ca bc a b c abc
From the inequality between arithmetic and harmonic means for the positive numbers a, b
and c follows that
1 a+b+c 3 3
= ≥ = ⇔ k ≥ 9.
3 3 1 1 1 k
+ +
a b c
1
From Solution 1 we already know that ≥ 27. In the end we have
abc
3 27 1
L.H.S ≥ 93 + 92 · √
3
+p + ≥ 93 + 93 + 27 · 9 + 27 = 1728.
abc 3
(abc)2 abc
24
TEAM SELECTION TEST FOR THE IMC 2016
June 2016
FAMNIT
Problem 2. Show that if A and B are real n × n matrices that commute, i.e., AB = BA,
then
det(A2 + B 2 ) ≥ 0.
P x2
Problem 4. Let A1 , . . . , An be n points on a given ellipsoid 𭟋 = {x ∈ Rn : ni=1 a2i =
i
1}, such that the vectors OAi are pairwise perpendicular. Show that the distance of the
hyperplane A1 A2 . . . An from the origin O is independent of the choice of points.
25
INTERNATIONAL MATHEMATICS COMPETITION 2016
In the picture, from left to right: Roman Solodukhin, Slobodan Filipovski (team leader),
Marko Palangetić and Mirza Krbezlija.
26
IMC 2016
Day 1, July 27, 2016
Problem 1. Let f : [a, b] → R be continuous on [a, b] and differentiable on (a, b). Suppose
′
that f has infinitely many zeros, but there is no x ∈ (a, b) with f (x) = f (x) = 0.
Problem 4. Let n ≥ k be positive integers, and let F be a family of finite sets with the
following properties:
Problem 5. Let Sn denote the set of permutations of the sequence (1, 2, . . . , n). For every
permutation π = (π1 , . . . , πn ) ∈ Sn , let inv(π) be the number of pairs 1 ≤ i < j ≤ n with
πi > πj ; i.e. the number of inversions in π. Denote by f (n) the number of permutations
π ∈ Sn for which inv(π) is divisible by n + 1.
Prove that there exist infinitely many primes p such that f (p − 1) > (p−1)! p
, and infinitely
(p−1)!
many primes p such that f (p − 1) < p
.
27
IMC 2016
Day 2, July 28, 2016
Problem 7. Today, Ivan the Confessor prefers continuous functions f : [0, 1]R → R satis-
1
fying f (x) + f (y) ≥ |x − y| for all pairs x, y ∈ [0, 1]. Find the minimum of 0 f over all
preferred functions.
Problem 8. Let n be a positive integer, and denote by Zn the ring of integers modulo n.
Suppose that there exists a function f : Zn → Zn satisfying the following three properties:
(i) f (x) ̸= x,
(ii) f (f (x)) = x,
(iii) f (f (f (x + 1) + 1) + 1) = x for all x ∈ Zn .
Prove that n ≡ 2 (mod 4).
Problem 9. Let k be a positive integer. For each nonnegative integer n, let f (n) be the
number of solutions (x1 , . . . , xk ) ∈ Zk of the inequality |x1 | + . . . + |xk | ≤ n. Prove that for
every n ≥ 1, we have f (n − 1)f (n + 1) ≤ f (n)2 .
Problem 10. Let A be a n × n complex matrix whose eigenvalues have absolute value at
most 1. Prove that
n
∥An ∥ ≤ ∥A∥n−1 .
ln 2
pPn
(Here ∥B∥ = sup∥x∥≤1 ∥Bx∥ for every n × n matrix B and ∥x∥ = 2
i=1 |xi | for every
n
complex vector x ∈ C .)
28
Proposed problems for the IMC 2016
by University of Primorska
Problem 1. Let a, b, c be positive real numbers greater than 1 such that (a − 1)(b − 1)(c −
1) = 1. Prove that r r r
5 a + b 5 b + c c+a
+ + 5 ≥ 3.
4 4 4
√ √ √
Solution. Let x, y, z be real numbers such that x = 5 a − 1, y = 5 b − 1 and z = 5 c − 1.
From the conditions, it follows that x, y, z are positive real numbers for which xyz = 1. It
suffices to prove the equivalent inequality
r r r
5 5 5 5 5 5
5 x + y + 2 5 y + z + 2 5 z + x + 2
+ + ≥ 3.
4 4 4
By using the inequality
q between
q power means of order 5 and 1 for the positive
q numbers x, y, 1
5 5 5 5 5 5 y 5 +z 5 +2
and 1 we get 5 x +y4 +2 = 5 x +y +1
4
+1
≥ x+y+2
4
. Analogously we get 5
4
≥ y+z+2
4
q
5 5
and 5 z +x4 +2 ≥ z+x+2
4
. Summing the last three inequalities we obtain
√
x+y+z 3 3 3 xyz 3
L.H.S ≥ + ≥ + = 3.
2 2 2 2
Problem 2. Let A and B be 3 × 3 matrices over the field of complex numbers. Prove that
where a = trace(AB − BA) = 0 and c = det(AB − BA). Computing the trace of the
matrices in both hand sides of (1), we get trace((AB − BA)3 ) = 3 · det(AB − BA).
Now, from ∥A∥2 ≥ |λmax (A)| we obtain
trace((AB − BA)3 )
∥(AB − BA)3 ∥2 ≥ |λmax ((AB − BA)3 )| ≥ = |det(AB − BA)|.
3
29
1.5 Academic year 2016/2017
30
TEAM SELECTION TEST FOR VOJTĚCH JARNÍK 2017
March 2017
FAMNIT
Problem 1. Let n, p > 1 be positive integers and p be prime. Given that n | p − 1 and
p | n3 − 1, prove that 4p − 3 is a perfect square.
p | (n − 1)(n2 + n + 1) ⇒ p = kn + 1 | n2 + n + 1.
31
To prove (3) it suffices to show that for each k ≥ 1,
Here, [Ak ]ij denotes the (i, j)-th entry of Ak . We prove (4) by an induction on k.
For k = 1 we have [A1 ]ij = aij = 0 whenever i ≥ j = j − 1 + 1. Assume now that (4)
holds for some k ≥ 1. Let i ≥ j − (k + 1) + 1 = j − k. Then
n
X
k+1
[A ]ij = [Ak ]it atj
t=1
Xn
= [Ak ]it atj = 0,
t=i+k
which end the induction step. Here, we applied facts that [Ak ]it = 0 for t ≤ i + k − 1 (i.e.
i ≥ t − k + 1) and atj = 0 for t ≥ i + k ≥ j − k + k = j.
(ii) Let Eij be the matrix with 1 as the (i, j)-th entry. If n ≥ 3, then A = E12 + E32 has
zero diagonal, and both A, A⊤ are not strictly upper triangular, while 0 = A2 = An , so (2)
is the inverse (I − A)−1 . If n = 2, then any such A is of the form
0 a
b 0
for some nonzero a, b ∈ F. Consequently, A is invertible and the same hold for An . In
particular, An ̸= 0 for all n, so I − A cannot have the inverse given by (2).
Problem 3. Let a, b, c be non-negative real numbers. Prove that
a b c
√ +√ +√ ≥ 1.
4b2 + bc + 4c2 4c2 + ca + 4a2 4a2 + ab + 4b2
Solution. We may assume that a + b + c = 1. Since f (x) = √1 is a convex function,
x
according to Jansen inequality, we obtain
where
X
K = a(4b2 + bc + 4c2 ) + b(4c2 + ca + 4a2 ) + c(4a2 + ab + 4b2 ) = 4 ab(a + b) + 3abc.
cyc
Y Y
= abc − (a + b − c) ≥ 0.
cyc cyc
32
Equality holds for a = b = c and a = 0, b = c up to permutation.
Problem 4. Let a < b be real numbers. Suppose that a real function f is smooth on
some open neighborhood of the interval [a, b]. That is, there exists a1 , b1 ∈ R such that
[a, b] ⊆ (a1 , b1 ) and the derivative f (n) of arbitrary order n exists on (a1 , b1 ). If there exists
r ∈ R such that the set
{x ∈ [a, b] : f (x) = r}
is infinite, show that for every integer n ≥ 1 there exists y ∈ (a, b) such that f (n) (y) = 0.
Is function f necessarily constant on some nonempty subinterval (a2 , b2 ) ⊆ [a, b]? Ex-
plain your answer in details.
Solution. Let g(x) := f (x) − r. Then f and g have the same derivatives, and
S := {x ∈ [a, b] : g(x) = 0}
is an infinite set. Choose a sequence (xk )k in S such that a ≤ x1 < x2 < · · · ≤ b. By Rolle’s
Theorem there exist a sequence (yk )k in (a, b) such that xk < yk < xk+1 and g ′ (yk ) = 0
for all k. We may now repeat the process for functions g ′ , g ′′ , . . . instead of g. By an
induction we show that for every n ≥ 1 there exists a sequence (zk )k in (a, b) such that
f (n) (zk ) = g (n) (zk ) = 0 for all k, so we have an infinite number of candidates for y.
The function f is not necessarily constant on any subinterval. For example, let a′ = −2,
b′ = 2, a = −1, b = 1, r = 0 and let f : (−2, 2) → R be defined by f (x) = e−1/x sin(1/x)
for x ̸= 0 and f (0) = 0. Then f (1/(kπ)) = 0 for all k ∈ {1, 2, . . .}, so the set {x ∈
[a, b] : f (x) = r} is infinite. Clearly, f is nonconstant on any nonempty open subinterval
(a2 , b2 ) ⊆ [−1, 1]. It now suffices to show that f is smooth on (−2, 2). Clearly, it is smooth
on (−2, 2)\{0}. By an induction we see that any derivative f (n) on (−2, 2)\{0} is of the
form
X cos(1/x) sin(1/x)
1/x p (x)
+ 1/x q (x)
,
i∈I
e i e i
where the set I is finite and pi (x), qi (x) are some polynomials of the form axt for some
a ∈ R and integer t ≥ 0. Consequently, we can use the induction, with the induction step
given by
f (n−1) (x) − f (n−1) (0)
lim = 0,
x→0 x−0
to see that f (n) (0) exists and equals 0 for all n. Hence, f is smooth on whole (−2, 2).
33
VOJTĚCH JARNÍK 2017
On Friday, March 31, the 27th Vojtěch Jarnı́k International Mathematical Competition
took place in Ostrava, Czech Republic - the oldest mathematics competition for students
in the European Union, in which UP FAMNIT students traditionally participate.
132 students from 36 universities applied for this year’s event. In the first category
(for 1st and 2nd year students, respectively under the age of 22), Famnit’s colors were
represented by Arbër Avdullahu and Daniil Baldouski (both 1st year Mathematics),
while in the second category Roman Solodukhin and Anes Valentić (graduate and
3. year of Mathematics). Avdullahu, Baldouski and Solodukhin received a certificate of
successful participant, and Solodukhin with 20 points achieved the best ranking of Famnit
students in the second category so far. Alejandra Ramos-Rivera was the leader of the
FAMNIT’s team.
In the picture, from left to right: Roman Solodukhin, Arbër Avdullahu, Alejandra Ramos-
Rivera (team leader), Daniil Baldouski and Anes Valentić.
34
VOJTĚCH JARNÍK 2017
Category I
(1, 2, . . . , a1 − 1, a1 , 1, 2, . . . , a2 − 1, a2 , 1, 2, . . . , a3 − 1, a3 , . . . , 1, 2, . . . , an − 1, an ),
i.e., each element k of the original sequence is replaced by 1, 2, ..., k − 1, k. Géza takes the
sequence (1, 2, . . . , 9) and he extends it 2017 times. Then he chooses randomly one element
of the resulting sequence. What is the probability that the chosen element is 1?
35
VOJTĚCH JARNÍK 2017
Category II
36
Proposed problems for Vojtěch Jarnı́k 2017
by University of Primorska
Problem 1. Let p and q be odd prime numbers such that p2 > 2q and q | p2 + 1. Prove
that at least one of the numbers 4p2 − 4q and 8p2 − 16q is a sum of three or fewer squares.
Solution. Note that 4p2 − 4q and 8p2 − 16q are positive integers. Since the odd prime
divisors of x2 + 1 are of the form 4k + 1, we have q ≡ 1 (mod 4). Moreover, since p is an
odd number holds p2 ≡ 1 (mod 4). Let us suppose that 4p2 − 4q is not a sum of three or
fewer squares. Using Legendre’s theorem on sums of three squares we have that 4p2 − 4q is
of form 4a (8b + 7), for some non-negative integers a and b. Since 4p2 − 4q is not a sum of
three or fewer squares, it follows that p2 − q is not a sum of three or fewer squares. Thus
p2 − q = 4α (8β + 7), for some non-negative integers α and β. Since 4 | p2 − q we have
that α ≥ 1. Now, if we suppose that 8p2 − 16q is not a sum of three or fewer squares,
then there exist non-negative integers α1 and β1 such that 8p2 − 16q = 4α1 (8β1 + 7). From
p2 − q = 4α (8β + 7) we obtain
37
INTERNATIONAL MATHEMATICS COMPETITION 2017
The 24th International mathematical competition for University Students – IMC 2017,
which takes place every year in Blagoevgrad in Bulgaria, was held between 31 July and 6
August.
FAMNIT and the University of Primorska were represented by three of our first year
Mathematics students: Filip Božić, Daniil Baldouski and Arbër Avdulahu, who re-
ceived a honourable mention. Their team leader was Slobodan Filipovski.
In the picture, from left to right: Filip Božić, Daniil Baldouski and Arbër Avdulahu.
38
IMC 2017
Day 1, August 2, 2017
Problem 1. Determine all complex numbers λ for which there exist a positive integer n
and a real n × n matrix A such that A2 = AT and λ is an eigenvalue of A.
Problem 2. Let f : R → (0, ∞) be a differentiable function, and suppose that there exists
a constant L > 0 such that
′ ′
|f (x) − f (y)| ≤ L|x − y|
for all x, y. Prove that
′
(f (x))2 < 2Lf (x)
holds for all x.
Problem 3. For any positive integer m, denote by P (m) the product of positive divisors
of m (e.g. P (6) = 36). For every positive integer n define the sequence
Determine whether for every set S ⊆ {1, 2, . . . , 2017}, there exists a positive integer n such
that the following condition is satisfied:
For every k with 1 ≤ k ≤ 2017, the number ak (n) is a perfect square if and only if k ∈ S.
Problem 4. There are n people in a city, and each of them has exactly 1000 friends
(friendship is always symmetric). Prove that it is possible to select a group S of people
such that at least n/2017 persons in S have exactly two friends in S.
39
IMC 2017
Day 2, August 3, 2017
Problem 6. Let f : [0; +∞) → R be a continuous function such that limx→+∞ f (x) = L
exists (it may be finite or infinite). Prove that
Z 1
lim f (nx)dx = L.
n→∞ 0
Problem 7. Let p(x) be a nonconstant polynomial with real coefficients. For every positive
integer n, let
qn (x) = (x + 1)n p(x) + xn p(x + 1).
Prove that there are only finitely many numbers n such that all roots of qn (x) are real.
Show that limn→∞ fn (x) exists for every x ∈ [0, 1) and determine the limit function.
Problem 10. Let K be an equilateral triangle in the plane. Prove that for every p > 0
there exists an ϵ > 0 with the following property: If n is a positive integer, and T1 , . . . , Tn
are non-overlapping triangles inside K such that each of them is homothetic to K with a
negative ratio, and
Xn
area(Tl ) > area(K) − ϵ,
l=1
then n
X
perimeter(Tl ) > p.
l=1
40
Proposed problems for the IMC 2017
by University of Primorska
Problem 1. Let A be a symmetric matrix of size n and let k(≥ 3) be an odd number.
The set of the eigenvalues of A consists of ±k (with multiplicity 1) and the roots of the
polynomial Hm (x) − 2, (3 ≤ m ≤ n − 2). Prove that m | n − 2.
(Here Hm (x) is the Dickson polynomial defined as follows: H0 (x) = 1, H1 (x) = x, Hi+2 (x) =
xHi+1 (x) − (k − 1)Hi (x), with i ≥ 0.)
Lemma 1. Let A be a rational symmetric matrix, q(x) ∈ Q[x] be its characteristic poly-
nomial and p(x) ∈ Q[x] an irreducible polynomial with p(x) | q(x). If λ, µ ∈ R are roots
of p(x), then the multiplicities mA (λ) and mA (µ) of λ and µ as eigenvalues of A fulfill
mA (λ) = mA (µ).
According to the above lemma, it is enough to prove that the polynomial Hm (x) − 2 is
irreducible. Then, mA (λ) = mA , for every root λ of Hm (x)−2. It will leads to 2+mmA = n,
that is, m | n − 2.
We prove, using induction on m ≥ 3, that Hm (x) = xm +(k −1)Pm−2 (x), where Pm−2 (x)
is an integer polynomial of degree m − 2. We calculate H3 (x) = x3 − 2(k − 1)x. Let us
suppose that the above formula holds for Hm−1 (x) and Hm−2 (x). That yields
Hm (x) = x(xm−1 +(k −1)Pm−3 (x))−(k −1)(xm−2 +(k −1)Pm−4 (x)) = xm +(k −1)Pm−2 (x).
41
1.6 Academic year 2017/2018
42
TEAM SELECTION TEST FOR VOJTĚCH JARNÍK 2018
March 2018,
FAMNIT
Problem 1. The definite integrals between 0 and 1 of the squares of the continuous real
functions f (x) and g(x) are both equal to 1. Prove that there is a real number c such that
f (c) + g(c) ≤ 2.
Problem 3. Prove that given two matrices A ∈ Mm (R) and B ∈ Mn (R) have a common
eigenvalue if and only if there exists a non-zero matrix C ∈ Mm×n (R) such that AC = CB.
Problem 4. In R2018 , a ball B0 centered at P0 (1, 1, . . . , 1) touches all the axis (of R2018 ).
For how many points P from R2018 does there exist a ball centered at P which touches all
the axis, and moreover touches the ball B0 ?
43
VOJTĚCH JARNÍK 2018
Also in 2018, our math students participated at the oldest mathematics competition for
students within EU: the 28th Vojtěch Jarnı́k International Mathematical Competition,
which was held in Ostrava (Czech Republic) on Friday, April 13th. At this year’s event,
150 students from 33 European universities competed. In the first category (for 1st and
2nd year students or under 22 years of age), Famnit was represented by Dorde Mitrović
(1st year of Mathematics), Arbër Avdullahu and Daniil Baldouski (both 2nd year of
Mathematics), in the second category our Faculty was represented by Mirza Krbezlija
(3rd year of Mathematics). Slobodan Filipovski was a team leader.
Mitrović, Avdullah, and Baldouski received the certificate of a successful participant.
In this picture, from left to right: Mirza Krbezlija, Dorde Mitrović, Arbër Avdullahu
and Daniil Baldouski.
44
VOJTĚCH JARNÍK 2018
Category I
Problem 1. Every point of the rectangle R = [0, 4] × [0, 40] is coloured using one of four
colours. Show that there exist four points in R with the same colour that form a rectangle
having integer side lengths.
Problem 2. Find all prime numbers p such that p3 divides the determinant
22 1 1 . . . 1
2
1 3 1 ... 1
.. .. ..
. . .
1 1 1 (p + 7)2
Problem 3. Let n be a positive integer and let x1 , . . . , xn be positive real numbers satisfying
|xi − xj | ≤ 1 for all pairs (i, j) with 1 ≤ i ≤ j ≤ n. Prove that
x1 x2 xn−1 xn x2 + 1 x3 + 1 xn + 1 x1 + 1
+ + ... + + ≥ + + ... + + .
x2 x3 xn x1 x1 + 1 x2 + 1 xn−1 + 1 xn + 1
for all x ∈ R.
45
VOJTĚCH JARNÍK 2018
Category II
Problem 3. In R3 some n points are coloured. In every step, if four coloured points lie
on the same line, Vojtěch can colour any other point on this line. He observes that he can
colour any point P ∈ R3 in a finite number of steps (possibly depending on P ). Find the
minimal value of n for which this could happen.
46
Proposed problems for Vojtech Jarnik 2018
by University of Primorska
Problem 1. Let k ≥ 3 and δ ≥ 1 be positive integers. Prove that the roots of the
polynomial p(x) = xk + xk−1 + . . . + x + 1 − δ are simple. Moreover, if δ > k + 1, prove
that there exists at least one complex root with negative real part.
Solution. In the proof we use Descartes’ rule of signs: the number of positive roots of a
single-variable polynomial with real coefficients is equal to the number of sign differences
between consecutive nonzero coefficients, or is less than it by an even number; similarly, the
number of negative roots is the number of sign changes after multiplying the coefficients
of odd-power terms by −1, or fewer than it by an even number. According to Descartes’
rule of signs, the polynomial p(x) has exactly one positive real root. If θ is a positive
real root of p(x) with multiplicity greater than 1, then θ also is a root of its derivative
kxk−1 + (k − 1)xk−2 + . . . + 2x + 1, which is impossible. Thus, the unique positive real root
of the polynomial p(x) is simple. If δ ̸= k + 1, then the polynomial p(x) has the same roots
as the equation
xk+1 − δx + δ − 1 = 0, (5)
except for the extra root of (5) x = 1; if δ = k + 1, then x = 1 is a root of p(x) with
multiplicity 1 and a root of (5) with multiplicity 2. Using Descartes’ rule of signs we
have that the equation xk+1 − δx + δ − 1 = 0 has at most two positive real roots (one
of them is x = 1) and at most one negative real root. If we suppose that θ is a root of
(5) with multiplicity greater than 1, we deduce that θ also satisfies the first derivative of
(5), that is, (k + 1)xk − δ. Combining (5) and the identity (k + 1)xk − δ = 0 we obtain
θ = (δ−1)(k+1)
δk
≥ 0, which yields that there exist no negative real root nor complex roots of
p(x) with multiplicity greater than 1.
Now, let δ > k + 1 ≥ 4. Clearly p(1) = k + 1 − δ < 0, and therefore, the unique positive
root of p(x) belongs to the interval (1, ∞), and we denote it by θ1 . Descartes’ rule asserts
that the polynomial p(x) has no negative real root when k is an odd number. We will prove
the existence of a complex root of p(x) with negative real part when p(x) has a negative
real root θ2 ; in such case k must be an even number. The case when p(x) has no negative
root can be handled similarly.
Let θj = pj + qj i, with 3 ≤ j ≤ k, be the complex roots of p(x). By way of contradiction
we assume that pj ≥ 0, for all 3 ≤ j ≤ k. Using the fact that the complex roots come in
conjugate pairs and applying Vieta’s formulas to the polynomial p(x), we obtain
−1 = θ1 + θ2 + . . . + θk = θ1 + θ2 + (p3 + . . . + pk ) ≥ θ1 + θ2 .
On the other hand, since k is an even number and θ1 is a positive, using the inequality
(1 + θ1 )t > (1 + θ1 )t−1 + θ1t + θ1t−1 , for 2 ≤ t ≤ k, we can deduce
47
= (1 + θ1 )k − (1 + θ1 )k−1 + . . . + (1 + θ1 )2 − (1 + θ1 ) + 1 − δ > θ1k + θ1k−1 + . . . + 1 − δ = 0.
Since p(0) < 0 and p(−1 − θ1 ) > 0, it follows that the negative root of p(x) belongs to the
interval (−1 − θ1 , 0), that is, −1 − θ1 < θ2 < 0. Thus θ1 + θ2 > −1, which is in contradiction
to θ1 + θ2 ≤ −1.
48
INTERNATIONAL MATHEMATICAL COMPETITION 2018
From July 22 to 28, the 25th International Mathematics Competition IMC (International
Mathematics Competition for University Students 2018) took place in Blagoevgrad, Bul-
garia, in which Famnit’s students traditionally participate. The colors of the faculty and
the University of Primorska were represented this year by: Dorde Mitrović, Daniil Bal-
douski and Arbër Avdulahu. They returned home with two bronze medals (Avdullahu
– 28 points, Baldouski 23 – points), while Mitrović received the honorable mention of the
competition. Team leader of our team was Slobodan Filipovski.
In this picture, from left to right: Daniil Baldouski, Dorde Mitrović, Arbër Avdulahu and
Slobodan Filipovski (team leader).
49
IMC 2018
Day 1, July 24, 2018
Problem 2. Does there exist a field such that its multiplicative group is isomorphic to its
additive group?
Problem 5. Let p and q be prime numbers with p < q. Suppose that in a convex polygon
P1 P2 . . . Ppq all angles are equal and the side lengths are distinct positive integers. Prove
that
k3 + k
P1 P2 + P2 P3 + · · · + Pk Pk+1 ≥
2
holds for every integer k with 1 ≤ k ≤ p.
50
IMC 2018
Day 2, July 25, 2018
Problem 6. Let k be a positive integer. Find the smallest positive integer n for which
there exist k nonzero vectors v1 , . . . , vk in Rn such that for every pair i, j of indices with
|i − j| > 1 the vectors vi and vj are orthogonal.
Problem 9. Determine all pairs P (x), Q(x) of complex polynomials with leading coefficient
1 such that P (x) divides Q(x)2 + 1 and Q(x) divides P (x)2 + 1.
Problem 10. For R > 1 let DR = {(a, b) ∈ Z2 : 0 < a2 + b2 < R}. Compute
X (−1)a+b
lim .
R→∞ a2 + b 2
(a,b)∈DR
51
1.7 Academic year 2018/2019
52
VOJTĚCH JARNÍK 2019
Also in 2019, our math students participated at the oldest mathematics competition
for students within EU: the 29th Vojtěch Jarnı́k International Mathematical Competition,
which was held in Ostrava (Czech Republic) on March 29th. At this year’s event, 145
students from 35 European universities competed. In the first category (for 1st and 2nd
year students or under 22 years of age), Famnit was represented by Dorde Mitrović (2nd
year of Mathematics), Eva Siladji and Besfort Shala (both 1st year of Mathematics),
in the second category our Faculty was represented by Roman Solodukhin (2nd year of
Mathematical Sciences). Team leader of FAMNIT’ team was Slobodan Filipovski.
Mitrović, Shala and Solodukhin received the certificate of a successful participant.
In this picture, from left to right: Roman Solodukhin, Eva Siladji, Besfort Shala and Dorde
Mitrović.
53
VOJTĚCH JARNÍK 2019
Category I
54
VOJTECH JARNIK 2019
Category II
Problem 1.
a) Is it true that for every non-empty set A and every associative operation ∗ : A×A → A
the conditions
x ∗ x ∗ y = y and y ∗ x ∗ x = y for every x, y ∈ A
imply commutativity of ∗?
b) Is it true that for every non-empty set A and every associative operation ∗ : A×A → A
the condition
x ∗ x ∗ y = y for every x, y ∈ A
imply commutativity of ∗?
R
Problem 3. Let p be an even non-negative continuous function with R p(x)dx = 1 and
let n be a positive integer. Let ξ1 , ξ2 , . . . , ξn be independent identically distributed random
variables with density function p. Define
X0 = 0,
X1 = X0 + ξ1 ,
X2 = X1 + ξ2 ,
..
.
Xn = Xn−1 + ξn .
Prove that the probability that all the random variables X1 , X2 , . . . , Xn−1 lie between X0
and Xn equals n1 .
Problem 4. Let D = {z ∈ C : Imz > 0, Rez > 0}. Let n ≥ 1 and let a1 , . . . , an ∈ D be
distinct complex numbers. Define
n
Y z − aj
f (z) = z · .
j=1
z − aj
′
Prove that f has at least one root in D.
55
INTERNATIONAL MATHEMATICS COMPETITION 2019
The 26th International mathematical competition for University Students – IMC 2019,
which takes place every year in Blagoevgrad in Bulgaria, was held between 28 July and 3
August.
FAMNIT and the University of Primorska were represented by Besfort Shala, Dorde
Mitrović and Roman Solodukhin. All three were very successfull and brought home
three medals: two silvers (Shala in Solodukhin, both 37 points) and one bronze (Mitrović
– 27 points).
In the picture, from left to right: Dorde Mitrović, Besfort Shala and Roman Solodukhin.
56
IMC 2019
Day 1, July 30, 2019
Y x + Ey + Az + Rw = Y
Rx + Y y + Ez + Aw = E
Ax + Ry + Y z + Ew = A
Ex + Ay + Rz + Y w = R
of linear equations in the variables x, y, z and w has at least two solutions. Find all very
good YEARs in the 21st century.
(The 21st century starts in 2001 and ends in 2100.)
Prove that Z 1
1
xf (x)dx ≥ .
−1 3
Problem 5. Determine whether there exist an odd positive integer n and n × n matrices
A and B with integer entries, that satisfy the following conditions:
1. det(B) = 1;
2. AB = BA;
3. A4 + 4A2 B 2 + 16B 4 = 2019I.
( Here I denotes the n × n identity matrix.)
57
IMC 2019
Day 2, July 31, 2019
Problem 7. Let C = {4, 6, 8, 9, 10, . . .} be the set of composite positive integers. For each
n ∈ C let an be the smallest positive integer k such that k! is divisible by n. Determine
whether the following series converges:
X an n
.
n∈C
n
Problem 8. Let x1 , . . . , xn be real numbers. For any set I ⊂ {1, 2, . . . , n} let s(I) =
that the function I → s(I) takes on at least 1.8n values where I runs over
P
x
i∈I i . Assume
all 2n subsets of {1, 2, . . . , n}. Prove that the number of sets I ⊂ {1, 2, . . . , n} for which
s(I) = 2019 does not exceed 1.7n .
Problem 9. Determine all positive integers n for which there exist n × n real invertible
matrices A and B that satisfy AB − BA = B 2 A.
Problem 10. 2019 points are chosen at random, independently, and distributed uniformly
in the unit disc {(x, y) ∈ R2 : x2 + y 2 ≤ 1}. Let C be the convex hull of the chosen points.
Which probability is larger: that C is a polygon with three vertices, or a polygon with four
vertices?
58
1.8 Academic year 2019/2020
59
INTERNATIONAL MATHEMATICS COMPETITION 2020
The 27th IMC - International Mathematical Student Competition) took place this year from
25 to 30 July. The IMC is one of the most renowned competitions of its kind worldwide.
As the IMC was held online due to pandemic COVID -19, the participation was ex-
tremely high, with more than 560 students from all over the world taking part. The
University of Primorska is the only institution in Slovenia that organised the preparations
for its students well in advance and registered them for the competition.
The UP FAMNIT team was represented by Arbër Avdullahu (1st year, Mathematical
Sciences), Besfort Shala (2nd year, Mathematics), Ajla Šehović (1st year, Mathematics),
Milan Milivojčević (1st year, Computer Science), Jana Ristovska (1st year, Computer
Science) and team leader Assoc. Prof. Marko Orel.
The opening ceremony took place on Sunday 25 July, followed by two days of compe-
titions, during which the students had four hours a day to solve four problems. After the
second day, the team leaders evaluated the students’ tasks 24 hours a day, as the compe-
tition took place simultaneously all over the world. The results were announced on the
last day at the closing ceremony. Among the UP FAMNIT students, Arbër Avdullahu and
Besfort Shala were the best participants, both received an Honourable Mention certificate.
60
IMC 2020 Online
Day 1, July 26, 2020
Problem 1. Let n be a positive integer. Compute the number of words w (finite sequences
of letters) that satisfy all the following three properties:
(1) w consists of n letters, all of them are from the alphabet {a, b, c, d};
(2) w contains an even number of letters a;
(3) w contains an even number of letters b.
(For example, for n = 2 there are 6 such words: aa, bb, cc, dd, cd and dc.)
rk(AB − BA + I) = 1
Problem 3. Let d ≥ 2 be an integer. Prove that there exists a constant C(d) such that
the following holds: For any convex polytope K ⊂ Rd , which is symmetric about the origin,
and any ϵ ∈ (0, 1), there exists a convex polytope L ⊂ Rd with at most C(d)ϵ1−d vertices
such that
(1 − ϵ)K ⊆ L ⊆ K.
(For a real α, a set T ⊂ Rd with nonempty interior is a convex polytope P with at most α
d
vertices, if T is a convex hull of a set X ⊂ R of at most α points, i.e, T = { x∈X tx x | tx ≥
d
P
0, x∈X tx = 1.} For a real λ put λK = {λx | x ∈ K}. A set T ⊂ R is symmetric about
the origin if (−1)T = T.)
Problem 4. A polynomial p with real coefficients satisfies the equation p(x + 1) − p(x) =
x100 for all x ∈ R. Prove that p(1 − t) ≥ p(t) for 0 ≤ t ≤ 1/2.
61
IMC 2020 Online
Day 2, July 27, 2020
Problem 5. Find all twice continuously differentiable functions f : R → (0, +∞) satisfying
′′ ′
f (x)f (x) ≥ 2(f (x))2
for all x ∈ R.
Problem 6. Find all prime numbers p for which there exists a unique a ∈ {1, 2, . . . , p}
such that a3 − 3a + 1 is divisible by p.
Problem 8. Compute
n
1 X
k n
lim (−1) log k.
n→∞ log log n k
k=1
62
1.9 Academic year 2020/2021
63
INTERNATIONAL MATHEMATICS COMPETITION 2021
This year, the 28th International Mathematics Competition for University Students took
place between 2 and 7 August. This year’s competition, where 590 students from all over
the world took part as 113 teams, was held online.
Exceptional result was achieved by Besfort Shala, winning second prize with 23 points.
Todor Antić (7 points) and Dorotea Redžepi (4 points) received an honorary mention.
The UP FAMNIT team were represented by Ajla Šehović (2nd year, Mathematics),
Besfort Shala (graduate, Mathematics), Dorotea Redžepi (1st year, Mathematics),
Lazar Marković (1st year Mathematics), Milan Milivojčević (2nd year, Computer
Science), Todor Antić (2nd year, Mathematics) and team leader, Assist. Prof. Slobodan
Filipovski.
64
IMC 2021 Online
Day 1, August 3, 2021
X + AX + XA2 = A.
Problem 2. Let n and k be fixed positive integers, and let a be an arbitrary non-negative
integer. Choose a random k-element subset X of {1, 2, . . . , k + a} uniformly (i.e., all k-
element subsets are chosen with the same probability) and, independently of X, choose a
random n-element subset Y of {1, . . . , k + n + a} uniformly.
Prove that the probability
P min(Y ) > max(X)
Problem 3. We say that a positive real number d is good if there exists an infinite sequence
a1 , a2 , a3 , . . . ∈ (0, d) such that for each n, the points a1 , . . . , an partition the interval [0, d]
into segments of length at most 1/n each. Find
n o
sup d d is good .
Problem 4. Let f : R → R be a function. Suppose that for every ε > 0, there exists a
function g : R → (0, ∞) such that for every pair (x, y) of real numbers,
if |x − y| < min g(x), g(y) , then f (x) − f (y) < ε.
Prove that f is the pointwise limit of a sequence of continuous R → R functions, i.e., there
is a sequence h1 , h2 , . . . of continuous R → R functions such that lim hn (x) = f (x) for
n→∞
every x ∈ R.
65
IMC 2021 Online
Day 2, August 4, 2021
Problem 5. Let A be a real n × n matrix and suppose that for every positive integer m
there exists a real symmetric matrix B such that
2021B = Am + B 2 .
Problem 6. For a prime number p, let GL2 (Z/pZ) be the group of invertible 2×2 matrices
of residues modulo p, and let Sp be the symmetric group (the group of all permutations)
on p elements. Show that there is no injective group homomorphism φ : GL2 (Z/pZ) → Sp .
Problem 7. Let D ⊆ C be an open set containing the closed unit disk {z : |z| ≤ 1}. Let
f : D → C be a holomorphic function, and let p(z) be a monic polynomial. Prove that
Problem 8. Let n be a positive integer. At most how many distinct unit vectors can be
selected in Rn such that from any three of them, at least two are orthogonal?
66
1.10 Academic year 2021/2022
67
TEAM SELECTION TEST FOR VOJTĚCH JARNÍK 2022
March 4, 2022
FAMNIT
Problem 1. Let A, B and X be n × n matrices over the same field, with X being nonsin-
gular. Prove that AB = AX + X −1 B if and only if BA = XA + BX −1 .
and let α, β ∈ R, α < β. Compute the total length of the preimage f −1 ([α, β]). (The length
of the set consisting of intervals is the sum of their lengths.)
Problem 4. Let
k1 X
N X k2 kN −1
X X
S(N ) = ... 1.
k1 =1 k2 =1 k3 =1 kN =1
p
N
Find the limit limN →∞ S(N ).
68
VOJTĚCH JARNÍK 2022
Between 31 March and 3 April, the 30th traditional Vojtěch Jarnı́k International Math-
ematical Competition, the oldest mathematics competition for students in the European
Union, which UP FAMNIT students have traditionally participated in for many years, took
place in Ostrava (Czech Republic). This year’s competition was held after a two-year break,
and was again attended by UP FAMNIT students, who achieved outstanding results. In
the first category (for 1st and 2nd year students or under 22 years of age) Famnit was
represented by Dren Neziri, Diar Gashi (both 1st year of Mathematics) and Dorotea
Redžepi (2nd year of Mathematics). In the second category our faculty was represented
by Ajla Šehović (3rd year of Mathematics). Among the competitive problems was also
included the problem proposed by dr. Slobodan Filipovski (Problem 3, Category 2),
who was their team leader.
In the picture, from left to right: Dren Neziri, Diar Gashi, Dorotea Redžepi and Ajla
Šehović.
Student Dren Neziri reached the best results, finishing 10th with 15 points, for which
he also received a certificate.
69
VOJTĚCH JARNÍK 2022
April 2, 2022
Category I
Problem 1. Assume that a real polynomial P (x) has no real roots. Prove that the
polynomial
′′
P (x) P (4) (x)
Q(x) = P (x) + + + ...
2! 4!
also has no real roots.
Problem 2. Let n ≥ 1. Assume that A is a real n × n matrix which satisfies the equality
A7 + A5 + A3 + A − I = 0.
Problem 4. In a box there are 31, 41 and 59 stones coloured, respectively, red, green and
blue. Three players, having t-shirts of these three colours, play the following game. They
sequentially make one of two moves:
(I) either remove three stones of one colour from the box,
(II) or replace two stones of different colours by two stones of the third colour.
The game ends when all the stones in the box have the same colour and the winner is the
player whose t-shirt has this colour. Assuming that the players play optimally, is it possible
to decide whether the game ends and who will win, depending on who the starting player
is?
70
VOJTĚCH JARNÍK 2022
April 2, 2022
Category II
Problem 2. For any given pair of positive integers m > n find all a ∈ R for which the
polynomial xm − axn + 1 can be expressed as a quotient of two nonzero polynomials with
real nonnegative coefficients.
g(pα ) = αpα−1 ,
where α ∈ Z+ and p > 0 is a prime. Prove that there exist infinitely many positive integers
n such that
g(n) + 1 = g(n + 1).
71
Proposed problems for Vojtěch Jarnı́k 2022
by University of Primorska
1 t4 − 2t2 + 1
t+ ≥2+ ⇔ 2t6 − 5t5 + 2t4 + 2t3 + 2t2 − 5t + 2 ≥ 0.
t 2(t4 + 1)
Now we easily show 2t6 − 5t5 + 2t4 + 2t3 + 2t2 − 5t + 2 = (t − 1)4 (2t2 + 3t + 2) ≥ 0. □
x2 1
Let ai = x2 +...+x
i
2 and bi = n for i = 1, . . . , n. Applying the above lemma for x = ai and
1 n
y = bi we obtain
x2i (x2i n − (x21 + . . . + x2n ))2
1 xi
2 2
+ ≥ 2+ 4 2 2 2 2
p . (6)
x1 + . . . + xn n 2(xi n + (x1 + . . . + xn ) ) 2
(n(x1 + . . . + x2n )
72
r Pn
x21 + . . . + x2n xi m · σ 2 (X 2 ) m · σ 2 (X 2 )
≥ i=1 + = µ(X) + ⇔
n n 4(M 4 + µ2 (X 2 )) 4(M 4 + µ2 (X 2 ))
p m · σ 2 (X 2 ) m · σ 2 (X 2 )
µ(X 2 ) ≥ µ(X) + = µ(X) + .
4(M 4 + M 4 ) 8M 4
In the end we get
p p mσ 2 (X 2 ) m 2
σ 2 (X) = ( µ(X 2 ) − µ(X))( µ(X 2 ) + µ(X)) ≥ · 2m = · σ 2 (X 2 ).
8M 4 2M 2
Problem 2. Let p ≥ 3 be a prime number and let n ≥ 1 be a natural number. Prove that
for any k such that 2 ≤ k ≤ pn holds
n n
p +2 p +1
gcd , > 1.
k 2
n n n n n n
1. If d < pn , then pd is a divisor of p k+2 . On the other hand, p 2+1 = (p +1)p = p 2+1 ·pn .
n n n
2
Thus pn | p 2+1 , that is, pd is a divisor of p 2+1 . In this case the claim holds.
73
INTERNATIONAL MATHEMATICS COMPETITION 2022
The 29. International Mathematics Competition for University Students 2022 (IMC)
was held between 1st and 7th August 2022, where, now traditionally, FAMNIT students
competed among 667 participants from all over the world. This year, UP FAMNIT students
performed with exceptional results. Ranking best was Diar Gashi (1st year, Mathematics),
who received a bronze medal with 21 points, while the honorary mention went to Dren
Neziri (1st year, Mathematics), Mirza Redzić (1st year, Mathematical Sciences) and
Todor Antić (3rd year, Mathematics).
The students Dorotea Redžepi (2nd year, Mathematics) and Ajla Šehović (3rd year,
Mathematics) who received a certificate of participation. Team leader of FAMNIT’s team
was Slobodan Filipovski.
After two years the IMC was finally held live. The competition was organized under the
auspices of University College London and hosted by the American University in Bulgaria.
Hybrid participation also allowed for online competition, where the final results are not
published yet.
In the picture, from left to right: Diar Gashi, Dren Neziri, Ajla Šehivić, Dorotea Redžepi,
Mirza Redzič and Todor Antić.
74
IMC 2022
Day 1, August 3, 2022
Problem 2. Let n be a positive integer. Find all n × n real matrices A with only real
eigenvalues satisfying
A + Ak = AT
for some integer k ≥ n.
(AT denotes the transpose of A.)
Problem 3. Let p be a prime number. A flea is staying at point 0 of the real line. At each
minute, the flea has three possibilities: to stay at its position, or to move by 1 to the left or
to the right. After p − 1 minutes, it wants to be at 0 again. Denote by f (p) the number of
its strategies to do this (for example, f (3) = 3: it may either stay at 0 for the entire time,
or go to the left and then to the right, or go to the right and then to the left). Find f (p)
modulo p.
Problem 4. Let n > 3 be an integer. Let Ω be the set of all triples of distinct elements of
{1, 2, . . . , n}. Let m denote the minimal number of colours which suffice to colour Ω so that
whenever 1 ≤ a < b < c < d ≤ n, the triples {a, b, c} and {b, c, d} have different colours.
Prove that
1
log log n ≤ m ≤ 100 log log n
100
.
75
IMC 2022
Day 2, August 4, 2022
Problem 5. We colour all the sides and diagonals of a regular polygon P with 43 vertices
either red or blue in such a way that every vertex is an endpoint of 20 red segments and 22
blue segments. A triangle formed by vertices of P is called monochromatic if all of its sides
have the same colour. Suppose that there are 2022 blue monochromatic triangles. How
many red monochromatic triangles are there?
Problem 6. Let p > 2 be a prime number. Prove that there is a permutation (x1 , x2 , . . . , xp−1 )
of the numbers (1, 2, . . . , p − 1) such that
Problem 8. Letn, k ≥ 3 be integers, and let S be a circle. Let n blue points and k red
points be chosen uniformly and independently at random on the circle S. Denote by F
the intersection of the convex hull of the red points and the convex hull of the blue points.
Let m be the number of vertices of the convex polygon F (in particular, m = 0 when F is
empty). Find the expected value of m.
76
Proposed problems for IMC 2022
by University of Primorska
Based on the above lemma, it suffices to calculate the eigenvalues of the block matrix
B. Since the matrices I5 and A2 − λI5 commute, we have
A1 − λI5 I5
det(B − λI10 ) = det = det((A1 − λI5 ) · (A2 − λI5 ) − I5 · I5 ) =
I5 A2 − λI5
77
It is easy to verify that A1 · A2 = A1 + A2 = J5 − I5 , where J5 is all-ones matrix. Thus
1 − λ 1 − λ 1 − λ 1 − λ λ2 − 1
−1 − λ 1 1 1 1
1 −1 − λ 1 1 1
= det 1 1 −1 − λ 1 1 · (1 − λ)5 =
1 1 1 −1 − λ 1
1 1 1 1 −1 − λ
−1 − λ 1
1 1 1
λ+2 λ+2 λ+2 2 +2λ
0 λ+1 λ+1 λ+1
− λλ+1
5 = (1−λ)5 (λ+2)3 (λ2 −λ−6).
= (1−λ) ·det
0 0 λ + 2 λ + 2 (λ + 2)(1 − λ)
0 0 0 λ+2 −λ2 + 4
2
0 0 0 0 −λ + λ + 6
Solving the equation (1 − λ)5 (λ + 2)3 (λ2 − λ − 6) = 0 we get that −2, 1 and 3 are the
eigenvalues of B (with multiplicity 4, 5 and 1, respectively).
From the lemma we conclude that 1, 4 and 9 are eigenvalues of A, with multiplicity 5, 4 and
1, respectively.
Problem 2. Let p > 3 be a prime number. Prove that, if p is a primitive root of 4p + 1,
then 2p + 1 is a composite number.
78
k−1 ϕ(5k )
By induction we can prove that 42·5 ≡ 1 (mod 5k ). Thus we get p 2 ≡ 1 (mod 5k ),
which implies that p is not a primitive root of 4p + 1. Hence 4p + 1 is a prime number.
Since 4p + 1 is prime we have p ≡ 1 (mod 3). In this case 2p + 1 is divisible by 3, that is,
2p + 1 is a composite number.
79
1.11 Academic year 2022/2023
80
INTERNATIONAL MATHEMATICS COMPETITION 2023
At the end of July 2023, the 30th International Mathematics Competition for University
Students (IMC) took place in Blagoevgrad, Bulgaria. The competition brought together
more than 400 students from numerous universities worldwide to showcase their mathemat-
ical knowledge and problem-solving skills.
Traditionally were part of the competition also UP FAMNIT students, who together
with their team leader Blas Fernández from the Department of Mathematics, faced all
the challenges presented by the competition.
This time, the University of Primorska (UP FAMNIT) was represented by Dren Neziri
(a 2nd-year student of the Mathematics) and Diar Gashi (a 3rd-year student of the Math-
ematics), who received an honorable mention, and Yllkë Jashari (a 1st-year student of
the Mathematics) and Dmytro Tupkalenko (a 1st-year student of the Mathematics), who
received a certificate of achievement.
The IMC spanned two days of intense mathematical examinations. Each day, partici-
pants were tasked with solving five exercises, with each exercise proposed by different team
leaders. On the second day of the competition, a particular problem proposed by Slobodan
Filipovski from the University of Primorska, was selected for the participants to tackle.
In the picture, from left to right: Yllkë Jashari, Dmytro Tupkalenko, Blas Fernández (team
leader), Dren Neziri and Diar Gashi.
81
IMC 2023
Day 1 , August 2, 2023
Problem 1. Find all functions f : R → R that have a continuous second derivative and
for which the equality f (7x + 1) = 49f (x) holds for all x ∈ R.
Prove that A6 = I.
Problem 3. Find all polynomials P in two variables with real coefficients satisfying the
identity
P (x, y)P (z, t) = P (xz − yt, xt + yz).
Problem 4. Let p be a prime number and let k be a positive integer. Suppose that the
numbers ai = ik + i for i = 0, 1, . . . , p − 1 form a complete residue system modulo p. What
is the set of possible remainders of a2 upon division by p?
Problem 5. Fix positive integers n and k such that 2 ≤ k ≤ n and a set M consisting
of n fruits. A permutation is a sequence x = (x1 , x2 , . . . , xn ) such that {x1 , . . . , xn } = M.
Ivan prefers some (at least one) of these permutations. He realized that for every preferred
permutation x, there exist k indices i1 < i2 < . . . < ik with the following property: for
every 1 ≤ j < k, if he swaps xij and xij+1 , he obtains another preferred permutation.
Prove that he prefers at least k! permutations.
82
IMC 2023
Day 2 , August 3, 2023
2 3
Problem 6. Ivan writes the matrix on the board. Then he performs the following
2 4
operation on the matrix several times:
1. he chooses a row or a column of the matrix, and
2. he multiplies or divides the chosen row or column entry-wise by the other row or column,
respectively.
2 4
Can Ivan end up with the matrix after finitely many steps?
2 3
Problem 8. Let T be a tree with n vertices; that is, a connected simple graph on n vertices
that contains no cycle. For every pair u, v of vertices, let d(u, v) denote the distance between
u and v, that is, the number of edges in the shortest path in T that connects u and v.
Consider the sums
X X 1
W (T ) = d(u, v) and H(T ) = .
{u,v}⊆V (T ) {u,v}⊆V (T )
d(u, v)
u̸=v u̸=v
Prove that
(n − 1)3 (n + 2)
W (T ) · H(T ) ≥ .
4
Problem 9. We say that a real number V is good if there exist two closed convex subsets
X, Y of the unit cube in R3 , with volume V each, such that for each of the three coordinate
planes (that is, the planes spanned by any two of the three coordinate axes), the projections
of X and Y onto that plane are disjoint. Find sup{V | V is good}.
Problem 10. For every positive integer n, let f (n), g(n) be the minimal positive integers
such that
1 1 1 f (n)
1 + + + ... + = .
1! 2! n! g(n)
Determine whether there exists a positive integer n for which g(n) > n0.999n .
83
Proposed problems for IMC 2023
by University of Primorska
Problem 1. Let T be a tree with n vertices; that is, a connected simple graph on n vertices
that contains no cycle. For every pair u, v of vertices, let d(u, v) denote the distance between
u and v, that is, the number of edges in the shortest path in T that connects u and v.
Consider the sums
X X 1
W (T ) = d(u, v) and H(T ) = .
{u,v}⊆V (T ) {u,v}⊆V (T )
d(u, v)
u̸=v u̸=v
Prove that
(n − 1)3 (n + 2)
W (T ) · H(T ) ≥ .
4
Solution: Let k = n2 and let x1 ≤ x2 ≤ . . . ≤ xk be the distances between the pairs of
Since the tree has exactly n − 1 edges, there are exactly n − 1 pairs of vertices at distance
one, that is, x1 = x2 = . . . = xn−1 = 1. Thus
1 1 1
W (Tn ) · H(Tn ) = (n − 1 + xn + xn+1 + . . . + xk ) · n − 1 + + + ... + =
xn xn+1 xk
2 1 1
= (n − 1) + (n − 1) xn + + . . . + xk + +
xn xk
1 1
+(xn + . . . + xk ) + ... + .
xn xk
From Cauchy inequality we have
(n − 1)2 (n − 2)2
1 1
(xn + . . . + xk ) + ... + ≥ (1 + 1 + . . . + 1)2 = (k − n + 1)2 = .
xn xk 4
84
The equality holds for x1 = . . . = xn−1 = 1 and xn = xn+1 = . . . = xk = 2, that is,
the smallest value is achieved for the tree where n − 1 pairs are at distance one, and the
remaining k − (n − 1) = (n−1)(n−2)
2
pairs are at distance two. The unique tree which satisfies
these conditions is the star graph Sn . In this case it holds
(n − 1)(n + 2) (n − 1)3 (n + 2)
W (Sn ) · H(Sn ) = (n − 1)2 · = .
4 4
Problem 2. Let A be a real square matrix such that the sum of each row is equal to d > 1,
d ∈ N, and tr(Ai ) = 0, for each i = 1, . . . , 2023. Prove that
A2023 + A2022 + . . . + A + I ̸= J,
Solution 1. Let us suppose that there is a square matrix A of size n for which A2023 +
2022
A + . . . + A + I = J. Clearly, the spectrum of A consists of d and some of the roots of
the equation x2023 + x2022 + . . . + x + 1 = 0. Since tr(Ak ) = 0 for each k = 1, . . . , 2023 we
get
Xn−1
k
d + xki = 0. (8)
i=1
1 1
From xi = xi
= x2023
and (8) we get
i
Thus we get d = 0 or d = 1.
Solution 2. Let us suppose that there is a matrix A for which A2023 +A2022 +. . .+A+I =
J. Clearly, d is an eigenvalue of A and d2023 + d2022 + . . . + d + 1 = n is an eigenvalue of
J. Thus, the eigenvalues of J are n (with multiplicity 1) and 0 (with multiplicity n − 1).
Moreover, the eigenvalues of A are d and the roots of the polynomial p(x) = x2023 +. . .+x+1.
The roots of p(x) are the 2024-th roots of unity, (except x = 1), so they are simple roots.
We use the following lemma derived by Feit and Higman.
Lemma 4. Let θ be a simple root of the polynomial f (x) and let fθ (x) = fx−θ
(x)
. If M is a
tr(fθ (M ))
matrix satisfying f (M ) = O, then fθ (θ) is the multiplicity of θ as a characteristic root
of M .
f (x) x − d g(x)
fθ (x) = = · (9)
x−θ x−θ x−1
85
θ−d θ−d
fθ (θ) = · D(g(θ)) = · 2024θ2023 . (10)
θ−1 θ−1
From (9) we have fθ (0) = dθ . Since tr(Ai ) = 0 for i = 1, . . . , 2023 we get tr(fθ (A)) =
fθ (0)tr(I) = dθ · n. By using the above lemma we get
nd θ − 1
m(θ) = · . (11)
2024 θ − d
θ−1
Since θ is a root of p(x), we pick θ to be a complex number. From d > 1, we get that θ−d is a
complex number as well, thus m(θ) is a complex number, which is not possible. Therefore,
for each matrix A which satisfies the given conditions holds A2023 + A2022 + . . . + A + I ̸= J.
Problem 3. Let {ai }∞ i=1 be a geometric progression of natural numbers which quotient has
exactly k prime divisors. Prove that the (k − 1)-th differences of the sequence {τ (ai )}∞
i=1 is
an arithmetic progression.
Solution. In the solution we will use the following two well-known identities:
Pk+1 i k+1
Lemma 5. 1. i=0 (−1) i
= 0.
Pk+1
2. For each 1 ≤ m ≤ k it holds i=1 (−1)i im k+1
i
= 0.
Let q = pα1 1 pα2 2 · . . . · pαk k be the canonical form of the quotient of the progression and let
a1 = pβ1 1 pβ2 2 · . . . · pβkk · b, where βi ≥ 0 and gcd(pi , b) = 1 for i = 1, 2, . . . , k. Then for any
(i−1)α1 +β1 (i−1)α2 +β2 (i−1)αk +βk
i ≥ 1 we have ai = a1 · q i−1 = p1 · p2 · . . . · pk · b and
τ (ai ) = ((i − 1)α1 + β1 + 1)((i − 1)α2 + β2 + 1) · . . . · ((i − 1)αk + βk + 1)τ (b). (12)
k−1
j k−1
X
{si }∞
i=1 = { (−1) τ (ak+i−j−1 )}∞
i=1 . (13)
j=0
j
We will prove that sn+1 − 2sn + sn−1 = 0 for any n ≥ 2, which is a sufficient condition to
assert that the sequence {si }∞
i=1 is arithmetic. We have
86
k k−1 k−1 k+1 k − 1
+(−1) 2 + τ (an ) + (−1) τ (an−1 ) = 0.
k−1 k−2 k−1
Using k−1 = k+1
k−1
, 1 +2 k−1 = k+1
k−1
, j +2 k−1
k−1
+ j−2 = k+1
0 0 0 1 j−1 j
, for 2 ≤ j ≤ k−1,
k−1 k−1 k+1 k−1 k+1
2 k−1 + k−2 = k and k−1 = k+1 , the above identity is equivalent to
k+1
j k+1
X
(−1) τ (ak+n−j ) = 0. (15)
j=0
j
Now we have (b1 − jα1 )(b2 − jα2 ) · . . . · (bk − jαk ) = C0 − jC1 + j 2 C2 + .... + (−1)k j k Ck where
Ci are constants which depends on α’s and b’s. Finally the identity in (16) is equivalent to
k+1 k
j k+1
X X
(−1) (C0 + (−1)i Ci j i ) = 0. (17)
j=0
j i=1
k+1 ! k+1 !
X k + 1 X k+1
+C2 (−1)i i2 · − . . . + (−1)k Ck (−1)i ik · = 0.
i=1
i i=1
i
Based on the above lemma we verify that the last identity is valid, which complete the
proof.
87