You are here
Home ›solving linear Diophantine equation
Primary tabs
solving linear Diophantine equation
Here we represent an elementary but very comprehensible method for solving any linear Diophantine equation with two unknowns, i.e. for finding the general integer solution of an equation of the form
where are known integers and the unknowns.
The method is illustrated via a numerical example:
| (1) |
We solve first (1) for (which has absolutely smaller coefficient than ):
| (2) |
The terms in the numerator may be split so that division yields a polynomial with integer coefficients and that the remainder has absolutely smaller coefficients (now and ) than the dividend in (2) had:
Since and mean integers, also
must be an integer. Now solve this last equation for and split the new numerator similarly as above:
Since and mean integers, also
must be an integer. It is apparent that we can give any integer value for , which thus may be thought as a parameter determining the values of the other letters. We obtain successively
Accordingly, we may write the general solution of (1) as
where
This method and the use of a parameter for expressing the solution were well known in the ancient world, especially in solving astronomical cycles as noted by Brahmagupta (598–668).
Mathematics Subject Classification
11D04 Linear equations- Forums
- Planetary Bugs
- HS/Secondary
- University/Tertiary
- Graduate/Advanced
- Industry/Practice
- Research Topics
- LaTeX help
- Math Comptetitions
- Math History
- Math Humor
- PlanetMath Comments
- PlanetMath System Updates and News
- PlanetMath help
- PlanetMath.ORG
- Strategic Communications Development
- The Math Pub
- Testing messages (ignore)
- Other useful stuff
Recent Activity
new image: sinx_approx.png by jeremyboden
new image: approximation_to_sinx by jeremyboden
new image: approximation_to_sinx by jeremyboden
new question: Solving the word problem for isomorphic groups by mairiwalker
new image: LineDiagrams.jpg by m759
new image: ProjPoints.jpg by m759
new image: AbstrExample3.jpg by m759
new image: four-diamond_figure.jpg by m759
May 16
new problem: Curve fitting using the Exchange Algorithm. by jeremyboden
new question: Undirected graphs and their Chromatic Number by Serchinnho


