Mathematical-Reasoning Β· Unit 10 Β· Video 4 Β· Interactive Practice

Adding, Multiplying and Powering Congruences

IKey Formulas

StatementEquation behind itSource
a≑b(modn)a \equiv b \pmod na=b+nka = b + nk for some k∈Zk \in \mathbb{Z}Definitions of congruence and divides
(a+c)≑(b+d)(modn)(a + c) \equiv (b + d) \pmod n(a+c)βˆ’(b+d)=n(k+q)(a + c) - (b + d) = n(k + q)Part (1), sums
ac≑bd(modn)ac \equiv bd \pmod nacβˆ’bd=n(bq+dk+nkq)ac - bd = n(bq + dk + nkq)Part (2), products
am≑bm(modn)a^m \equiv b^m \pmod n for each m∈Nm \in \mathbb{N}Part (2) applied to a≑ba \equiv b again for each further powerPart (3), powers

Key Insight: With n∈Nn \in \mathbb{N}, a≑b(modn)a \equiv b \pmod n and c≑d(modn)c \equiv d \pmod n (written a=b+nka = b + nk, c=d+nqc = d + nq), congruences with the same modulus can be added, multiplied and raised to powers side by side, like equations. Cancelling a common factor is not automatic: 2β‹…1≑2β‹…4(mod6)2 \cdot 1 \equiv 2 \cdot 4 \pmod 6, yet 4βˆ’1=34 - 1 = 3 and 6∀36 \nmid 3, so 1≑̸4(mod6)1 \not\equiv 4 \pmod 6.

IIPart (1) Β· Adding Two Congruences

With a=b+nka = b + nk and c=d+nqc = d + nq, the sum a+ca + c sits exactly k+qk + q hops of length nn from b+db + d.

IIIPart (2) Β· Multiplying Two Congruences

In ac=(b+nk)(d+nq)ac = (b + nk)(d + nq), every one of the four pieces except bdbd carries a factor of nn.

πŸ’‘ The rectangle needs positive lengths, but the expansion (b+nk)(d+nq)=bd+n(bq+dk+nkq)(b + nk)(d + nq) = bd + n(bq + dk + nkq) holds for all integers, including negative bb, dd, kk and qq.

IVPart (3) Β· Powers, One Multiplication at a Time

Multiplying amβˆ’1≑bmβˆ’1a^{m-1} \equiv b^{m-1} by a≑ba \equiv b with part (2) gives am≑bma^m \equiv b^m, one power at a time.

πŸ’‘ Each rung is one more application of part (2), so the ladder covers only the powers actually written down; a proof for every m∈Nm \in \mathbb{N} at once uses mathematical induction, which comes later in the course.

VQuiz Questions

Problem 1 Β· The Leftover Integers

Given: 23≑2(mod7)23 \equiv 2 \pmod 7 and 18≑4(mod7)18 \equiv 4 \pmod 7, with 23βˆ’2=7k23 - 2 = 7k and 18βˆ’4=7q18 - 4 = 7q for integers kk and qq.

Which integer jj gives (23+18)βˆ’(2+4)=7j(23 + 18) - (2 + 4) = 7j?

Which integer jj gives 23β‹…18βˆ’2β‹…4=7j23 \cdot 18 - 2 \cdot 4 = 7j?

βœ… Correct! With k=3k = 3 and q=2q = 2, the sum leaves k+q=5k + q = 5 and the product leaves bq+dk+nkq=4+12+42=58bq + dk + nkq = 4 + 12 + 42 = 58; indeed 7β‹…5=357 \cdot 5 = 35 and 7β‹…58=4067 \cdot 58 = 406.
❌ Not quite. 41=23+1841 = 23 + 18 is a+ca + c itself. The difference is 41βˆ’6=3541 - 6 = 35, and 7β‹…41=287β‰ 357 \cdot 41 = 287 \ne 35.
❌ Not quite. 6=kq6 = kq multiplies the witnesses k=3k = 3 and q=2q = 2. For a sum they add: 7β‹…6=42β‰ 357 \cdot 6 = 42 \ne 35.
❌ Not quite. 3535 is the difference itself; jj is what is left after dividing it by 77.
❌ Not quite. kq=6kq = 6 is only part of the n2kqn^2kq piece. The difference is 414βˆ’8=406414 - 8 = 406, and 7β‹…6=427 \cdot 6 = 42.
❌ Not quite. k+q=5k + q = 5 is the leftover for the sum, not the product: 7β‹…5=35β‰ 4067 \cdot 5 = 35 \ne 406.
❌ Close, but… bq+dk=4+12=16bq + dk = 4 + 12 = 16 drops the term nkq=7β‹…3β‹…2=42nkq = 7 \cdot 3 \cdot 2 = 42, which comes from the piece n2kqn^2kq after factoring out one nn.
❌ Not quite. Compute (23+18)βˆ’(2+4)(23 + 18) - (2 + 4) and divide by 77.
❌ Not quite. Compute 23β‹…18βˆ’2β‹…423 \cdot 18 - 2 \cdot 4 and divide by 77.
Show solution

The witnesses: 23βˆ’2=21=7β‹…323 - 2 = 21 = 7 \cdot 3, so k=3k = 3; and 18βˆ’4=14=7β‹…218 - 4 = 14 = 7 \cdot 2, so q=2q = 2.

Sum. (23+18)βˆ’(2+4)=41βˆ’6=35=7β‹…5(23 + 18) - (2 + 4) = 41 - 6 = 35 = 7 \cdot 5, and 5=3+2=k+q5 = 3 + 2 = k + q, as part (1) predicts.

Product. 23β‹…18βˆ’2β‹…4=414βˆ’8=40623 \cdot 18 - 2 \cdot 4 = 414 - 8 = 406. Part (2) predicts the leftover

bq+dk+nkq=2β‹…2+4β‹…3+7β‹…3β‹…2=4+12+42=58,bq + dk + nkq = 2 \cdot 2 + 4 \cdot 3 + 7 \cdot 3 \cdot 2 = 4 + 12 + 42 = 58,

and indeed 7β‹…58=4067 \cdot 58 = 406.

Problem 2 Β· Cancelling a Factor

Given: integers aa and bb with 4a≑4b(mod8)4a \equiv 4b \pmod 8. Which conclusion is valid for every such pair?

βœ… Correct! From 4aβˆ’4b=8j4a - 4b = 8j we get 4(aβˆ’b)=4(2j)4(a - b) = 4(2j), so aβˆ’b=2ja - b = 2j and 2∣(aβˆ’b)2 \mid (a - b).
❌ Not quite. This cancels the 44 as if congruences were equations. Take a=1a = 1, b=3b = 3: 4βˆ’12=βˆ’8=8β‹…(βˆ’1)4 - 12 = -8 = 8 \cdot (-1), so 4≑12(mod8)4 \equiv 12 \pmod 8, but 1βˆ’3=βˆ’21 - 3 = -2 and 8βˆ€βˆ’28 \nmid -2.
❌ Not quite. The same pair a=1a = 1, b=3b = 3 satisfies 4a≑4b(mod8)4a \equiv 4b \pmod 8, but 1βˆ’3=βˆ’21 - 3 = -2 and 4βˆ€βˆ’24 \nmid -2.
❌ Not quite. Something does follow: writing 4aβˆ’4b=8j4a - 4b = 8j and dividing the equation by 44 shows that aβˆ’ba - b is even.
Show solution

Assume 4a≑4b(mod8)4a \equiv 4b \pmod 8. Then 8∣(4aβˆ’4b)8 \mid (4a - 4b), so there is an integer jj with 4(aβˆ’b)=8j4(a - b) = 8j. Dividing this equation of integers by 44 gives aβˆ’b=2ja - b = 2j, so 2∣(aβˆ’b)2 \mid (a - b) and a≑b(mod2)a \equiv b \pmod 2.

The stronger conclusions fail: a=1a = 1, b=3b = 3 gives 4β‹…1βˆ’4β‹…3=βˆ’8=8β‹…(βˆ’1)4 \cdot 1 - 4 \cdot 3 = -8 = 8 \cdot (-1), so the hypothesis holds, yet 1βˆ’3=βˆ’21 - 3 = -2 is divisible by neither 44 nor 88.

The theorem lets us multiply congruences; cancelling a factor needs its own argument, and here it changes the modulus from 88 to 22.

Problem 3 Β· Combining Parts (1) and (3)

Given: integers aa and cc with a≑4(mod7)a \equiv 4 \pmod 7 and c≑3(mod7)c \equiv 3 \pmod 7. Which congruence holds for every such pair?

βœ… Correct! Part (3) gives a2≑42=16a^2 \equiv 4^2 = 16, and part (1) adds c≑3c \equiv 3: (a2+c)≑16+3=19(mod7)(a^2 + c) \equiv 16 + 3 = 19 \pmod 7.
❌ Not quite. 7=4+37 = 4 + 3 forgets to square. With a=4a = 4, c=3c = 3: a2+c=19a^2 + c = 19, and 19βˆ’7=1219 - 7 = 12 is not a multiple of 77.
❌ Not quite. 11=2β‹…4+311 = 2 \cdot 4 + 3 doubles 44 instead of squaring it. With a=4a = 4, c=3c = 3: 19βˆ’11=819 - 11 = 8, not a multiple of 77.
❌ Not quite. 48=42β‹…348 = 4^2 \cdot 3 multiplies where the expression adds. With a=4a = 4, c=3c = 3: 19βˆ’48=βˆ’2919 - 48 = -29, not a multiple of 77.
Show solution

From a≑4(mod7)a \equiv 4 \pmod 7, part (3) with m=2m = 2 gives a2≑42=16(mod7)a^2 \equiv 4^2 = 16 \pmod 7.

Now add this congruence to c≑3(mod7)c \equiv 3 \pmod 7 using part (1): (a2+c)≑(16+3)=19(mod7)(a^2 + c) \equiv (16 + 3) = 19 \pmod 7.

Check with a=11a = 11 and c=10c = 10 (since 11βˆ’4=711 - 4 = 7 and 10βˆ’3=710 - 3 = 7): a2+c=121+10=131a^2 + c = 121 + 10 = 131, and 131βˆ’19=112=7β‹…16131 - 19 = 112 = 7 \cdot 16.

Problem 4 Β· Part (2) with c = a

Given: a≑b(modn)a \equiv b \pmod n with a=b+nka = b + nk, k∈Zk \in \mathbb{Z}. Applying part (2) with c=ac = a and d=bd = b (so q=kq = k) proves a2≑b2(modn)a^2 \equiv b^2 \pmod n. Which integer jj satisfies a2βˆ’b2=nja^2 - b^2 = nj?

βœ… Correct! Substituting d=bd = b, q=kq = k into bq+dk+nkqbq + dk + nkq gives bk+bk+nk2=2bk+nk2bk + bk + nk^2 = 2bk + nk^2. With a=15a = 15, b=3b = 3, n=6n = 6, k=2k = 2: 6(12+24)=216=225βˆ’96(12 + 24) = 216 = 225 - 9.
❌ Not quite. Squaring the witness misses the cross terms. With a=15a = 15, b=3b = 3, n=6n = 6, k=2k = 2: a2βˆ’b2=216a^2 - b^2 = 216, but 6β‹…4=246 \cdot 4 = 24.
❌ Close, but… 2bk2bk keeps the two cross terms but drops nk2nk^2, which comes from (nk)2=nβ‹…nk2(nk)^2 = n \cdot nk^2. With 15,3,6,215, 3, 6, 2: 6β‹…12=72β‰ 2166 \cdot 12 = 72 \ne 216.
❌ Close, but… nk2nk^2 is only the last term; the cross terms bq+dkbq + dk become bk+bk=2bkbk + bk = 2bk when d=bd = b and q=kq = k. With 15,3,6,215, 3, 6, 2: 6β‹…24=144β‰ 2166 \cdot 24 = 144 \ne 216.
Show solution

Directly: a2=(b+nk)2=b2+2bnk+n2k2a^2 = (b + nk)^2 = b^2 + 2bnk + n^2k^2, so

a2βˆ’b2=2bnk+n2k2=n(2bk+nk2).a^2 - b^2 = 2bnk + n^2k^2 = n(2bk + nk^2).

This is the product formula acβˆ’bd=n(bq+dk+nkq)ac - bd = n(bq + dk + nkq) with c=ac = a, d=bd = b, q=kq = k: bk+bk+nkβ‹…k=2bk+nk2bk + bk + nk \cdot k = 2bk + nk^2. Since bb, kk, nn are integers, 2bk+nk22bk + nk^2 is an integer, so n∣(a2βˆ’b2)n \mid (a^2 - b^2).

Check: a=15a = 15, b=3b = 3, n=6n = 6, k=2k = 2 gives 225βˆ’9=216225 - 9 = 216 and 6(2β‹…3β‹…2+6β‹…4)=6β‹…36=2166(2 \cdot 3 \cdot 2 + 6 \cdot 4) = 6 \cdot 36 = 216.

Solved: 0 / 4