Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


Determine all positive integers $x$ and $y$ that satisfy the equation $x^2 + 2 = 5y$.

share|cite|improve this question
up vote 1 down vote accepted

Hint: When is $5y - 2$ a square? Modulo 5 this is $5y - 2 = 3$, but squares mod 5 are always 0, 1 or 4 so the equation has no solutions.

share|cite|improve this answer

HINT $\rm\ \ x^2 \equiv\ \ldots\ \:(mod\ 5)\ $ versus $\rm\ \mathbb Z^2\ \equiv\ \{0,\:\pm1,\:\pm2\}^2\ \equiv\ \ldots \ \:(mod\ 5)$

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.