Let \( a_1 \) be an integer greater than or equal to 2. Consider the sequence such that its first term is \( a_1 \), and for \( a_n \), the \( n \)-th term of the sequence, we have \[ a_{n+1} = \frac{a_n}{p_k^{e_k - 1}} + 1, \]where \( p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k} \) is the prime factorization of \( a_n \), with \( 1 < p_1 < p_2 < \cdots < p_k \), and \( e_1, e_2, \dots, e_k \) positive integers. For example, if \( a_1 = 2024 = 2^3 \cdot 11 \cdot 23 \), the next two terms of the sequence are \[ a_2 = \frac{a_1}{2^{3-1}} + 1 = \frac{2024}{4} + 1 = 2025 = 3^4 \cdot 5^2; \]\[ a_3 = \frac{a_2}{5^{2-1}} + 1 = \frac{2025}{5} + 1 = 406. \] Determine for which values of \( a_1 \) the sequence is eventually periodic and what all the possible periods are. Note: Let \( p \) be a positive integer. A sequence \( x_1, x_2, \dots \) is eventually periodic with period \( p \) if \( p \) is the smallest positive integer such that there exists an \( N \geq 0 \) satisfying \( x_{n+p} = x_n \) for all \( n > N \).
2024 Brazil National Olympiad
Level 3
Day 1
A partition of a set \( A \) is a family of non-empty subsets of \( A \), such that any two distinct subsets in the family are disjoint, and the union of all subsets equals \( A \). We say that a partition of a set of integers \( B \) is separated if each subset in the partition does not contain consecutive integers. Prove that, for every positive integer \( n \), the number of partitions of the set \( \{1, 2, \dots, n\} \) is equal to the number of separated partitions of the set \( \{1, 2, \dots, n+1\} \). For example, \( \{\{1,3\}, \{2\}\} \) is a separated partition of the set \( \{1,2,3\} \). On the other hand, \( \{\{1,2\}, \{3\}\} \) is a partition of the same set, but it is not separated since \( \{1,2\} \) contains consecutive integers.
Let \( n \geq 3 \) be a positive integer. In a convex polygon with \( n \) sides, all the internal bisectors of its \( n \) internal angles are drawn. Determine, as a function of \( n \), the smallest possible number of distinct lines determined by these bisectors.
Day 2
Let \( ABC \) be an acute-angled scalene triangle. Let \( D \) be a point on the interior of segment \( BC \), different from the foot of the altitude from \( A \). The tangents from \( A \) and \( B \) to the circumcircle of triangle \( ABD \) meet at \( O_1 \), and the tangents from \( A \) and \( C \) to the circumcircle of triangle \( ACD \) meet at \( O_2 \). Show that the circle centered at \( O_1 \) passing through \( A \), the circle centered at \( O_2 \) passing through \( A \), and the line \( BC \) have a common point.
Let \( \mathbb{R} \) be the set of real numbers. Determine all functions \( f: \mathbb{R} \to \mathbb{R} \) such that, for any real numbers \( x \) and \( y \), \[ f(x^2 y - y) = f(x)^2 f(y) + f(x)^2 - 1. \]
Let \( n > 1 \) be a positive integer. List in increasing order all the irreducible fractions in the interval \([0, 1]\) that have a positive denominator less than or equal to \( n \): \[ \frac{0}{1} = \frac{p_0}{q_0} < \frac{p_1}{q_1} < \cdots < \frac{p_M}{q_M} = \frac{1}{1}. \] Determine, in function of \( n \), the smallest possible value of \( q_{i-1} + q_i + q_{i+1} \), for \( 0 < i < M \). For example, if \( n = 4 \), the enumeration is \[ \frac{0}{1} < \frac{1}{4} < \frac{1}{3} < \frac{1}{2} < \frac{2}{3} < \frac{3}{4} < \frac{1}{1}, \]where \( p_0 = 0, p_1 = 1, p_2 = 1, p_3 = 1, p_4 = 2, p_5 = 3, p_6 = 1, q_0 = 1, q_1 = 4, q_2 = 3, q_3 = 2, q_4 = 3, q_5 = 4, q_6 = 1 \), and the minimum is \( 1 + 4 + 3 = 3 + 2 + 3 = 3 + 4 + 1 = 8 \).
Level 2 (Junior)
Day 1
Consider a sequence whose first term is a given positive integer \( N > 1 \). Consider the prime factorization of \( N \). If \( N \) is a power of 2, the sequence consists of a single term: \( N \). Otherwise, the second term of the sequence is obtained by replacing the largest prime factor \( p \) of \( N \) with \( p + 1 \) in the prime factorization. If the new number is not a power of 2, we repeat the same procedure with it, remembering to factor it again into primes. If it is a power of 2, the numerical sequence ends. And so on. For example, if the first term of the sequence is \( N = 300 = 2^2 \cdot 3 \cdot 5^2 \), since its largest prime factor is \( p = 5 \), the second term is \( 2^2 \cdot 3 \cdot (5 + 1)^2 = 2^4 \cdot 3^3 \). Repeating the procedure, the largest prime factor of the second term is \( p = 3 \), so the third term is \( 2^4 \cdot (3 + 1)^3 = 2^{10} \). Since we obtained a power of 2, the sequence has 3 terms: \( 2^2 \cdot 3 \cdot 5^2 \), \( 2^4 \cdot 3^3 \), and \( 2^{10} \). a) How many terms does the sequence have if the first term is \( N = 2 \cdot 3 \cdot 5 \cdot 7 \cdot 11 \cdot 13 \cdot 17 \cdot 19 \cdot 23 \)? b) Show that if a prime factor \( p \) leaves a remainder of 1 when divided by 3, then \( \frac{p+1}{2} \) is an integer that also leaves a remainder of 1 when divided by 3. c) Present an initial term \( N \) less than 1,000,000 (one million) such that the sequence starting from \( N \) has exactly 11 terms.
Let \( ABC \) be a scalene triangle. Let \( E \) and \( F \) be the midpoints of sides \( AC \) and \( AB \), respectively, and let \( D \) be any point on segment \( BC \). The circumcircles of triangles \( BDF \) and \( CDE \) intersect line \( EF \) at points \( K \neq F \), and \( L \neq E \), respectively, and intersect at points \( X \neq D \). The point \( Y \) is on line \( DX \) such that \( AY \) is parallel to \( BC \). Prove that points \( K \), \( L \), \( X \), and \( Y \) lie on the same circle.
The numbers from $1$ to $100$ are placed without repetition in each cell of a \(10 \times 10\) board. An increasing path of length \(k\) on this board is a sequence of cells \(c_1, c_2, \ldots, c_k\) such that, for each \(i = 2, 3, \ldots, k\), the following properties are satisfied: • The cells \(c_i\) and \(c_{i-1}\) share a side or a vertex; • The number in \(c_i\) is greater than the number in \(c_{i-1}\). What is the largest positive integer \(k\) for which we can always find an increasing path of length \(k\), regardless of how the numbers from 1 to 100 are arranged on the board?
Day 2
A number is called trilegal if its digits belong to the set \(\{1, 2, 3\}\) and if it is divisible by \(99\). How many trilegal numbers with \(10\) digits are there?
Esmeralda chooses two distinct positive integers \(a\) and \(b\), with \(b > a\), and writes the equation \[ x^2 - ax + b = 0 \] on the board. If the equation has distinct positive integer roots \(c\) and \(d\), with \(d > c\), she writes the equation \[ x^2 - cx + d = 0 \] on the board. She repeats the procedure as long as she obtains distinct positive integer roots. If she writes an equation for which this does not occur, she stops. a) Show that Esmeralda can choose \(a\) and \(b\) such that she will write exactly 2024 equations on the board. b) What is the maximum number of equations she can write knowing that one of the initially chosen numbers is 2024?
Let \(ABC\) be an isosceles triangle with \(AB = BC\). Let \(D\) be a point on segment \(AB\), \(E\) be a point on segment \(BC\), and \(P\) be a point on segment \(DE\) such that \(AD = DP\) and \(CE = PE\). Let \(M\) be the midpoint of \(DE\). The line parallel to \(AB\) through \(M\) intersects \(AC\) at \(X\) and the line parallel to \(BC\) through \(M\) intersects \(AC\) at \(Y\). The lines \(DX\) and \(EY\) intersect at \(F\). Prove that \(FP\) is perpendicular to \(DE\).