OPM 2025 Problem 3
- Final day 1
A computer science teacher has asked his students to write a program that, given a list of numbers , calculates the list where is the number of times the number appears in the list. So, for example, for the list , the program returns the list .
Next, the teacher asked Alexandre to run the program for a list of numbers. Then he asked him to apply the program to the resulting list, and so on, until a number greater than or equal to appears in the list. Find the largest value of for which, whatever the initial list of positive integers , it is possible for Alexander to do what the teacher asked him to do.
Dataset text AI-MO AoPS. Quoted with source.
Official text: Portuguese Mathematical Olympiad 2025 official paper, page 1.
Solutions
No solution is on olymmath yet. Official and human solutions come first when they arrive. AI solutions come after them, with a label.
Similar problems
These problems have the most words in common with this statement.