Maths Olympiad Prep

Library / /361 of 520

Number theory Difficulty 6.4 National olympiad Prove it

Theorem 3 We have
(2p)=(1)(p21)/8\left(\frac{2}{p}\right)=(-1)^{\left(p^{2}-1\right) / 8} \text {. }

Solution

Prove: Using the notation in Lemma 2, take d=2d=2. It is easy to see that,
1tj=2j<p/2,1j<p/4p/2<tj=2j<p,p/4<j<p/2\begin{array}{c} 1 \leqslant t_{j}=2 j<p / 2, \quad 1 \leqslant j<p / 4 \\ p / 2<t_{j}=2 j<p, \quad p / 4<j<p / 2 \end{array}

From the second equation, we know
n=p12[p4]n=\frac{p-1}{2}-\left[\frac{p}{4}\right]

Therefore, we have
n={l,p=4l+1l+1,p=4l+3n=\left\{\begin{array}{ll} l, & p=4 l+1 \\ l+1, & p=4 l+3 \end{array}\right.

From this and Lemma 2, we get
(2p)=(1)n={1,p±1(mod8)1,p±3(mod8)\left(\frac{2}{p}\right)=(-1)^{n}=\left\{\begin{array}{ll} 1, & p \equiv \pm 1(\bmod 8) \\ -1, & p \equiv \pm 3(\bmod 8) \end{array}\right.

This is the conclusion we want to prove. Equation (3) shows that 2 is a quadratic residue modulo pp if and only if the prime p±1(mod8)p \equiv \pm 1(\bmod 8).

The significance of Lemma 2 lies in its linking whether dd is a quadratic residue modulo pp to the parity of the number nn, where nn is the number of djd_{j} (1j(p1)/2)(1 \leqslant j \leqslant(p-1) / 2), the smallest positive residues modulo pp of the numbers 1,2,,(p1)/21,2, \cdots,(p-1) / 2 multiplied by dd, that do not lie in 1,2,,(p1)/21,2, \cdots,(p-1) / 2. However, the properties of nn itself are not well understood, nor is there an explicit formula for it. For this reason, further analysis of Lemma 2 and its proof is required. Using the notation of the integer part [x][x], equation (1) can be expressed as
jd=p[jdp]+tj,1j<p/2j d=p\left[\frac{j d}{p}\right]+t_{j}, \quad 1 \leqslant j<p / 2

Summing both sides over jj gives
dj=1(p1)/2j=pj=1(p1)/2[jdp]+j=1(p1)/2tj=pT+j=1(p1)/2tjd \sum_{j=1}^{(p-1) / 2} j=p \sum_{j=1}^{(p-1) / 2}\left[\frac{j d}{p}\right]+\sum_{j=1}^{(p-1) / 2} t_{j}=p T+\sum_{j=1}^{(p-1) / 2} t_{j}

Here, T=j=1(p1)/2[jdp]T=\sum_{j=1}^{(p-1) / 2}\left[\frac{j d}{p}\right]. From the proof of Lemma 2, we know
j=1(p1)/2tj=s1++sk+r1++rn=s1++sk+(pr1)++(prn)np+2(r1++rn)=j=1(p1)/2jnp+2(r1++rn)\begin{aligned} \sum_{j=1}^{(p-1) / 2} t_{j}= & s_{1}+\cdots+s_{k}+r_{1}+\cdots+r_{n} \\ = & s_{1}+\cdots+s_{k}+\left(p-r_{1}\right)+\cdots+\left(p-r_{n}\right)-n p \\ & +2\left(r_{1}+\cdots+r_{n}\right) \\ = & \sum_{j=1}^{(p-1) / 2} j-n p+2\left(r_{1}+\cdots+r_{n}\right) \end{aligned}

From the above two equations, we get
- p218(d1)=p(Tn)+2(r1++rn)\quad \frac{p^{2}-1}{8}(d-1)=p(T-n)+2\left(r_{1}+\cdots+r_{n}\right).

When d=2d=2, it is clear that T=0T=0, and n(p21)/8(mod2)n \equiv\left(p^{2}-1\right) / 8(\bmod 2), from which and Lemma 2, we again derive Theorem 3. When (d,2p)=1(d, 2 p)=1, we have
Tn(mod2)T \equiv n(\bmod 2)

Thus, we obtain an explicit expression for nn. From this and Lemma 2, the proof is completed.

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.