Is There Always a Positive Solution for the Linear Diophantine Equation ax+by=c?

  • Context: Graduate 
  • Thread starter Thread starter StellaLuna
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on the existence of positive integer solutions for the linear Diophantine equation ax + by = c, particularly when ab < 0 and d(gcd(a, b)) | c. It is established that if a and b are coprime and both positive, finding one solution to ax - by = 1 allows for the derivation of solutions to ax + by = c. The proof utilizes Fermat's Little Theorem and Euler's Totient Function to demonstrate that a solution exists under the specified conditions.

PREREQUISITES
  • Understanding of linear Diophantine equations
  • Knowledge of coprimality and gcd (greatest common divisor)
  • Familiarity with Fermat's Little Theorem
  • Basic concepts of Euler's Totient Function
NEXT STEPS
  • Study the properties of linear Diophantine equations in detail
  • Learn about the application of Fermat's Little Theorem in number theory
  • Explore the implications of Euler's Totient Function on coprime integers
  • Investigate advanced techniques for finding integer solutions to equations
USEFUL FOR

Mathematicians, students studying number theory, and anyone interested in solving linear Diophantine equations and their applications in theoretical mathematics.

StellaLuna
Messages
6
Reaction score
0
I was wondering if someone could help me with a proof.

If ab<0 (can we assume that either a or b is negative then?) and d(gcd of a and b)│c, there there is at least one solution of ax+by=c with x and y positive.
 
Physics news on Phys.org


I haven't read it yet but https://www.physicsforums.com/showthread.php?t=367945", is most certainly relevant to your question.

Here is my attempt, which to be honest is a complete overkill since it resorts to a more advanced theorem!:), but it was pretty much the first thing that came into my head.

First we note that if we have one solution to the equation, say (x,y), then (x+nb, y+na) is also a solution. Therefore if we can find one solution, we can always, from this solution, construct another solution for which both coordinates are positive.

With the aim of finding a single solution, we note that it is clear that the problem is equivalent to (where I have redefined the meaning of the variables a,b,c):

<br /> ax - by = c<br />

For a>0, b>0, and where a and b are coprime [I have divided both sides of the equation by the gcd(a,b), and then redefined the variables (e.g. c now represents the result of this division on the rhs etc..likewise for a,b)].

It is also clear that if we can find a solution to the equation :

<br /> ax - by = 1<br />

(where a>0, b>0, and where a and b are coprime), then we can immediately find a solution to the equation above (simply by multiplying both sides of the equation by c).

We proceed by noting that from a "[URL of fermat's little theorem[/URL], and given the coprimality of a and b :

<br /> \exists\ p\ s.t.\ a^p = 1 (mod\ b)<br />

In particular p is given by http://en.wikipedia.org/wiki/Euler%27s_totient_function" : p=\phi(b). Therefore :

<br /> a^p = Nb + 1\ for\ some\ integer\ N<br />

So that

<br /> a^p - N b = 1<br />

Therefore the solution to :

<br /> ax - by = 1<br />

(where a>0, b>0, and where a and b are coprime) is given by :

<br /> (x,y) = (a^{p-1}, N)<br />

where x, y are both integers, and therefore we have achieved the desired result
 
Last edited by a moderator:

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 14 ·
Replies
14
Views
3K
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K