A total of 2,879 votes have been distributed among the seven candidates in a one-party primary election. It is known that none of the candidates has obtained the same number of votes as another and that if the number of votes obtained by any of the candidates is divided by the number of votes obtained by any other candidate who has obtained fewer votes, the result is always a whole number. How many votes has each candidate obtained?
I was thinking of solving it by means of congruences and the Chinese Theorem of the Rest, but I don't know very well how to solve this riddle, which has been proposed to me by an acquaintance.