Problem

Source: VII Centroamerican and Caribbean Olympiad 2005, Problem 6

Tags: modular arithmetic, induction, number theory proposed, number theory



Let $n$ be a positive integer and $p$ a fixed prime. We have a deck of $n$ cards, numbered $1,\ 2,\ldots,\ n$ and $p$ boxes for put the cards on them. Determine all posible integers $n$ for which is possible to distribute the cards in the boxes in such a way the sum of the numbers of the cards in each box is the same.