Clever proof of solutions to linear diophantine equation
A simple result in elementary number theory relates to the linear diophantine equation
A property of this equation (which is not proven here) is that it has infinitely many solutions if is a multiple of , otherwise it has none.
The clever part is, after finding the first solution we can find the rest. Suppose there exists a solution , and that is another solution:
Rearrange equation
Let . Naturally, and are both divisible by . Divide by
Now, and share no common factors, therefor does not divide and does not divide . Note however that does divide the right side of the equation, and therefor must divide the left side of the equation. Because we already determined that does not divide , must divide , thus must be a multiple of (likewise is a multiple of ).
State that is a multiple of in a new equation:
Likewise of
Thus, given the initial solutions of , the other solutions are found as:
This proof is not complete but highlights the clever trick of extracting an equation based on divisibility. It comes down to the (often subtle) fact that when divides , .