The numbers a and b are integers and the number p≥3 is prime. Suppose that a+b and a2+b2 are divisible by p. Show that a2+b2 is divisible by p2.