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

The Bank of Oslo issues two types of coin: aluminium (denoted AA) and bronze (denoted BB). Marianne has nn aluminium coins and nn bronze coins, arranged in a row in some arbitrary initial order. A chain is any subsequence of consecutive coins of the same type. Given a fixed positive integer k2nk \leq 2n, Marianne repeatedly performs the following operation: she identifies the longest chain containing the kthk^{\text{th}} coin from the left, and moves all coins in that chain to the left end of the row. For example, if n=4n = 4 and k=4k = 4, the process starting from the ordering AABBBABAAABBBABA would be

AABBBABABBBAAABAAAABBBBABBBBAAAABBBBAAAA.AAB\underline{B}BABA \rightarrow BBB\underline{A}AABA \rightarrow AAA\underline{B}BBBA \rightarrow BBB\underline{B}AAAA \rightarrow BBB\underline{B}AAAA \rightarrow \cdots.

Find all pairs (n,k)(n,k) with 1k2n1 \leq k \leq 2n such that for every initial ordering, at some moment during the process, the leftmost nn coins will all be of the same type.

International Mathematical Olympiad 2022 Problem 3

Let kk be a positive integer and let SS be a finite set of odd prime numbers. Prove that there is at most one way (up to rotation and reflection) to place the elements of SS around a circle such that the product of any two neighbours is of the form x2+x+kx^2 + x + k for some positive integer xx.

International Mathematical Olympiad 2022 Problem 4

Let ABCDEABCDE be a convex pentagon such that BC=DEBC = DE. Assume that there is a point TT inside ABCDEABCDE with TB=TDTB = TD, TC=TETC = TE and ABT=TEA\angle ABT = \angle TEA. Let line ABAB intersect lines CDCD and CTCT at points PP and QQ, respectively. Assume that the points P,B,A,QP, B, A, Q occur on their line in that order. Let line AEAE intersect lines CDCD and DTDT at points RR and SS, respectively. Assume that the points R,E,A,SR, E, A, S occur on their line in that order. Prove that the points P,S,Q,RP, S, Q, R lie on a circle.

International Mathematical Olympiad 2022 Problem 6

Let nn be a positive integer. A Nordic square is an n×nn \times n board containing all the integers from 1 to n2n^2 so that each cell contains exactly one number. Two different cells are considered adjacent if they share a common side. Every cell that is adjacent only to cells containing larger numbers is called a valley. An uphill path is a sequence of one or more cells such that:

(i) the first cell in the sequence is a valley,

(ii) each subsequent cell in the sequence is adjacent to the previous cell, and

(iii) the numbers written in the cells in the sequence are in increasing order.

Find, as a function of nn, the smallest possible total number of uphill paths in a Nordic square.

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.