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

Let $a,b\in\mathbb Z$ be squarefree with $a>0$. Suppose that I know that there exist $(0,0,0)\neq (x,y,z) \in \mathbb Z^3$ s.t. $x^2-by^2-az^2=0$. Is there any known algorithm to find any such a triple?

share|cite|improve this question
Maybe but you might not get squares. – xavierm02 Sep 2 '13 at 11:55

Hint: Since your equation is homogeneous, an integer solution can be interpreted as a rational point on the corresponding projective curve. Note that this curve has genus $0$.

Useful link:

In particular, you can use Magma to solve your problem, here is an example.


Try this code in the magma calculator ( and find that $(50,9,5)$ is an integer solution to $x^2-25y^5-19z^2=0.$

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.