Prove that if xp+yp≡0(mod p), and p is a prime number larger than 2, then xp+yp≡0(mod p2).
The problem seemed innocuous enough at first glance, but proved to be quite challenging for me, as I could only solve the problem through arguably tedious means.
In any case, I thought I'd present my solution here; also for anyone who has stumbled onto this blog and has another solution, please don't hesitate to provide a sketch or full solution in the comments!
Solution -
By Fermat's little theorem, note that xp+yp≡x+y≡0(mod p)
Consider the following identity, where a,b are integers, and n is any natural number:
an−bn=(a−b)(n−1∑i=0aib(n−1)−i)
Lets attempt to use the above identity with a=x,b=−y and n=p.
Thus, we have:
xp−(−y)p=xp+yp=(x+y)(p−1∑i=0xi(−y)(p−1)−i)=(x+y)(p−1∑i=0xiy(p−1)−i(−1)i)
Where xp−(−y)p=xp+yp and p−1∑i=0xi(−y)(p−1)−i=p−1∑i=0xiy(p−1)−i(−1)i because p>2, so p is an odd positive integer.
Now we note that since x≡−y(mod p) by Fermat's little theorem,
p−1∑i=0xiy(p−1)−i(−1)i≡p−1∑i=0(−y)iy(p−1)−i(−1)i=p−1∑i=0(y)p−1=pyp−1(mod p)
and pyp−1≡0(mod p)
Thus we have shown that p appears as a factor of xp+yp twice, and thus xp+yp≡0(mod p2)