Solution given by prove it(MHF contributor):
We know the following:

.
So
Try dividing

by

.

.
Clearly

can not be divided by

exactly, and you have already established that

and

are not divisible by

, so

can not be divided by

.
The problem of the question lies HERE. It is true that
and
are not divisible by 
------------------------------------------------------------------------------------------------
But you can not say that the difference between
and
is not divisible by p.
The above argument given by me can be more clear from the following
example-
7 is not divisible by 3 and 4 is also not divisible by 3
But their difference which is equal to 3 is divisible by 3.