Congruences
This chapter introduces the fundamental concept of congruences, covering notation, modular operations, and linear congruences. A thorough understanding of these principles is crucial for advanced number theory topics and is frequently assessed in CMI examinations.
---
Chapter Contents
|
| Topic |
|---|-------|
| 1 | Congruence notation |
| 2 | Operations modulo n |
| 3 | Remainder patterns |
| 4 | Linear congruences |
---
We begin with Congruence notation.
Part 1: Congruence notation
Congruence Notation
Overview
Congruence notation is the language used to express equality of remainders. It is one of the central ideas of modular arithmetic. In exam problems, correct use of notation matters: writing
aβ‘b(modn)
does
not mean
a=b; it means
a and
b differ by a multiple of
n.
---
Learning Objectives
β
By the End of This Topic
After studying this topic, you will be able to:
- Read and write congruence notation correctly.
- Interpret congruence as divisibility of a difference.
- Recognize congruence as βsame remainder modulo nβ.
- Use the basic properties of congruence.
- Distinguish congruence from ordinary equality.
---
Definition
π
Congruence Modulo n
For integers a,b and a positive integer n, we write
aβ‘b(modn)
if and only if
nβ£(aβb)
That is,
aβb is divisible by
n.
:::
β
Equivalent Meaning
The statement
aβ‘b(modn)
means that a and b leave the same remainder when divided by n.
Examples:
- 17β‘5(mod12) because 17β5=12
- β1β‘4(mod5) because β1β4=β5
:::
---
Congruence Is Not Equality
β οΈ
Do Not Confuse These
The notation
aβ‘b(modn)
does not mean
a=b
It only means that the difference aβb is a multiple of n.
For example,
14β‘2(mod12)
but clearly
14ξ =2
:::
---
Equivalent Forms
π
Three Equivalent Statements
For integers a,b and positive integer n, the following are equivalent:
- aβ‘b(modn)
- nβ£(aβb)
- a=b+kn for some integer k
These are three different ways of saying the same thing.
:::
---
Basic Properties
π
Equivalence Relation Properties
Congruence modulo n satisfies:
aβ‘a(modn)
If
aβ‘b(modn), then
bβ‘a(modn)
If
aβ‘b(modn) and
bβ‘c(modn), then
aβ‘c(modn)
So congruence modulo
n is an equivalence relation on the integers.
:::
---
Compatibility with Operations
π
Operation Rules
If
aβ‘b(modn)
and
cβ‘d(modn),
then:
- a+cβ‘b+d(modn)
- aβcβ‘bβd(modn)
- acβ‘bd(modn)
Also, for every positive integer
m,
amβ‘bm(modn)
---
Least Residue Language
π
Residue Class View
All integers congruent to a fixed integer r modulo n form one residue class.
For example, modulo 5:
- 2,7,12,17,β3,β¦ are all congruent
- so they all represent the same residue class modulo 5
This is why we often work with the standard set
{0,1,2,β¦,nβ1}
:::
---
Minimal Worked Examples
Example 1
Show that
38β‘3(mod5)
We check:
38β3=35
and
35 is divisible by
5.
So
38β‘3(mod5)
---
Example 2
Show that
β17β‘3(mod5)
We compute:
β17β3=β20
which is divisible by
5.
Hence
β17β‘3(mod5)
---
CMI Strategy
π‘
How to Read Congruence Quickly
- Translate it into βdifference divisible by nβ.
- Or translate it into βsame remainder mod nβ.
- Use whichever form is shorter for the problem.
- In proofs, divisibility form is often cleaner.
- In computations, residue form is usually faster.
---
Common Mistakes
β οΈ
Avoid These Errors
- β Thinking aβ‘b(modn) means a=b
- β Forgetting that n must be positive in the standard notation
- β Using congruence without checking divisibility of the difference
- β Mixing up the modulus with the remainder
---
Practice Questions
:::question type="MCQ" question="The statement
17β‘5(mod12) means" options=["
17=5","
12β£(17β5)","
12β£(17+5)","
17 and
5 are both divisible by
12"] answer="B" hint="Use the definition of congruence." solution="By definition,
17β‘5(mod12)
means
12β£(17β5)
Since
17β5=12, this is true. Therefore the correct option is
Bβ."
:::
:::question type="NAT" question="What is the greatest positive integer
n such that
38β‘3(modn)?" answer="35" hint="Use the divisibility form." solution="The statement
38β‘3(modn)
means
nβ£(38β3)=35
So
n must be a positive divisor of
35. The greatest such
n is
35β."
:::
:::question type="MSQ" question="Which of the following are always true?" options=["If
aβ‘b(modn), then
nβ£(aβb)","If
aβ‘b(modn), then
a and
b leave the same remainder upon division by
n","If
aβ‘b(modn), then
a=b","If
aβ‘b(modn) and
bβ‘c(modn), then
aβ‘c(modn)"] answer="A,B,D" hint="Check definition and transitivity." solution="1. True by definition.
True.
False. Congruence is weaker than equality.
True by transitivity.
Hence the correct answer is
A,B,Dβ."
:::
:::question type="SUB" question="Prove that if
aβ‘b(modn), then
a2β‘b2(modn)." answer="Since
aβb is divisible by
n, so is
(aβb)(a+b)=a2βb2." hint="Factor
a2βb2." solution="Assume
aβ‘b(modn)
Then by definition,
nβ£(aβb)
Now
a2βb2=(aβb)(a+b)
Since
n divides
aβb, it must also divide
(aβb)(a+b). Therefore
nβ£(a2βb2)
Hence
a2β‘b2(modn)
as required."
:::
---
Summary
β
Key Takeaways for CMI
- Congruence notation expresses equality of remainders.
- The statement aβ‘b(modn) means n divides aβb.
- Congruence is not the same as ordinary equality.
- Congruence is compatible with addition, subtraction, multiplication, and powers.
- Divisibility form and remainder form are equivalent viewpoints.
---
π‘
Next Up
Proceeding to Operations modulo n.
---
Part 2: Operations modulo n
Operations Modulo n
Overview
Working modulo
n means we care only about remainders after division by
n. The real power of modular arithmetic is that addition, subtraction, and multiplication can all be performed on remainders instead of large numbers. In exam problems, this is one of the fastest ways to simplify computations, detect impossibility, and reduce long expressions.
---
Learning Objectives
β
By the End of This Topic
After studying this topic, you will be able to:
- Add, subtract, and multiply numbers modulo n correctly.
- Reduce large expressions using residues.
- Compute powers modulo n in basic settings.
- Understand when cancellation is valid and when it is not.
- Use modular operations to simplify arithmetic problems quickly.
---
Core Idea
When working modulo n, two integers that have the same remainder upon division by n are treated as equivalent.
So instead of the full integer, we keep only its residue class modulo n.
If
aβ‘r(modn),
then in modular calculations we may replace
a by
r.
:::
---
Addition, Subtraction, Multiplication
π
Basic Operations
If
aβ‘b(modn)
and
cβ‘d(modn),
then:
a+cβ‘b+d(modn)
aβcβ‘bβd(modn)
acβ‘bd(modn)
This means we can reduce numbers before operating.
---
Reduction Rule
β
Reduce Early
To compute an expression modulo n:
- replace each integer by its remainder mod n,
This is often much faster than computing the full number first.
---
Powers Modulo n
π
Repeated Multiplication
If
aβ‘r(modn),
then
akβ‘rk(modn)
This is very useful for simplifying large powers.
Example:
Since
17β‘2(mod5),
we get
173β‘23=8β‘3(mod5)
:::
---
Least Nonnegative Residue
π
Least Nonnegative Residue
Every integer has a unique remainder in the set
{0,1,2,β¦,nβ1}
when divided by n.
This is called its least nonnegative residue modulo n.
Examples:
- modulo 5, the least nonnegative residue of 17 is 2
- modulo 7, the least nonnegative residue of β3 is 4
:::
---
Cancellation: Be Careful
β οΈ
Cancellation Is Not Always Valid
From
acβ‘bc(modn)
we cannot always conclude
aβ‘b(modn)
unless c is invertible modulo n, which happens when
gcd(c,n)=1
Example:
Modulo
6,
2β
1β‘2β
4(mod6)
because both sides are congruent to
2 mod
6.
But
1ξ β‘4(mod6)
So cancellation failed.
---
Minimal Worked Examples
Example 1
Compute
23+19(mod6)
Reduce first:
23β‘5(mod6),19β‘1(mod6)
So
23+19β‘5+1=6β‘0(mod6)
Hence the answer is
0β.
---
Example 2
Compute
14β
17(mod5)
Reduce first:
14β‘4(mod5),17β‘2(mod5)
So
14β
17β‘4β
2=8β‘3(mod5)
Hence the answer is
3β.
---
CMI Strategy
π‘
How to Attack Modulo Computations
- Reduce every number early.
- Replace large powers by powers of small residues.
- Use addition, subtraction, and multiplication rules freely.
- Be careful with division and cancellation.
- Always give the least nonnegative residue unless another form is requested.
---
Common Mistakes
β οΈ
Avoid These Errors
- β Forgetting to reduce negative residues to standard form
- β Treating modular division like ordinary division
- β Cancelling common factors without checking gcd conditions
- β Computing huge integers first when small residues are enough
---
Practice Questions
:::question type="MCQ" question="The least nonnegative residue of
29+17 modulo
6 is" options=["
1","
2","
4","
5"] answer="C" hint="Reduce before adding." solution="We have
29β‘5(mod6),17β‘5(mod6)
So
29+17β‘5+5=10β‘4(mod6)
Hence the correct option is
Cβ."
:::
:::question type="NAT" question="Find the least nonnegative residue of
17β
23+5 modulo
6." answer="0" hint="Reduce the factors modulo
6 first." solution="Reduce first:
17β‘5(mod6),23β‘5(mod6)
So
17β
23+5β‘5β
5+5=25+5=30β‘0(mod6)
Hence the required residue is
0β."
:::
:::question type="MSQ" question="Which of the following are always valid modulo
n?" options=["If
aβ‘b(modn) and
cβ‘d(modn), then
a+cβ‘b+d(modn)","If
aβ‘b(modn) and
cβ‘d(modn), then
acβ‘bd(modn)","From
acβ‘bc(modn), we may always cancel
c","If
aβ‘b(modn), then
a2β‘b2(modn)"] answer="A,B,D" hint="Check which operations are universally compatible." solution="1. True.
True.
False. Cancellation is not always valid.
True, because squaring preserves congruence.
Hence the correct answer is
A,B,Dβ."
:::
:::question type="SUB" question="Find the least nonnegative residue of
232+7β
11 modulo
8." answer="
6" hint="Reduce each part modulo
8 first." solution="Reduce first:
23β‘7(mod8)
So
232β‘72=49β‘1(mod8)
Also
7β
11β‘7β
3=21β‘5(mod8)
Therefore
232+7β
11β‘1+5=6(mod8)
So the least nonnegative residue is
6β."
:::
---
Summary
β
Key Takeaways for CMI
- Modular operations let us replace numbers by their remainders.
- Addition, subtraction, multiplication, and powers behave well modulo n.
- Least nonnegative residues are usually the standard final answers.
- Cancellation is not always allowed.
- Early reduction is the main speed advantage of modular arithmetic.
---
π‘
Next Up
Proceeding to Remainder patterns.
---
Part 3: Remainder patterns
Remainder Patterns
Overview
Remainder-pattern problems ask you to understand how a sequence behaves modulo some integer. At exam level, the sequence may come from powers, squares, triangular numbers, or step-by-step motion such as a frog making variable jumps. The key idea is to stop thinking about the full numbers and track only their remainders.
---
Learning Objectives
β
By the End of This Topic
After studying this topic, you will be able to:
- Compute remainders efficiently using congruences.
- Detect periodic patterns in sequences modulo m.
- Work with triangular-number type sequences such as 2n(n+1)β.
- Count how many terms in a range lie in a chosen residue class.
- Solve motion-based modular questions by converting position formulas into congruences.
---
Core Idea
π
Congruence
For integers a,b,m with m>0, we write
aβ‘b(modm)
if m divides aβb.
This means that
a and
b have the same remainder upon division by
m.
Examples:
- 29β‘1(mod7)
- 38β‘3(mod5)
---
Basic Rules of Congruence
π
Main Algebraic Rules
If
aβ‘b(modm)
and
cβ‘d(modm),
then:
- a+cβ‘b+d(modm)
- aβcβ‘bβd(modm)
- acβ‘bd(modm)
- akβ‘bk(modm) for positive integers k
β οΈ
Important
Division is not automatically valid in modular arithmetic.
For example, from
2aβ‘2b(mod6)
you cannot always conclude
aβ‘b(mod6).
---
Sequence Patterns Modulo m
β
Why Patterns Repeat
When a sequence is studied modulo m, there are only finitely many possible remainders:
0,1,2,β¦,mβ1
So repeated behaviour often appears quickly. In many problems, the task is:
- count how often the desired remainder appears,
- extend the count to the full range.
---
Triangular Numbers and Frog Positions
π
Triangular Number Formula
If a frog starts at 0 and at step i jumps i+1 units, then after n steps its position is
Tnβ=1+2+β―+n=2n(n+1)β
with
T0β=0
So many frog problems reduce to studying
2n(n+1)β(modm)
:::
---
Safe Periodicity Fact for Triangular Numbers
π
A Useful Periodicity Rule
For triangular numbers
Tnβ=2n(n+1)β,
the sequence {Tnβmodm} is always periodic, and a safe period is 2m.
In many odd moduli, a shorter period occurs.
For example, modulo
7,
Tnββ‘0,1,3,6,3,1,0,β¦
with period
7.
---
Minimal Worked Examples
Example 1
Find the remainder when
317
is divided by
10.
The powers of
3 modulo
10 are:
3,9,7,1,3,9,7,1,β¦
This has period
4.
Since
17β‘1(mod4),
we get
317β‘3(mod10)
So the remainder is
3β.
---
Example 2
Find all residues of
n modulo
7 for which
2n(n+1)ββ‘1(mod7)
Compute
Tnβ modulo
7 for
n=0,1,2,3,4,5,6:
0,1,3,6,3,1,0
So the remainder
1 occurs when
nβ‘1Β orΒ 5(mod7)
---
Example 3
How many values of
n from
0 to
20 satisfy
2n(n+1)ββ‘0(mod3)?
Since
2 is invertible modulo
3, this is equivalent to
n(n+1)β‘0(mod3)
So
nβ‘0Β orΒ 2(mod3)
From
0 to
20, there are
21 integers:
So the total is
14β.
---
Counting Terms in a Residue Class
π‘
Counting Strategy
To count terms in a large range:
- find the period modulo m
- count desired hits in one full period
- count complete periods in the range
- handle the leftover terms separately
This is exactly how many modular sequence counting questions are solved.
---
Common Patterns
π
Patterns to Recognise
- squares or quadratic expressions modulo m
- triangular numbers 2n(n+1)β
- positions obtained by cumulative jumps
- counting how many terms land in one residue class
---
Common Mistakes
β οΈ
Avoid These Errors
- β Computing huge numbers before taking remainder
β
Reduce modulo
m at every step
- β Assuming division works automatically modulo m
β
Check whether the divisor is invertible modulo
m
- β Missing the period and doing long brute force
β
Look for repetition early
- β Confusing time index with position value
β
Write the position formula first
---
CMI Strategy
π‘
How to Attack Remainder Pattern Problems
- Write an explicit formula for the sequence if possible.
- Reduce the formula modulo the relevant integer.
- Compute one full modular pattern.
- Convert the problem into counting residue classes.
- Use complete cycles plus leftovers.
---
Practice Questions
:::question type="MCQ" question="If
Tnβ=2n(n+1)β, then
Tnβmod7 for
n=0,1,2,3,4,5,6 is" options=["
0,1,2,3,4,5,6","
0,1,3,6,3,1,0","
1,2,3,4,5,6,0","
0,1,0,1,0,1,0"] answer="B" hint="Compute directly for one full cycle." solution="Compute
Tnβ=2n(n+1)β
for
n=0,1,2,3,4,5,6.
The remainders modulo
7 are
0,1,3,6,3,1,0
So the correct option is
Bβ."
:::
:::question type="NAT" question="Find the remainder when
317 is divided by
10." answer="3" hint="Use the repeating last-digit pattern." solution="The powers of
3 modulo
10 repeat as
3,9,7,1
with period
4.
Since
17β‘1(mod4),
we get
317β‘3(mod10)
Hence the answer is
3β."
:::
:::question type="MSQ" question="Which of the following statements are true?" options=["If
aβ‘b(modm), then
a+cβ‘b+c(modm)","If
aβ‘b(modm), then
a2β‘b2(modm)","Division is always valid in congruences","A modular sequence often becomes periodic because only finitely many residues exist"] answer="A,B,D" hint="Use the standard rules of congruence carefully." solution="1. True.
True.
False. Division is not automatically valid modulo m.
True. There are only finitely many residue classes modulo m.
Hence the correct answer is
A,B,Dβ."
:::
:::question type="SUB" question="How many integers
n with
0β€nβ€20 satisfy
2n(n+1)ββ‘0(mod3)?" answer="
14" hint="Use
n(n+1)β‘0(mod3)." solution="We need
2n(n+1)ββ‘0(mod3)
Since
2 is invertible modulo
3, this is equivalent to
n(n+1)β‘0(mod3)
So
nβ‘0Β orΒ 2(mod3)
From
0 to
20, there are
21 integers, with residues mod
3 distributed equally:
- 7 numbers congruent to 0
- 7 numbers congruent to 2
Hence the total count is
7+7=14
Therefore the answer is
14β."
:::
---
Summary
β
Key Takeaways for CMI
- Remainder-pattern problems are about tracking sequences modulo m.
- Congruence lets you simplify before numbers become large.
- Many sequences become periodic modulo m.
- Frog-jump problems often reduce to triangular numbers.
- Counting in large ranges is done by cycles plus leftovers.
---
π‘
Next Up
Proceeding to Linear congruences.
---
Part 4: Linear congruences
Linear Conguences
Overview
A linear congruence is an expression of the form
axβ‘b(modm)
where the goal is to find all integers
x satisfying the congruence. In CMI-style questions, this topic is not just about plugging numbers into a formula. It tests when solutions exist, how many solutions exist, how to reduce a congruence, how to use inverses modulo
m, and how to construct numbers satisfying several congruence conditions at once.
---
Learning Objectives
β
By the End of This Topic
After studying this topic, you will be able to:
- Solve linear congruences of the form axβ‘b(modm).
- Decide when a linear congruence has a solution.
- Count the number of solutions modulo m.
- Compute modular inverses when they exist.
- Use congruence techniques and the Chinese remainder viewpoint to build integers with prescribed remainders.
---
Core Idea
π
Linear Congruence
A linear congruence is a congruence of the form
axβ‘b(modm)
where:
- a,b,m are integers,
- x is the unknown integer.
To solve it, we usually reduce it to a simpler congruence or multiply by the inverse of
a modulo
m if that inverse exists.
---
Basic Meaning
π
What axβ‘b(modm) Means
The congruence
axβ‘b(modm)
means that m divides axβb, i.e.
mβ£(axβb)
Equivalently,
axβb=km
for some integer
k.
---
Existence Criterion
β
When does axβ‘b(modm) have a solution?
Let
d=gcd(a,m)
Then the congruence
axβ‘b(modm)
has a solution if and only if
dβ£b
This is the single most important solvability criterion in the topic.
---
Number of Solutions
π
How many solutions modulo m?
If
d=gcd(a,m)
and dβ£b, then the congruence
axβ‘b(modm)
has exactly
d
solutions modulo m.
If
dβ€b, then there are no solutions.
---
Coprime Case
π
If gcd(a,m)=1
If
gcd(a,m)=1
then a has a multiplicative inverse modulo m, say aβ1, and
axβ‘b(modm)
has the unique solution modulo m
xβ‘aβ1b(modm)
So in the coprime case, solving a linear congruence is basically the same as dividing by
a modulo
m.
---
Modular Inverse
An integer u is called an inverse of a modulo m if
auβ‘1(modm)
Such an inverse exists if and only if
gcd(a,m)=1
:::
π‘
How to Find an Inverse
The two most common methods are:
- trial and checking small residues,
- using the Euclidean algorithm or extended Euclidean algorithm.
Example
Since
3β
5=15β‘1(mod7)
the inverse of
3 modulo
7 is
5.
---
Reducing a Congruence
π
Divide by the gcd when possible
Suppose
axβ‘b(modm)
and let d=gcd(a,m).
If dβ£b, then dividing by d gives the equivalent reduced congruence
daβxβ‘dbβ(moddmβ)
This reduced congruence has coprime coefficient and modulus, so it can be solved by inversion.
---
Standard Solving Procedure
π‘
Fast Solving Workflow
To solve
axβ‘b(modm)
use this order:
- compute d=gcd(a,m)
- check whether dβ£b
- if yes, divide through by d
- solve the reduced congruence using an inverse
- lift the answer back modulo m
---
Minimal Worked Examples
Example 1
Solve
3xβ‘2(mod7)
Since
gcd(3,7)=1, inverse of
3 modulo
7 exists. Since
3β1β‘5(mod7)
we get
xβ‘5β
2=10β‘3(mod7)
So the solution is
xβ‘3(mod7)
---
Example 2
Solve
6xβ‘8(mod14)
Now
gcd(6,14)=2
and
2β£8, so solutions exist.
Divide by
2:
3xβ‘4(mod7)
The inverse of
3 modulo
7 is
5, so
xβ‘5β
4=20β‘6(mod7)
Thus modulo
14, the solutions are
xβ‘6,Β 13(mod14)
There are exactly
2 solutions modulo
14, matching the gcd.
---
Example 3
Solve
4xβ‘3(mod6)
Since
gcd(4,6)=2
but
2β€3, no solution exists.
---
Chinese Remainder Viewpoint
β
Constructing numbers from two congruences
Many exam problems ask for an integer satisfying two congruences such as
xβ‘r1β(modm),xβ‘r2β(modn)
If gcd(m,n)=1, then there is a unique solution modulo mn.
This is the basic Chinese Remainder Theorem idea.
π
Standard constructive form
If gcd(m,n)=1, one way to build the solution is:
- find a number that is 1(modm) and 0(modn)
- find a number that is 0(modm) and 1(modn)
- combine them linearly to hit the desired remainders
This is exactly the pattern of many construction-type PYQs.
---
Building Special Residues
Suppose
gcd(m,n)=1.
We often want:
- aβ‘1(modm) and aβ‘0(modn)
- bβ‘0(modm) and bβ‘1(modn)
Then for any target remainders
r,s, the number
xβ‘ra+sb(modmn)
satisfies
xβ‘r(modm),xβ‘s(modn)
:::
This is extremely efficient in constructive problems.
---
Euclidean Algorithm Link
π
Why gcd(a,m)=1 gives an inverse
If gcd(a,m)=1, then integers u,v exist such that
au+mv=1
Reducing modulo m gives
auβ‘1(modm)
So u is an inverse of a modulo m.
This is the theoretical reason inverses exist in the coprime case.
---
Common Mistakes
β οΈ
Avoid These Errors
- β Cancelling a coefficient blindly in a congruence
β
Only divide when justified by gcd conditions
- β Assuming every linear congruence has a solution
β
First check
gcd(a,m)β£b
- β Finding one solution and forgetting all solutions modulo m
β
Count and write the complete residue-class answer
- β Mixing up equality and congruence
β
Congruence is modulo a fixed modulus
- β Using CRT without checking coprimality
β
The simplest form needs coprime moduli
---
CMI Strategy
π‘
How to Attack Linear Congruence Questions
- First compute the gcd of the coefficient and modulus.
- Decide solvability before doing anything else.
- Reduce to the coprime case whenever possible.
- Use inverses instead of trial once the reduced congruence is ready.
- For two-modulus construction problems, think in terms of special residues like (1,0) and (0,1).
- Write final answers clearly modulo the correct modulus.
---
Practice Questions
:::question type="MCQ" question="The congruence
5xβ‘1(mod7) has solution" options=["
xβ‘1(mod7)","
xβ‘2(mod7)","
xβ‘3(mod7)","
xβ‘5(mod7)"] answer="C" hint="Find the inverse of
5 modulo
7." solution="Since
5β
3=15β‘1(mod7), the inverse of
5 modulo
7 is
3. Therefore
xβ‘3β
1β‘3(mod7)
Hence the correct option is
Cβ."
:::
:::question type="NAT" question="How many solutions modulo
12 does the congruence
4xβ‘8(mod12) have?" answer="4" hint="Use
gcd(a,m)." solution="Here
gcd(4,12)=4
and
4β£8, so the congruence has solutions. The number of solutions modulo
12 is exactly
gcd(4,12)=4. Hence the answer is
4β."
:::
:::question type="MSQ" question="Which of the following statements are true?" options=["The congruence
axβ‘b(modm) has a solution iff
gcd(a,m)β£b","If
gcd(a,m)=1, then
a has an inverse modulo
m","The congruence
4xβ‘3(mod6) has a solution","If
gcd(a,m)=d and
dβ£b, then
axβ‘b(modm) has exactly
d solutions modulo
m"] answer="A,B,D" hint="Use the standard theory for linear congruences." solution="1. True.
True.
False, because gcd(4,6)=2 and 2β€3.
True.
Hence the correct answer is
A,B,Dβ."
:::
:::question type="SUB" question="Solve
6xβ‘8(mod14)." answer="
xβ‘6,13(mod14)" hint="First divide by the gcd." solution="We have
gcd(6,14)=2
and
2β£8, so solutions exist.
Divide by
2:
3xβ‘4(mod7)
The inverse of
3 modulo
7 is
5, so
xβ‘5β
4=20β‘6(mod7)
Thus modulo
14, the solutions are
xβ‘6,Β 13(mod14)
Hence the complete solution set modulo
14 is
xβ‘6,13(mod14)β."
:::
---
Summary
β
Key Takeaways for CMI
- Solve axβ‘b(modm) by checking gcd(a,m)β£b first.
- If gcd(a,m)=1, multiply by the inverse of a modulo m.
- If d=gcd(a,m) divides b, then there are exactly d solutions modulo m.
- Reducing the congruence by the gcd is the standard method.
- Construction problems with two congruences are often solved using CRT-style special residues.
Chapter Summary
β
Congruences β Key Points
- Congruence Relation: aβ‘b(modn) signifies that n divides (aβb), establishing an equivalence relation that partitions integers into n residue classes.
- Modular Arithmetic Operations: Standard arithmetic operations (addition, subtraction, multiplication, and exponentiation) are well-defined and consistent within modular systems, allowing for simplification of calculations involving large numbers.
- Modular Inverse: An integer a has a multiplicative inverse modulo n, denoted aβ1, if and only if gcd(a,n)=1. The Extended Euclidean Algorithm is essential for computing inverses.
- Linear Congruences: The congruence axβ‘b(modn) has solutions if and only if gcd(a,n) divides b. If this condition holds, there are exactly gcd(a,n) incongruent solutions modulo n.
- Remainder Patterns: Powers of an integer modulo n exhibit cyclic patterns. Understanding these cycles, often through Euler's Totient Theorem or Fermat's Little Theorem, is crucial for evaluating large exponents.
- Fundamental Applications: Congruences are foundational in various areas of number theory, including divisibility tests, cryptography (e.g., RSA), and the study of number theoretic functions.
Chapter Review Questions
:::question type="MCQ" question="What is the remainder when 32023 is divided by 7?" options=["1","2","3","4"] answer="3" hint="Identify the cycle length of powers of 3 modulo 7." solution="We compute the first few powers of 3 modulo 7:
31β‘3(mod7)
32β‘9β‘2(mod7)
33β‘3β
2β‘6(mod7)
34β‘3β
6β‘18β‘4(mod7)
35β‘3β
4β‘12β‘5(mod7)
36β‘3β
5β‘15β‘1(mod7)
The cycle length is 6. We divide the exponent 2023 by 6:
2023=6Γ337+1
Therefore, 32023β‘(36)337β
31β‘1337β
3β‘3(mod7).
The remainder is 3."
:::
:::question type="NAT" question="Find the smallest positive integer x that satisfies 13xβ‘7(mod20)." answer="19" hint="Find the multiplicative inverse of 13 modulo 20 using the Extended Euclidean Algorithm." solution="We need to solve 13xβ‘7(mod20).
First, find the inverse of 13(mod20). Using the Extended Euclidean Algorithm:
20=1β
13+7
13=1β
7+6
7=1β
6+1
Working backwards to express 1 as a linear combination of 13 and 20:
1=7β1β
6
1=7β1β
(13β1β
7)
1=2β
7β1β
13
1=2β
(20β1β
13)β1β
13
1=2β
20β3β
13
So, β3β
13β‘1(mod20).
Since β3β‘17(mod20), the inverse of 13(mod20) is 17.
Now multiply both sides of the congruence by 17:
17β
13xβ‘17β
7(mod20)
1xβ‘119(mod20)
119=5β
20+19, so 119β‘19(mod20).
Thus, xβ‘19(mod20).
The smallest positive integer x is 19."
:::
:::question type="MCQ" question="Which of the following statements about the linear congruence axβ‘b(modn) is FALSE?" options=["If gcd(a,n)=1, then there is a unique solution modulo n.","If gcd(a,n)=d, then solutions exist if and only if dβ£b.","If n is a prime number and aξ β‘0(modn), then a solution always exists.","If gcd(a,n)>1, then there are no solutions."] answer="If gcd(a,n)>1, then there are no solutions." hint="Consider cases where gcd(a,n)>1 but solutions still exist." solution="Let's evaluate each option:
* If gcd(a,n)=1, then there is a unique solution modulo n. This is TRUE. If gcd(a,n)=1, a has a unique inverse aβ1(modn), so xβ‘baβ1(modn) is the unique solution.
* If gcd(a,n)=d, then solutions exist if and only if dβ£b. This is TRUE. This is the fundamental existence condition for linear congruences.
* If n is a prime number and aξ β‘0(modn), then a solution always exists. This is TRUE. If n is prime and aξ β‘0(modn), then gcd(a,n)=1. By the first statement, a unique solution exists.
* If gcd(a,n)>1, then there are no solutions. This is FALSE. For example, consider 2xβ‘2(mod4). Here, gcd(2,4)=2>1. However, 2β£2, so solutions exist. Specifically, x=1 and x=3 are solutions modulo 4. The statement should be: "If gcd(a,n)>1 and gcd(a,n)β€b, then there are no solutions."
Therefore, the false statement is "If gcd(a,n)>1, then there are no solutions.""
:::
:::question type="NAT" question="Find the largest two-digit integer N such that Nβ‘2(mod5) and Nβ‘3(mod7)." answer="87" hint="Formulate a system of congruences and solve for N using substitution or the Chinese Remainder Theorem." solution="We are given the system of congruences:
Nβ‘2(mod5) Nβ‘3(mod7)From (1),
N can be written as
N=5k+2 for some integer
k.
Substitute this into (2):
5k+2β‘3(mod7)5kβ‘1(mod7)To find
k, we need the inverse of
5(mod7). We can see that
5β
3=15β‘1(mod7). So, the inverse of
5(mod7) is 3.
Multiply both sides by 3:
3β
5kβ‘3β
1(mod7)15kβ‘3(mod7)kβ‘3(mod7)So,
k can be written as
k=7j+3 for some integer
j.
Substitute this expression for
k back into the equation for
N:
N=5(7j+3)+2N=35j+15+2N=35j+17We are looking for the largest two-digit integer
N.
If
j=0,
N=17.
If
j=1,
N=35(1)+17=52.
If
j=2,
N=35(2)+17=70+17=87.
If
j=3,
N=35(3)+17=105+17=122, which is a three-digit number.
Thus, the largest two-digit integer
N satisfying the conditions is 87."
:::
What's Next?
π‘
Continue Your CMI Journey
Having mastered the fundamentals of congruences and modular arithmetic, you are now well-equipped to explore more advanced topics in Number Theory. The principles established here are crucial for understanding Diophantine Equations, particularly linear ones, which often translate into linear congruences. You can further extend your knowledge to Systems of Congruences, leading to the powerful Chinese Remainder Theorem. Additionally, modular arithmetic forms the bedrock for Number Theoretic Functions (such as Euler's totient function, which you've seen implicitly for remainder patterns) and the study of Quadratic Residues, paving the way for deeper insights into number properties and their applications in areas like cryptography.