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 2 of 3: Form cyclic orbits
In plain words

Shifting every selected first-block element preserves its cardinality and cycles after pp shifts.

T↦T+1(modp)T\mapsto T+1\pmod p
Detailed analysis

Fix the intersection with {p+1,…,2p}\{p+1,\ldots,2p\} and shift the rr selected elements of {1,…,p}\{1,\ldots,p\} by T↦T+1(modp)T\mapsto T+1\pmod p. Because 0<r<p0<r<p, no nonzero shift fixes TT, so each orbit has exactly pp distinct subsets. Each shift increases the first-block sum by rr modulo pp.