Solve when
FI-MO 2019
Finnish national mathematics olympiad 2019.
Other problems
Prove that the number is not prime.
Let be a cyclic quadrilateral whose side is at the same time the diameter of the circle. The lines and intersect at point and the extensions of lines and intersect at point . Segment intersects the circle at and the extension of segment intersects at . Show that if is the midpoint of , then is the midpoint of .
Define a sequence when is a positive integer. Define all those positive integer , for which this sequence of numbers is eventually periodic modulo , e.g. there are such positive integers and such that ( ), where is an integer with .
A teacher is known to have apples for some . He ets one of the apples and distributes the rest of the apples to his students and . The students do not see how many apples the other gets, and they do not know the number . However, they have pre-selected a discreet way to reveal one another something about the number of apples: each of the students scratches their head either by their right, left or both hands, depending on the number of apples they have received. To the teacher's surprise, the students will always know which one of the students got more apples, or that the teacher ate the only apple by herself. How is this possible?