I suppose that $p-1$ is even number and that $p+1$ is divisible by 3 or vica versa. My first problem is that I needed to prove that $p^2 -q^2$ is always divisible by 24 for $p,q$ being prime numbers bigger than 3.
What I did was wrote $p^2 -q^2=(p-q)(p+q)$ ,given that $p$ and $q$ are prime numbers,they are not divisible by 2 .So I can write them as $2k +1$ ,$2m+1$).When I replace $p$ and $q$ into equation above I get $4(k-m)(k+m+1)$,which means that this polynomial is divisible by $4$. I just need to make sure that it is divisible by $6$ as well.Doing all $5k+1,2,3,4,5$ would be too long and I would need to check 25 cases.
So I wrote $p^2 - q^2=p^2 -1 - (q^2+1)=(p-1)(p+1) - (q-1)(q+1)$ If $p=2k+1 ,q=2m+1$ then polynomial is divisible by $4$.For testing with 3 I get that it is also divisible by 3.The most I can get is that it is divisible by 12,but how do I prove that it is divisible by 24,what am I missing?