Bài bạn sai ngay ở chỗ [tex](x+i)^2\equiv x+1(modp)[/tex] nhé bạn.
Lời giải của mình:
Ta có: [tex](x+1)^2+(x+2)^2+...+(x+p)^2=px^2+2x(1+2+...+p)+1^2+2^2+...+p^2=px^2+2x.\frac{p(p+1)}{2}+\frac{p(p+1)(2p+1)}{6}[/tex]
Vì p là số nguyên tố nên [tex]p+1\vdots 2\Rightarrow \frac{p(p+1)}{2}=p.\frac{p+1}{2}\vdots p[/tex]
Lại có: [tex]\frac{p(p+1)(2p+1)}{6}\in \mathbb{N}[/tex]
Mà [tex](p,2)=1;(p,3)=1\Rightarrow \frac{(p+1)(2p+1)}{6}\in \mathbb{N}\Rightarrow \frac{p(p+1)(2p+1)}{6}=p.\frac{(p+1)(2p+1)}{6}\vdots p[/tex]
Từ đó ta có đpcm.
******Thứ nhất chỗ: [tex]2x\times \frac{p(p+1)}{2}[/tex]
Tại sao không rút cái hệ số "2" cho mẫu luôn ạ?
******Thứ hai: [tex]\frac{p(p+1)(2p+1)}{6}[/tex]
Tại sao anh không phân tích: [tex]=\frac{p(2p^2+3p+1)}{6}[/tex]
+, Do [tex]p+1\vdots 2\rightarrow 3p+1\vdots 2\rightarrow 2p^2+3p+1\vdots 2[/tex]
+, Do [tex]p^2-1\vdots 3\rightarrow 2p^2-2\vdots 3\rightarrow 2p^2-2+3\vdots 3\rightarrow 2p^2+1\vdots 3\rightarrow 2p^2+3p+1\vdots 3[/tex]
-> Làm như vậy em nghĩ sẽ dễ hiểu hơn!