Math 2.0

Number theory Theorem

Solvability of a linear Diophantine equation in two unknowns

Builds on Greatest common divisorLinear Diophantine equation

Statement

Let mm, nn and cc be positive integers. Consider the linear Diophantine equation am+bn=ca m + b n = c in the unknowns aa and bb, where aa and bb may be any integers, negative ones included.

This equation has an integer solution (a,b)(a, b) if and only if cc is a multiple of the greatest common divisor of mm and nn.

Remarks

One direction is easy. The number gcd⁡(m,n)\gcd(m, n) divides am+bna m + b n for all integers aa and bb, so it divides cc when a solution exists.

The other direction follows from Bézout's identity. If c=kgcd⁡(m,n)c = k \gcd(m, n), multiply a Bézout pair by kk.

For example, 6a+10b=76a + 10b = 7 has no solution, since gcd⁡(6,10)=2\gcd(6, 10) = 2 does not divide 77. But 6a+10b=86a + 10b = 8 has the solution a=−2a = -2, b=2b = 2.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Divisibility definition
  2. Linear Diophantine equation concept
  3. Greatest common divisor definition
  4. Solvability of a linear Diophantine equation in two unknowns statement

Further reading

  1. Web https://github.com/mitchkeller/applied-combinatorics/blob/ebd95d6bd59e23c633c65cf560bcb93efa912aae/source/s_induction_recursion.ptx#L270, source/s_induction_recursion.ptx:270
About this page
TagDK7W1HZDDG
URIm2://DK7W1HZDDG
Kindstatement, theorem
WritingW1 stated
MSC11D04, 11A05
StatusThis copy of the site has no build data. Run m2 status DK7W1HZDDG.
AboutLinear Diophantine equation
UsesGreatest common divisor, Linear Diophantine equation
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W2

  • edge proves in: at least one proof node (0 of 1)
  • edge instance_of or illustrates in: one example that shows the statement at work (0 of 1)
  • explanation L2 (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.