The base rows never involve division — they just record "a is one copy of a" and "b is one copy of b".
(r0,x0,y0)=(100,1,0),(r1,x1,y1)=(28,0,1).Check the meaning:1⋅100+0⋅28=100=r0 ✓ and 0⋅100+1⋅28=28=r1 ✓.
Recall Solution 1.2
The gcd is the last non-zero remainder, so gcd(a,b)=6. The Bézout coefficients come from that same row: x=2,y=−7, giving 2a−7b=6.
(This is exactly the "stop at the right row" rule — never the zero row.)
A solution exists iffgcd(99,78) divides the right side. From 2.1, gcd=3, and 3∣12 (since 12/3=4), so solutions exist.
We already have the Bézout combination 99(−11)+78(14)=3. Multiply the whole equation by 12/3=4:
99(−11⋅4)+78(14⋅4)=3⋅4=12.Particular solution:x=−44,y=56.
Check:99(−44)+78(56)=−4356+4368=12 ✓.
Recall Solution 3.2
Once one particular solution (x0,y0)=(−44,56) is known, all solutions come from sliding along the line while staying on integers. The step sizes are b/g and a/g where g=gcd:
gb=378=26,ga=399=33.x=−44+26t,y=56−33t,t∈ZWhy these steps? Adding 26 to x adds 99⋅26 to the left; subtracting 33 from y subtracts 78⋅33. Since 99⋅26=78⋅33=2574, the two changes cancel — the equation still holds. Using b/g (not b) guarantees we hit every integer solution, not just some.
Check at t=1:x=−18,y=23; 99(−18)+78(23)=−1782+1794=12 ✓.
A congruence ax≡c(modm) has solutions iffg=gcd(a,m) divides c; then there are exactly g solutions mod m.
Here a=14,m=100: g=gcd(14,100)=2, and 2∣30 ✓ — so 2 solutions exist.
Divide everything by g=2: 7x≡15(mod50). Now gcd(7,50)=1, so invert 7.
Extended Euclidean on (50,7):
r
q
coeff of 50
coeff of 7
50
—
1
0
7
—
0
1
1
7
1
−7
50(1)+7(−7)=1, so 7−1≡−7≡43(mod50).
Then x≡43⋅15=645≡645−12⋅50=45(mod50).
The two solutions mod 100 are x=45 and x=45+50=95.
Check:14⋅45=630=6⋅100+30≡30 ✓; 14⋅95=1330=13⋅100+30≡30 ✓.
Answers:x∈{45,95}.
Recall Solution 5.2
Let x = number of big jumps, y = number of small jumps. Landing on 1 means
63x−40y=1.(a) Possible? This is a Diophantine equation 63x+40(−y)=1. Solvable iff gcd(63,40)∣1. Since gcd(63,40)=1, yes.
Extended Euclidean on (63,40):
r
q
coeff of 63
coeff of 40
63
—
1
0
40
—
0
1
23
1
1
−1
17
1
−1
2
6
1
2
−3
5
2
−5
8
1
1
7
−11
63(7)+40(−11)=441−440=1. So x0=7 and (matching 63x−40y=1) −y0=−11⇒y0=11.
(b) General solution: since gcd=1, x=7+40t and y=11+63t (both must stay ≥0; increasing t from 0 only grows them, decreasing sends x negative at t=−1: 7−40<0). The smallest non-negative x is at t=0.
Answer:x=7 big jumps and y=11 small jumps.
Check:63⋅7−40⋅11=441−440=1 ✓. See the jump-line figure below.
Recall Self-test summary (cloze)
The gcd is the last non-zero remainder, and its Bézout coefficients live in that same row.
A congruence ax≡c(modm) is solvable iff ::: gcd(a,m) divides c.
To turn a Bézout solution of ax+by=g into a solution of ax+by=c, you ::: multiply the whole equation (and both coefficients) by c/g.
The general Diophantine solution steps x by ::: b/g and y by −a/g.
A negative inverse coefficient is fixed by ::: adding m until it lands in [0,m).