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 3 of 3: Count one zero-sum set per orbit
In plain words

Since pp is prime and rr is nonzero modulo pp, the pp sums are all residues.

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

The successive total sums differ by r≢0(modp)r\not\equiv0\pmod p, so they are all residues modulo pp. Exactly one member of every orbit has total sum divisible by pp. The nonexceptional contribution is therefore (2pp)−2p\frac{\binom{2p}{p}-2}{p}; adding the two excluded subsets gives 2+(2pp)−2p2+\frac{\binom{2p}{p}-2}{p}.