How can we check whether a number can be represented in the form of $a^x - b^x$, where $a$ and $b$ are integers of opposite parity and $x$ is positive and even integer.
I thougth of using $$a^n - b^n = (a - b) (a^{n-1} + a^{n-2}b + \cdots + b^{n-2}a +b^{n-1}) .$$
Hint For $x = 2 m$, we have $$a^x - b^x = (a^m)^2 - (b^m)^2 ,$$ that is, any difference of even powers is a difference of squares, so we may as well restrict our attention to $x = 2$.
Now, the factorization of a difference of squares is $$a^2 - b^2 = (a + b) (a - b) ,$$ which specializes the factorization formula in the question statement.