Exercise · ZW-LINEAR-DIOPHANTINE-EQUATION-007 · ★★☆ Intermediate

Given the particular solution \((x_0,y_0)=(2,-1)\) of \(4x+6y=2\), what is the general solution with \(t\in\mathbb{Z}\)?

Choose one option.

Show answer
  • A. \(x=2+3t,\ y=-1-2t\)

Explanation

Since \(\gcd(4,6)=2\), the steps are \(6/2=3\) in \(x\) and \(-4/2=-2\) in \(y\). Flipping the sign of the step in \(y\) breaks the equation, and a unit step does not preserve it either.

Study Elementary number theory in ZWMath →

Review the concept: Linear Diophantine equation

A linear Diophantine equation is \(ax+by=c\) with integer coefficients, where we seek integer pairs \(x,y\) as solutions.

\[x=x_0+\frac{b}{d}t,\quad y=y_0-\frac{a}{d}t,\quad t\in\mathbb{Z}\]

More practice problems: linear diophantine equation

← ZW-LINEAR-DIOPHANTINE-EQUATION-006 ZW-LINEAR-DIOPHANTINE-EQUATION-008 →