MathLabs

Problem 6

Let pp be an odd prime number. How many pp-element subsets AA of {1,2,…,2p}\{1,2,\ldots,2p\} are there, the sum of whose elements is divisible by pp?
Step 1 of 3: Remove the two exceptional subsets
In plain words

The all-first and all-second blocks are already solutions and have fixed orbits.

(2pp)−2\binom{2p}{p}-2
Detailed analysis

There are (2pp)\binom{2p}{p} total pp-element subsets. Exclude {1,…,p}\{1,\ldots,p\} and {p+1,…,2p}\{p+1,\ldots,2p\}; each has sum divisible by pp. Every remaining subset has rr elements in the first block with 0<r<p0<r<p.