The quadratic diophantine equations are equations of the type: where , , and are integers, and we ask the solutions and to be integers.
Nevertheless, we are only going to see quadratic diophantine equations of this kind here: with as any integer.
In this case, just as before,the equation may either have no solution or more than one solution. Nevertheless, the condition for this diophantine equation to have a solution is simpler: if can be written as the product of two numbers that both even, or both odd, then there will be solution. For example:
Example
If we have , and both are even, therefore the equation has a solution.
Example
If , we have , and are odd both, therefore the equation has solution.
Example
If , and the divisors of are and .
Besides, for the result of multiplying them to be , we either have to use , or , since no other way of writing as product of (positive) integers is possible.
In neither case is it satisfied that both numbers are even or odd, so the equation has no solution.
Let's suppose now that , where and even or odd both. Then a solution is given by:
Example
For example, in the case that has been seen before , we see that and , therefore a solution is:
Let's observe that in the case there is a solution, it cannot be unique, since it is possible that admits another decomposition as the product of two even or odd numbers.
For example, if , we know that (both are even) but also (both are even), and each of these two representations of gives a solution other than the diophantine equation.