| [ ్paвнения в целых числах ] |
| :---: | :---: |

Find all prime numbers $p$ and $q$ for which the equation $p^{2}-2 q^{2}=1$ holds.
Let's rewrite the equation as $2 q^{2}=(p-1)(p+1)$. Notice that $p$ is odd. Therefore, $q$ is even, that is, $q=2$, and $p=$ 3.