Skip to main content
OlympiadHQ

Browse · MathNet

Print

Estonian Mathematical Olympiad

Estonia counting and probability

Problem

Today, on September 23, 2023, twins Mari and Jüri received a total of candies for their th birthdays. Starting from this day, their mother allows them both to take candies once per day, such that the amount of candies taken by any child on any day is less than their age in full years (on their birthday, they already use their new age). Neither child can resist taking at least one candy every day. Jüri allows Mari to take candies first on every day. The children agreed that whoever takes the last candy, has to buy new candies. Which child can ensure that they do not have to buy new candies, no matter how the other child takes their candies?
Solution
We will show that Mari can avoid taking the last candy. To achieve this, she will take candies today, and on every following day, she will take candies so that along with Jüri's candies from the previous day, the total is the age of the children on the previous day. Since is a leap year, they will be years old for days; thus on the th birthday of the children, there will be candies remaining. After more days, there will be candy remaining after Mari has taken her candies for the day. Thus Jüri has no choice but to take the last candy.
Final answer
Mari

Techniques

Games / greedy algorithmsInvariants / monovariants