Joana divided by all integers from to and added all the remainders. Then she divided by all the integers from to and also added all the remainders. Which of the two sums is greater and what is the difference between them?
OPM 2021
Portuguese Mathematical Olympiad 2021.
The official paper in 1 language
Other problems
Let be a triangle such that . Let be a point in and a point in such that . Shows that .

All sequences of elements are considered, where each belongs to the set . What is the sum of the smallest elements of all these sequences?