Problem

Source:

Tags: number theory



Joana divided $365$ by all integers from $1$ to $365$ and added all the remainders. Then she divided $366$ by all the integers from $1$ to $366$ and also added all the remainders. Which of the two sums is greater and what is the difference between them?