Processing math: 100%

Tuesday, April 19, 2016

A number theory problem

Today I came across the following number theory problem:

Prove that if xp+yp0(mod p), and p is a prime number larger than 2, then xp+yp0(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+ypx+y0(mod p)

Consider the following identity, where a,b are integers, and n is any natural number:

anbn=(ab)(n1i=0aib(n1)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)(p1i=0xi(y)(p1)i)=(x+y)(p1i=0xiy(p1)i(1)i)

Where xp(y)p=xp+yp and p1i=0xi(y)(p1)i=p1i=0xiy(p1)i(1)i because p>2, so p is an odd positive integer.

Now we note that since xy(mod p) by Fermat's little theorem,

p1i=0xiy(p1)i(1)ip1i=0(y)iy(p1)i(1)i=p1i=0(y)p1=pyp1(mod p)

and pyp10(mod p)

Thus we have shown that p appears as a factor of xp+yp twice, and thus xp+yp0(mod p2)