If $p$ is a prime, which integers $n$ is it possible to split the set consisting of $\{1,2,...,n\}$ into $p$ disjoint (meaning they have no element in common) subsets where the sum of the integers in each subset has the exact same value?
2026-04-07 12:27:00.1775564820
Disjoint subset/prime question
197 Views Asked by user137151 https://math.techqa.club/user/user137151/detail At
1
I'll leave $p=2$ as an exercise: all $n\equiv3,0\pmod4$ work. From now on assume $p$ is odd. Partial answer/conjecture below:
The sum of all the integers from $1$ to $n$ is $n(n+1)/2$. So we need $p$ to divide $n(n+1)/2$, which means $$ n\equiv-1\pmod p \qquad\text{or}\qquad n\equiv0\pmod p.\tag{$*$} $$But we also need $n(n+1)/2p \ge n$, or else the single element $n$ is already larger than the required common sum. This simplifies to $$n+1\ge 2p;\tag{$**$}$$ in other words, $n=p-1$ and $n=p$ are impossible.
Observation: if $n$ works for $p$, then so does $n+2p$, because the additional integers can be inserted into the existing sets in pairs $\{n+1,n+2p\},\{n+2,n+2p-1\},\dots,\{n+p,n+p+1\}$ while preserving the equal sums property. Therefore, if we want to show that the two conditions ($*$) and ($**$) are sufficient, it suffices to show that $n=2p-1,2p,3p-1,3p$ work for $p$.