#CompetitionYearsProblemsYears
1International Mathematical Olympiad1959–2025398
2Middle European Mathematical Olympiad2009–2025160

Overview

YearP1P2P3P4P5P6P7I-1I-2I-3I-4T-1T-2T-3T-4T-5T-6T-7T-8Solved
20250/18
20240/18
20230/18
20220/18
20210/18
20200/10
20190/18
20180/18
20170/6
20160/18
20150/18
20140/6
20130/18
20120/6
20110/18
20100/18
20090/18
20080/6
20070/6
20060/6
20050/6
20040/6
20030/6
20020/6
20010/6
20000/6
19990/6
19980/6
19970/6
19960/6
19950/6
19940/6
19930/6
19920/6
19910/6
19900/6
19890/6
19880/6
19870/6
19860/6
19850/6
19840/6
19830/6
19820/6
19810/6
19790/6
19780/6
19770/6
19760/6
19750/6
19740/6
19730/6
19720/6
19710/6
19700/6
19690/6
19680/6
19670/6
19660/6
19650/6
19640/6
19630/6
19620/7
19610/6
19600/7
19590/6

Problems

2025

Middle European Mathematical Olympiad 2025 Problem T-1

Bob has nn coins with integer values c1c2cn>0.c_1 \geq c_2 \geq \cdots \geq c_n > 0.

He is standing in front of a vending machine that offers nn candy bars with positive integer costs b1,b2,,bnb_1, b_2, \ldots, b_n. Bob notices that for every i{1,,n}i \in \{1, \ldots, n\}, it holds that b1+b2++bic1+c2++ci.b_1 + b_2 + \cdots + b_i \geq c_1 + c_2 + \cdots + c_i.

Furthermore, the total value of Bob's coins equals the sum of the costs of all the candy bars. The candy bars can be purchased in any order. In order to buy the ii-th candy bar, Bob has to insert coins of total value at least bib_i. However, the machine does not give him back any change.

Prove that Bob can buy at least half of the candy bars.

Middle European Mathematical Olympiad 2025 Problem T-2

Let R+\mathbb{R}^+ be the set of positive real numbers. Determine all functions f ⁣:R+R+f\colon \mathbb{R}^{+}\to \mathbb{R}^{+} such that for all numbers x,yR+x,y\in \mathbb{R}^{+}, we have f(xy)+f(x)=f(y)f(xf(y))+f(x)f(y),f(xy) + f(x) = f(y)f(xf(y)) + f(x)f(y),

and there exists at most one number aR+a \in \mathbb{R}^+ such that f(a)=1f(a) = 1.

Middle European Mathematical Olympiad 2025 Problem T-3

A snake in an n×nn \times n grid is a path composed of straight line segments between centres of adjacent cells, going through the centres of all the n2n^2 grid cells, which visits each cell exactly once. Here two grid cells are considered to be adjacent if they share an edge. Note that all pieces of the snake path are parallel to grid lines. The figure shows an example of a snake in a 4×44 \times 4 grid. This snake makes nine 9090^\circ turns, marked by small black squares.

figure

Let us now consider a snake through the 2025 cells of a 45×4545 \times 45 grid. What is the maximum possible number of 9090^\circ turns that such a snake can make?

Middle European Mathematical Olympiad 2025 Problem T-4

Let nn be a positive integer. In the province of Laplandia there are 100n100n cities, each two connected by a direct road, and each of these roads has a toll station collecting a positive amount of toll revenue. For each road, the revenue of its toll station is split equally between the two cities at the ends of the road (meaning that each of the two cities receives half of the income). For each city, the total toll revenue is given by the sum of the revenues it receives from the 100n1100n - 1 toll stations on its roads.

According to a new law, the revenues of some of the toll stations will be collected by the federal government instead of by the adjacent cities. The governor of Laplandia is allowed to choose those toll stations. The mayors of the cities demand that for each city, the sum of the remaining revenues it receives from the other toll stations after this change is at least 99%99\% of its former total toll revenue.

Find the largest positive integer kk, depending on nn, such that the governor can always choose kk toll stations for the federal government to collect the toll revenue, while satisfying the demand of the city mayors.

Middle European Mathematical Olympiad 2025 Problem T-5

Let ABCABC be an acute triangle with AB<ACAB < AC. Denote by DD the foot of the perpendicular from AA to BCBC. Let EE be the point such that ABECABEC is a parallelogram. Let MM be a point inside triangle ABCABC such that MB=MCMB = MC. Let FF be the reflection of point DD across the tangent to the circumcircle of triangle ADMADM at point MM. Prove that AF=DEAF = DE.

Middle European Mathematical Olympiad 2025 Problem T-6

Let ABCABC be an acute triangle with an interior point DD such that BDC=180BAC\angle BDC = 180^{\circ} - \angle BAC. The lines BDBD and ACAC intersect at the point EE, and the lines CDCD and ABAB intersect at the point FF. The points PEP \neq E and QFQ \neq F lie on the line EFEF so that BP=BEBP = BE and CQ=CFCQ = CF. Assume that the segments APAP and AQAQ intersect the circumcircle ω\omega of ABCABC at the points RAR \neq A and SAS \neq A, respectively. Prove that the lines RFRF and SESE intersect on ω\omega.

Middle European Mathematical Olympiad 2025 Problem T-7

Let nn be a positive integer such that the sum of positive divisors of n2+n+1n^2 + n + 1 is divisible by 3. Prove that it is possible to partition the set of positive divisors of n2+n+1n^2 + n + 1 into three sets such that the product of all elements in each set is the same.

Middle European Mathematical Olympiad 2025 Problem T-8

Determine whether the following statement is true for every polynomial PP of degree at least 2 with nonnegative integer coefficients:

There exists a positive integer mm such that for infinitely many positive integers nn the number Pn(m)P^n(m) has more than nn distinct positive divisors.

Remark. Here PnP^n denotes PP applied nn times, this means Pn(x)=P(P(P(x)))n timesP^n(x) = \underbrace{P(P(\ldots P(x)\ldots))}_{n \text{ times}}.

2024

Middle European Mathematical Olympiad 2024 Problem I-1

Determine all kN0k \in \mathbb{N}_0 for which there exists a function f ⁣:N0N0f \colon \mathbb{N}_0 \to \mathbb{N}_0 such that f(2024)=kf(2024) = k and

f(f(n))f(n+1)f(n)f(f(n)) \leq f(n + 1) - f(n)

for all nN0n \in \mathbb{N}_0.

Remark. Here N0\mathbb{N}_0 denotes the set of nonnegative integers.

Middle European Mathematical Olympiad 2024 Problem I-2

There is a sheet of paper (like this one) on an infinite blackboard. Marvin secretly chooses a convex 2024-gon PP that lies fully on the piece of paper. Tigerin wants to find the vertices of PP. In each step, Tigerin can draw a line gg on the blackboard that is fully outside the piece of paper, then Marvin replies with the line hh parallel to gg that is the closest to gg which passes through at least one vertex of PP. Prove that there exists a positive integer nn such that Tigerin can always determine the vertices of PP in at most nn steps.

Middle European Mathematical Olympiad 2024 Problem I-3

Let ABCABC be an acute scalene triangle. Choose a circle ω\omega passing through BB and CC which intersects segments ABAB and ACAC again in points DAD \neq A and EAE \neq A, respectively. Let FF be the intersection of BEBE and CDCD. Let GG be the point on the circumcircle of ABFABF such that GBGB is tangent to ω\omega. Similarly, let HH be the point on the circumcircle of ACFACF such that HCHC is tangent to ω\omega. Prove that there exists a point TAT \neq A, independent of the choice of ω\omega, such that the circumcircle of AGHAGH passes through TT.

Middle European Mathematical Olympiad 2024 Problem T-1

Consider the two infinite sequences a0,a1,a2,a_0, a_1, a_2, \ldots and b0,b1,b2,b_0, b_1, b_2, \ldots of real numbers such that a0=0a_0 = 0, b0=0b_0 = 0 and ak+1=bk,bk+1=akbk+ak+1bk+1a_{k+1} = b_k, \qquad b_{k+1} = \frac{a_k b_k + a_k + 1}{b_k + 1} for each integer k0k \geq 0. Prove that a2024+b202488a_{2024} + b_{2024} \geq 88.

Middle European Mathematical Olympiad 2024 Problem T-3

There are 2024 mathematicians sitting in a row next to the river Tisza. Each of them is working on exactly one research topic, and if two mathematicians are working on the same topic, everyone sitting between them is also working on it.

Marvin is trying to figure out for each pair of mathematicians whether they are working on the same topic. He is allowed to ask each mathematician the following question: "How many of these 2024 mathematicians are working on your topic?" He asks the questions one by one, so he knows all previous answers before he asks the next one.

Determine the smallest positive integer kk such that Marvin can always accomplish his goal with at most kk questions.

Middle European Mathematical Olympiad 2024 Problem T-4

A finite sequence x1,x2,,xrx_1, x_2, \ldots, x_r of positive integers is a palindrome if xi=xr+1ix_i = x_{r+1-i} for all integers 1ir1 \leq i \leq r.

Let a1,a2,a_1, a_2, \ldots be an infinite sequence of positive integers. For a positive integer j2j \geq 2, denote by a[j]a[j] the finite subsequence a1,a2,,aj1a_1, a_2, \ldots, a_{j-1}. Suppose that there exists a strictly increasing infinite sequence b1,b2,b_1, b_2, \ldots of positive integers such that for every positive integer nn, the subsequence a[bn]a[b_n] is a palindrome and bn+2bn+1+bnb_{n+2} \leq b_{n+1} + b_n. Prove that there exists a positive integer TT such that ai=ai+Ta_i = a_{i+T} for every positive integer ii.

Middle European Mathematical Olympiad 2024 Problem T-5

Let ABCABC be a triangle with BAC=60°\angle BAC = 60°. Let DD be a point on the line ACAC such that AB=ADAB = AD and AA lies between CC and DD. Suppose that there are two points EFE \neq F on the circumcircle of the triangle DBCDBC such that AE=AF=BCAE = AF = BC. Prove that the line EFEF passes through the circumcenter of ABCABC.

Middle European Mathematical Olympiad 2024 Problem T-6

Let ABCABC be an acute triangle. Let MM be the midpoint of the segment BCBC. Let I,J,KI, J, K be the incenters of triangles ABC,ABM,ACMABC, ABM, ACM, respectively. Let P,QP, Q be points on the lines MK,MJMK, MJ, respectively, such that AJP=ABC\angle AJP = \angle ABC and AKQ=BCA\angle AKQ = \angle BCA. Let RR be the intersection of the lines CPCP and BQBQ. Prove that the lines IRIR and BCBC are perpendicular.

Middle European Mathematical Olympiad 2024 Problem T-7

Define glueing of positive integers as writing their base ten representations one after another and interpreting the result as the base ten representation of a single positive integer.

Find all positive integers kk for which there exists an integer NkN_k with the following property: for all nNkn \geq N_k, we can glue the numbers 1,2,,n1, 2, \ldots, n in some order so that the result is a number divisible by kk.

Remark. The base ten representation of a positive integer never starts with zero.

Example. Glueing 15, 14, 7 in this order makes 15147.

Middle European Mathematical Olympiad 2024 Problem T-8

Let kk be a positive integer and a1,a2,a_1, a_2, \ldots be an infinite sequence of positive integers such that aiai+1kai2a_i a_{i+1} \mid k - a_i^2 for all integers i1i \geq 1. Prove that there exists a positive integer MM such that an=an+1a_n = a_{n+1} for all integers nMn \geq M.

2023

Middle European Mathematical Olympiad 2023 Problem I-1

Let R\mathbb{R} denote the set of all real numbers. For each pair (α,β)(\alpha, \beta) of nonnegative real numbers subject to α+β2\alpha + \beta \geq 2, determine all functions f ⁣:RRf\colon \mathbb{R} \to \mathbb{R} satisfying

f(x)f(y)f(xy)+αx+βyf(x)f(y) \leq f(xy) + \alpha x + \beta y

for all real numbers xx and yy.

Middle European Mathematical Olympiad 2023 Problem I-3

Let ABCABC be a triangle with incenter II. The incircle ω\omega of ABCABC is tangent to the line BCBC at point DD. Denote by EE and FF the points satisfying AIBECFAI \parallel BE \parallel CF and BEI=CFI=90°\angle BEI = \angle CFI = 90°. Lines DEDE and DFDF intersect ω\omega again at points EE' and FF', respectively. Prove that EFAIE'F' \perp AI.

Middle European Mathematical Olympiad 2023 Problem I-4

Let nn and mm be positive integers. We call a set SS of positive integers (n,m)(n, m)-good if it satisfies the following three conditions:

(i) We have mSm \in S.

(ii) For all aSa \in S, all of the positive divisors of aa are elements of SS too.

(iii) For all mutually different numbers a,bSa, b \in S, we have an+bnSa^n + b^n \in S.

Determine all pairs (n,m)(n, m) such that the set of all positive integers is the only (n,m)(n, m)-good set.

Middle European Mathematical Olympiad 2023 Problem T-1

Let Z\mathbb{Z} denote the set of all integers and Z>0\mathbb{Z}_{>0} denote the set of all positive integers.

(a) A function f ⁣:ZZf\colon \mathbb{Z}\to \mathbb{Z} is called Z\mathbb{Z}-good if it satisfies f(a2+b)=f(b2+a)f(a^{2} + b) = f(b^{2} + a) for all a,bZa,b\in \mathbb{Z}. Determine the largest possible number of distinct values that can occur among f(1),f(2),,f(2023)f(1),f(2),\ldots ,f(2023), where ff is a Z\mathbb{Z}-good function.

(b) A function f ⁣:Z>0Z>0f\colon \mathbb{Z}_{>0}\to \mathbb{Z}_{>0} is called Z>0\mathbb{Z}_{>0}-good if it satisfies f(a2+b)=f(b2+a)f(a^{2} + b) = f(b^{2} + a) for all a,bZ>0a,b\in \mathbb{Z}_{>0}. Determine the largest possible number of distinct values that can occur among f(1),f(2),,f(2023)f(1),f(2),\ldots ,f(2023), where ff is a Z>0\mathbb{Z}_{>0}-good function.

Middle European Mathematical Olympiad 2023 Problem T-2

Let a,b,ca, b, c and dd be positive real numbers with abcd=1abcd = 1. Prove that

ab+1a+1+bc+1b+1+cd+1c+1+da+1d+14,\frac {a b + 1}{a + 1} + \frac {b c + 1}{b + 1} + \frac {c d + 1}{c + 1} + \frac {d a + 1}{d + 1} \geq 4,

and determine all quadruples (a,b,c,d)(a,b,c,d) for which equality holds.

Middle European Mathematical Olympiad 2023 Problem T-4

Let c4c \geq 4 be an even integer. In some football league, each team has a home uniform and an away uniform. Every home uniform is coloured in two different colours, and every away uniform is coloured in one colour. A team's away uniform cannot be coloured in one of the colours from the home uniform. There are at most cc distinct colours on all of the uniforms. If two teams have the same two colours on their home uniforms, then they have different colours on their away uniforms.

We say a pair of uniforms is clashing if some colour appears on both of them. Suppose that for every team XX in the league, there is no team YY in the league such that the home uniform of XX is clashing with both uniforms of YY. Determine the maximum possible number of teams in the league.

Middle European Mathematical Olympiad 2023 Problem T-5

We are given a convex quadrilateral ABCDABCD whose angles are not right. Assume there are points P,Q,R,SP, Q, R, S on its sides AB,BC,CD,DAAB, BC, CD, DA, respectively, such that PSBDPS \parallel BD, SQBCSQ \perp BC, PRCDPR \perp CD. Furthermore, assume that the lines PR,SQPR, SQ, and ACAC are concurrent. Prove that the points P,Q,R,SP, Q, R, S are concyclic.

Middle European Mathematical Olympiad 2023 Problem T-6

Let ABCABC be an acute triangle with AB<ACAB < AC. Let JJ be the center of the AA-excircle of ABCABC. Let DD be the projection of JJ on line BCBC. The internal bisectors of angles BDJBDJ and JDCJDC intersect lines BJBJ and JCJC at XX and YY, respectively. Segments XYXY and JDJD intersect at PP. Let QQ be the projection of AA on line BCBC. Prove that the internal angle bisector of QAP\measuredangle QAP is perpendicular to line XYXY.

Remark. The AA-excircle of the triangle ABCABC is the circle outside the triangle which is tangent to the lines ABAB, ACAC, and the line segment BCBC.

Middle European Mathematical Olympiad 2023 Problem T-8

Let AA and BB be positive integers. Consider a sequence of positive integers (xn)n1(x_{n})_{n\geq 1} such that

xn+1=Agcd(xn,xn1)+Bfor every n2.x_{n+1} = A \cdot \gcd(x_{n}, x_{n-1}) + B \quad \text{for every } n \geq 2.

Prove that the sequence attains only finitely many different values.

Remark. We denote by gcd(a,b)\gcd(a, b) the greatest common divisor of positive integers aa and bb.

2022

Middle European Mathematical Olympiad 2022 Problem I-2

Let nn be a positive integer. Anna and Beatrice play a game with a deck of nn cards labelled with the numbers 1,2,,n1, 2, \ldots, n. Initially, the deck is shuffled. The players take turns, starting with Anna. At each turn, if kk denotes the number written on the topmost card, then the player first looks at all the cards and then rearranges the kk topmost cards. If, after rearranging, the topmost card shows the number kk again, then the player has lost and the game ends. Otherwise, the turn of the other player begins. Determine, depending on the initial shuffle, if either player has a winning strategy, and if so, who does.

Middle European Mathematical Olympiad 2022 Problem I-3

Let ABCDABCD be a parallelogram with DAB<90\angle DAB < 90^{\circ}. Let EBE \neq B be the point on the line BCBC such that AE=ABAE = AB and let FDF \neq D be the point on the line CDCD such that AF=ADAF = AD. The circumcircle of the triangle CEFCEF intersects the line AEAE again in PP and the line AFAF again in QQ. Let XX be the reflection of PP over the line DEDE and YY the reflection of QQ over the line BFBF. Prove that A,XA, X and YY lie on the same line.

Middle European Mathematical Olympiad 2022 Problem I-4

Initially, two positive integers aa and bb with aba \neq b are written on a blackboard. At each step, Andrea picks two numbers xx and yy on the blackboard with xyx \neq y and writes the number

gcd(x,y)+lcm(x,y)\gcd(x, y) + \operatorname{lcm}(x, y)

on the blackboard as well. Let nn be a positive integer. Prove that, regardless of the values of aa and bb, Andrea can perform a finite number of steps such that a multiple of nn appears on the blackboard.

Remark. If xx and yy are two positive integers, then gcd(x,y)\gcd(x, y) denotes their greatest common divisor and lcm(x,y)\operatorname{lcm}(x, y) their least common multiple.

Middle European Mathematical Olympiad 2022 Problem T-1

Given a pair (a0,b0)(a_0, b_0) of real numbers, we define two sequences a0,a1,a2,a_0, a_1, a_2, \ldots and b0,b1,b2,b_0, b_1, b_2, \ldots of real numbers by an+1=an+bnandbn+1=anbna_{n+1} = a_n + b_n \quad \text{and} \quad b_{n+1} = a_n \cdot b_n for all n=0,1,2,n = 0, 1, 2, \ldots. Find all pairs (a0,b0)(a_0, b_0) of real numbers such that a2022=a0a_{2022} = a_0 and b2022=b0b_{2022} = b_0.

Middle European Mathematical Olympiad 2022 Problem T-2

Let kk be a positive integer and a1,a2,,aka_1, a_2, \ldots, a_k be nonnegative real numbers. Initially, there is a sequence of nkn \geq k zeros written on a blackboard. At each step, Nicole chooses kk consecutive numbers written on the blackboard and increases the first number by a1a_1, the second one by a2a_2, and so on, until she increases the kk-th one by aka_k. After a positive number of steps, Nicole managed to make all the numbers on the blackboard equal. Prove that all the nonzero numbers among a1,a2,,aka_1, a_2, \ldots, a_k are equal.

Middle European Mathematical Olympiad 2022 Problem T-3

Let nn be a positive integer. There are nn purple and nn white cows queuing in a line in some order. Tim wishes to sort the cows by colour, such that all purple cows are at the front of the line. At each step, he is only allowed to swap two adjacent groups of equally many consecutive cows. What is the minimal number of steps Tim needs to be able to fulfill his wish, regardless of the initial alignment of the cows?

Example. For instance, Tim can perform the following three swaps: WPWPPWWPPPWWPWPPWWPPWWPW.W\underline{PW}\overline{PP}W \longrightarrow \underline{W}\overline{P}PPWW \longrightarrow P\underline{WP}\overline{PW}W \longrightarrow PPWWPW.

Middle European Mathematical Olympiad 2022 Problem T-4

Let nn be a positive integer. We are given a 2n×2n2n \times 2n table. Each cell is coloured with one of 2n22n^2 colours such that each colour is used exactly twice. Jana stands in one of the cells. There is a chocolate bar lying in one of the other cells. Jana wishes to reach the cell with the chocolate bar. At each step, she can only move in one of the following two ways. Either she walks to an adjacent cell or she teleports to the other cell with the same colour as her current cell. (Jana can move to an adjacent cell of the same colour by either walking or teleporting.) Determine whether Jana can fulfill her wish, regardless of the initial configuration, if she has to alternate between the two ways of moving and has to start with a teleportation.

Remark. Two cells are adjacent if they share a common edge.

Middle European Mathematical Olympiad 2022 Problem T-5

Let Ω\Omega be the circumcircle of a triangle ABCABC with CAB=90\angle CAB = 90^{\circ}. The medians through BB and CC meet Ω\Omega again at DD and EE, respectively. The tangent to Ω\Omega at DD intersects the line ACAC at XX and the tangent to Ω\Omega at EE intersects the line ABAB at YY. Prove that the line XYXY is tangent to Ω\Omega.

Middle European Mathematical Olympiad 2022 Problem T-6

Let ABCDABCD be a convex quadrilateral such that AC=BDAC = BD and the sides ABAB and CDCD are not parallel. Let PP be the intersection point of the diagonals ACAC and BDBD. Points EE and FF lie, respectively, on segments BPBP and APAP such that PC=PEPC = PE and PD=PFPD = PF. Prove that the circumcircle of the triangle determined by the lines ABAB, CDCD and EFEF is tangent to the circumcircle of the triangle ABPABP.

Middle European Mathematical Olympiad 2022 Problem T-7

Let N\mathbb{N} denote the set of positive integers. Determine all functions f ⁣:NNf\colon \mathbb{N}\to \mathbb{N} such that f(1)f(2)f(3)f(1)\leq f(2)\leq f(3)\leq \ldots and the numbers f(n)+n+1f(n) + n + 1 and f(f(n))f(n)f(f(n)) - f(n) are both perfect squares for every positive integer nn.

Middle European Mathematical Olympiad 2022 Problem T-8

We call a positive integer cheesy if we can obtain the average of the digits in its decimal representation by putting a decimal separator after the leftmost digit. Prove that there are only finitely many cheesy numbers.

Example. For instance, 2250 is cheesy, as the average of the digits is 2.250.

2021

Middle European Mathematical Olympiad 2021 Problem I-2

Let mm and nn be positive integers. Some squares of an m×nm \times n board are coloured red. A sequence a1,a2,,a2ra_1, a_2, \ldots, a_{2r} of 2r42r \geqslant 4 pairwise distinct red squares is called a bishop circuit if for every k{1,,2r}k \in \{1, \ldots, 2r\}, the squares aka_k and ak+1a_{k+1} lie on a diagonal, but the squares aka_k and ak+2a_{k+2} do not lie on a diagonal (here a2r+1=a1a_{2r+1} = a_1 and a2r+2=a2a_{2r+2} = a_2).

In terms of mm and nn, determine the maximum possible number of red squares on an m×nm \times n board without a bishop circuit.

(Remark. Two squares lie on a diagonal if the line passing through their centres intersects the sides of the board at an angle of 45°45°.)

Middle European Mathematical Olympiad 2021 Problem I-3

Let ABCABC be an acute triangle and DD an interior point of segment BCBC. Points EE and FF lie in the half-plane determined by the line BCBC containing AA such that DEDE is perpendicular to BEBE and DEDE is tangent to the circumcircle of ACDACD, while DFDF is perpendicular to CFCF and DFDF is tangent to the circumcircle of ABDABD. Prove that the points AA, DD, EE and FF are concyclic.

Middle European Mathematical Olympiad 2021 Problem I-4

Let n3n \geqslant 3 be an integer. Zagi the squirrel sits at a vertex of a regular nn-gon. Zagi plans to make a journey of n1n - 1 jumps such that in the ii-th jump, it jumps by ii edges clockwise, for i{1,,n1}i \in \{1, \ldots, n - 1\}. Prove that if after n2\lceil \frac{n}{2} \rceil jumps Zagi has visited n2+1\lceil \frac{n}{2} \rceil + 1 distinct vertices, then after n1n - 1 jumps Zagi will have visited all of the vertices.

(Remark. For a real number xx, we denote by x\lceil x \rceil the smallest integer larger or equal to xx.)