The source of the question is from 2019 UKMT Senior Maths Challenge, Further Investigation 1.6 :
"If $p,q$ are primes, and $p>q>5$, prove that $240\vert p^4 - q^4$"
I am struggling with the question , as I’m not too sure on the proof for this statement.
My attempts :
I do know that for when $p>q>2$, you can express the primes as $2x + 1$, where $x$ is a positive integer.
I also know that when $p>q>3$, you can express the primes as $6x\pm1$. However I’m unaware of a similar general formula for $p>q>5$ which is the reason I can not complete my work.
$(p^4 - q^4) \implies (p+q)(p-q)(p^2+q^2)$,
Consider the case, where $p>q>2$
All numbers $p$ and $q$, can be expressed in the form 2n + 1.
$(p^2 + q^2) \pmod 2 \implies 0\pmod2$, $2\vert(p^2+q^2)$
With regards to $(p+q)(p-q)$, p and q can be $1\pmod 4$ or $3\pmod4$, therefore $8\vert p^2 - q^2$.
This implies $16\vert p^4 - q^4$, when $p>q>2$
Now consider the where, $p>q>3$
All prime numbers can be expressed in the form $6n \pm 1$, following from the first case, we know $2\vert p^2 + q^2$
With regards to $(p+q)(p-q)$, p and q can $1\pmod 6$ or $5\pmod6$, therefore $12\vert (p+q)(p-q)$.
Knowing that $16\vert p^4 - q^4$ for $p>q>2$ we can take the lowest common denominator of 16 and 12, to get $48\vert p^4 - q^4$, when $p>q>3$
The reason why I don't know how to prove p>q>5, because I'm not aware of a standard form for all prime numbers greater than 5, (I used 2n+1, for primes greater than 2, and $6n\pm1$ for primes greater than 3).