Math 2.0

concept

Linear Diophantine equation

Summary

A linear Diophantine equation in two unknowns is an equation ax+by=ca x + b y = c with given integers aa, bb and cc. Its solutions are the pairs of integers (x,y)(x, y) that satisfy it. When aa and bb are not both 00, the equation has an integer solution if and only if gcd⁡(a,b)\gcd(a, b) divides cc. In this case, let d=gcd⁡(a,b)d = \gcd(a, b) and let (x0,y0)(x_0, y_0) be one solution. Then the solutions are the pairs (x0+kb/d,  y0−ka/d)(x_0 + k b / d, \; y_0 - k a / d) with kk an integer.

Remarks

Bézout's identity gives the existence of a solution, and the extended Euclidean algorithm computes one. For example, 6x+10y=76 x + 10 y = 7 has no integer solution, because gcd⁡(6,10)=2\gcd(6, 10) = 2 does not divide 77. The equation is a special case of a Diophantine equation.

Explanations

L1 human

Ask whether you can pay cc with coins of value aa and bb, when you can also get coins back as change. Each amount that you can pay is a multiple of gcd⁡(a,b)\gcd(a, b), and each such multiple is possible. For example, 3x+5y=13 x + 5 y = 1 has the solution x=2x = 2, y=−1y = -1.

What this node needs for W1
  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

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

Sources

  1. Web https://en.wikipedia.org/wiki/Diophantine_equation, Linear Diophantine equations