How can be proved $\sqrt{n^8+2\cdot 7^{m}+4}$ is irrational, where $n,m \in \mathbb{N}$. I tried to write: $$a^2-n^8=2(7^m+2)$$ and to try finding the last digit in the left and in the right side.
So, the last digit for the RHS can be $0,2,6$. The problem is when the last digit might be $0$.
have you any other idea?
$a^2-n^8$ is a difference of two squares.
A number is a difference of two squares iff it is odd or a multiple of $4$.
$2(7^m+2)$ is even but not a multiple of $4$ and so cannot be a difference of two squares.