Maths Olympiad Prep

Library / /253 of 520

Number theory Difficulty 5.5 AIME, harder Prove it

4. Let pp be an odd prime. Prove that
1p2+2p2+3p2++(p12)p2=22pp(modp) 1^{p-2}+2^{p-2}+3^{p-2}+\cdots+\left(\frac{p-1}{2}\right)^{p-2}=\frac{2-2^{p}}{p} \quad(\bmod p)

Solution

4. First, for each i=1,2,,p12i=1,2, \cdots, \frac{p-1}{2},
2ip(p2i)=(p1)(p2)(p(2i1))(2i1)!(1)(2)((2i1))(2i1)!1(modp) \frac{2 i}{p}\binom{p}{2 i}=\frac{(p-1)(p-2) \cdots(p-(2 i-1))}{(2 i-1)!} \equiv \frac{(-1)(-2) \cdots(-(2 i-1))}{(2 i-1)!} \equiv-1 \quad(\bmod p) \text {. }

Hence
i=1(p1)/2ip2i=1(p1)/2ip22ip(p2i)2pi=1(p1)/2ip1(p2i)2pi=1(p1)/2(p2i)(modp) (by Fermat’s Little Theorem.)  \begin{aligned} \sum_{i=1}^{(p-1) / 2} i^{p-2} & \equiv-\sum_{i=1}^{(p-1) / 2} i^{p-2} \frac{2 i}{p}\binom{p}{2 i} \equiv-\frac{2}{p} \sum_{i=1}^{(p-1) / 2} i^{p-1}\binom{p}{2 i} \\ & \equiv-\frac{2}{p} \sum_{i=1}^{(p-1) / 2}\binom{p}{2 i} \quad(\bmod p) \quad \text { (by Fermat's Little Theorem.) } \end{aligned}

The last summation counts the even-sized nonempty subsets of a pp-element set, of which there are 2p112^{p-1}-1.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.