system of algebraic operations defined for remainders under division by a fixed positive integer; system of arithmetic for integers, where numbers "wrap around" upon reaching a certain value—the modulus
In mathematics, modular arithmetic is a system of arithmetic operations for integers, differing from the usual ones in that numbers "wrap around" when reaching or exceeding a certain value, called the modulus. … Wikipedia
🌐
Wikipedia
en.wikipedia.org › wiki › Modular_arithmetic
Modular arithmetic - Wikipedia
2 weeks ago - Given an integer m ≥ 1, called a modulus, two integers a and b are said to be congruent modulo m, if their difference a − b is an integer multiple of m; that is, if there is an integer k such that ... Congruence modulo m is a congruence relation, meaning that it is an equivalence relation ...
Discussions

modular arithmetic - Congruence modulo high power problem - Mathematics Stack Exchange
The question is simple: Find 2^(2014)(mod 11). I literally only found out about congruence modulo yesterday and I cannot think for the life of me how to go about solving this problem. I can obvious... More on math.stackexchange.com
🌐 math.stackexchange.com
November 21, 2017
Congruence modulo Question
The converse of theorems is not always true. More on reddit.com
🌐 r/learnmath
5
2
May 25, 2021
number theory - Proving congruent modulo - Mathematics Stack Exchange
In my book there are three things that I need to prove. First of: $$a \equiv a \pmod n , \forall a \in Z.$$ I tried to prove it this way: $$ a-a = 0$$ $$0 \pmod n = 0$$ Is this correct? Second one... More on math.stackexchange.com
🌐 math.stackexchange.com
notation - Why do we use "congruent to" instead of equal to? - Mathematics Stack Exchange
For example, ElGamal signature ... in the first formula, $r$ really needs to be chosen as the least non-negative representative of its congruence class modulo $p$, while the second formula involves a modular inverse modulo $p-1$. $\endgroup$... More on math.stackexchange.com
🌐 math.stackexchange.com
August 14, 2015
🌐
Reddit
reddit.com › r/explainlikeimfive › eli5: how does a congruence modulo work?
r/explainlikeimfive on Reddit: ELI5: How does a congruence modulo work?
July 20, 2020 -

I think I understand the basics of the modulo function. Assuming modulo 3 when counting up you'd go 0 > 1 > 2 > 0 ...

But then I see this equation:

a ≡ b (mod n)

And have trouble understanding it. I'm pretty sure it means that a and b have a congruent relationship when a modulo function of n is applied to them. But I'm not sure if this is correct, and what a congruent relationship is.

Thanks!

Top answer
1 of 3
1
I'm pretty sure it means that a and b have a congruent relationship when a modulo function of n is applied to them Yes, that's correct. All that means is that if you take a and b and remove as many factors of n as possible from each one, you get the same thing. For example, 1 ≡ 3 (mod 2) and 9 ≡ 5 (mod 4).
2 of 3
1
So, a ≡ b (mod n) simply means that (a-b) is divisible by n. This is equivalent to saying that if you apply the modulo n function to both a and b then you get the same result. You can easily check and see that this relation has three properties: If a ≡ b (mod n) then b ≡ a (mod n), because b-a is also divisible by n. This is called symmetry. a ≡ a (mod n) for every a, because a-a is always divisible by n. This is called reflexivity. If a ≡ b (mod n) and b ≡ c (mod n) then a ≡ c (mod n), because c-a = (c-b)-(a-b) which is divisible by n. This is called transitivity. A relation that has these three properties is called a equivalence relation. Why? Because it means that if two elements are in relation to each other, then they are "equivalent" in regards to that relation. Another cool thing is that when you an equivalence relation, you can group the elements into equivalence classes - divide all the elements into sets so that two elements are in the same set if and only if they are equivalent. Now, the modulo relation has another cool property - it preserves the algebraic operations. If a ≡ b (mod n) and c ≡ d (mod n) then a+c ≡ b+d (mod n), and the same goes for multiplication. In this case, the relation is called a congruence relation. This means that if you want to calculate (a+b) (mod n) then you can calculate a (mod n) + b (mod n) and apply (mod n) to that, and you'll get the same result.
🌐
UBC Math
personal.math.ubc.ca › ~PLP › book › sec-congruence.html
Congruence modulo n
Thus being congruent modulo 2 implies that they have the same parity. ... Now assume that \(a,b\) have the same parity. Then either they are both even or they are both odd. When \(a,b\) are both even, we can write \(a=2k, b=2\ell\) and so \(a-b = 2(k-\ell)\text{.}\) ... In both cases the difference \(a-b\) is divisible by 2 and so \(a \equiv b \mod 2\) as required. ... Perhaps the main reason that congruence modulo \(m\) is so important is that congruence interacts very nicely with basic arithmetic operations.
🌐
Whitman College
whitman.edu › mathematics › higher_math_online › section03.01.html
3.1 Congruence
As with so many concepts we will see, congruence is simple, perhaps familiar to you, yet enormously useful and powerful in the study of number theory. If $n$ is a positive integer, we say the integers $a$ and $b$ are congruent modulo $n$, and write $a\equiv b\pmod n$, if they have the same remainder on division by $n$. (By remainder, of course, we mean the unique number $r$ defined by the Division Algorithm.)
🌐
University of Washington
sites.math.washington.edu › › ~greenber › Congruences.pdf pdf
BASIC PROPERTIES OF CONGRUENCES
BASIC PROPERTIES OF CONGRUENCES · The letters a, b, c, d, k represent integers. The letters m, n represent positive integers. The · notation a ≡b (mod m) means that m divides a −b. We then say that a is congruent to b · modulo m. 1. (Reflexive Property): a ≡a (mod m) 2.
Find elsewhere
🌐
American Institute of Mathematics
aimath.org › news › congruentnumbers › modulo.html
Basics about congruences and "modulo"
We say integers a and b are "congruent modulo n" if their difference is a multiple of n. For example, 17 and 5 are congruent modulo 3 because 17 - 5 = 12 = 4⋅3, and 184 and 51 are congruent modulo 19 since 184 - 51 = 133 = 7⋅19. We often write this as 17 ≡ 5 mod 3 or 184 ≡ 51 mod 19.
🌐
Carnegie Mellon University
math.cmu.edu › ~jmackey › summer › congruences.pdf pdf
21-128 Congruences Definitions of congruence
let a1, . . . , ar, c1, . . . , cr ∈Z and n1, . . . , nr ∈N, and consider the system of congruences ... Let di = gcd(ai, ni) for each 1 ≤i ≤r. If: ... Fermat’s little theorem. Let a ∈Z and let p ∈N be prime. If p ∤a then ap−1 ≡1 mod p. Proof strategy. Consider the list 1, 2, . . . , p −1. First prove that the list a, 2a, . . . , (p −1)a is the · same list (modulo p), just rearranged; it then follows that
🌐
Mathematics LibreTexts
math.libretexts.org › campus bookshelves › mount royal university › higher arithmetic › 3: modular arithmetic
3.1: Modulo Operation - Mathematics LibreTexts
November 22, 2024 - \(a\) is congruent to \(b\) modulo \(m\) denoted as \( a \equiv b (mod \, n) \), if \(a\) and \(b\) have the remainder when they are divided by \(n\), for \(a, b \in \mathbb{Z}\).
🌐
UCI Mathematics
math.uci.edu › ~ndonalds › math180a › 3congruence.pdf pdf
3 Congruences and Congruence Equations
only 17 distinct values of x to try, the congruence has a maximum of 17 solutions, not 39. Before proving Lagrange’s Theorem, we need one additional ingredient. Lemma 3.19 (Factor Theorem in Z[x]). Suppose f (x) is a polynomial with integer coefficients and · that c ∈Z. Then there exists a unique polynomial q(x), also with integer coefficients, such that ... Moreover, f (c) = 0 if and only if (x −c) is a factor of f (x). This is also true modulo any n.
🌐
Wolfram MathWorld
mathworld.wolfram.com › Congruence.html
Congruence -- from Wolfram MathWorld
June 6, 2024 - If two numbers b and c have the property that their difference b-c is integrally divisible by a number m (i.e., (b-c)/m is an integer), then b and c are said to be "congruent modulo m." The number m is called the modulus, and the statement "b ...
Top answer
1 of 2
1

Fermat's Little Theorem states that

If $n \in \mathbb N$, $p$ is a prime, and $p \not | \space \space n$ then $n^{p-1} \equiv1\pmod p$

If $n \in \mathbb N$, $p$ is a prime, then $n^p \equiv n \pmod p$

We have:

\begin{align} 2^{2014} = 2^{11\cdot183 + 1} \end{align}

Then, by the definition,

\begin{align} 2^{2014} & = 2^{11\cdot 183+1} \\ 2^{11\cdot 183+1} &\equiv 2^{183+1} \pmod {11}\\ \end{align}

\begin{align} 2^{183+1} &= 2^{184} \\ 2^{184} & = 2^{11\cdot {16} + 8} \\ 2^{11\cdot {16} + 8} &\equiv 2^{16+8} \pmod {11}\\ \end{align}

\begin{align} 2^{16+8} &= 2^{24} \\ 2^{24} & = 2^{11\cdot {2} + 2} \\ 2^{11\cdot {2} + 2} &\equiv 2^{2+2} \pmod {11}\\ \end{align}

We can easily see that $2^4 = 16$. Thus $2^{2014} \equiv 5 \pmod{11}$.

Alternatively, using the second part of the theorem,

We have:

\begin{align} 2^{2014}=2^{10\cdot 201 + 4} & \equiv 2^{4} \pmod {11} \\ \implies 2^{2014} \equiv 16 &\equiv 5 \pmod {11} \\ \end{align}

Notice that $2^{10\cdot 201}$ is equivalent to $0 \pmod {11}$. Thus, we can just eliminate it. I believe these two methods of solving the problem are equally correct. Hopefully you can see what I have manipulated to get an answer.

2 of 2
0

Let $\mathcal{U}_{11}$ be the set of integers coprime to $11$. Then, since $11$ is prime we have $$\mathcal{U}_{11}=\{1,2,3,4,5,6,7,8,9,10\}.$$

Let's write the first few powers of $2$ mod $11$, I'll represent the operation of multiplying by $2$ by arrows. Starting from $2^0$ we have

$$1 \rightarrow 2 \rightarrow 4 \rightarrow 8 \rightarrow 5 \rightarrow 10 \rightarrow 9 \rightarrow 7 \rightarrow 3 \rightarrow 6...$$ before repeating since we've seen every element in $\mathcal{U}_{11}$.

So, we see that after every multiple of ten entries in the sequence, we get back to $1$, that is $2^{10m}=1$. Let $m=201$, then $2^{2010}=1$. From here, we observe we just have another $4$ entries to go until we get to the $2014^{th}$ power. Just count $4$ along the sequence to give us $$2^{2014}=5.$$

🌐
Reddit
reddit.com › r/learnmath › congruence modulo question
r/learnmath on Reddit: Congruence modulo Question
May 25, 2021 -

If a is an integer, then a^2 is congruent to 0,1 or 4 modulo 5. Then wat about the case of 21. 21 is congruent to 1 modulo 5, but 21 is not a perfect square. Why is this?

🌐
University of Southampton
southampton.ac.uk › ~wright › 1001 › congruences.html
5.1 Congruences | MATH1001 Introduction to Number Theory
We say that \(a\) is congruent to \(b\text{ mod }(n)\), or \(a\) is a residue of \(b\text{ mod }(n)\), and we write \[a\equiv b\text{ mod }(n)\,,\] if \(a\) and \(b\) leave the same remainder when divided by \(n\). The number \(n\) is referred to as the modulus and the arithmetic of congruences, which we shall describe shortly, is called modular arithmetic.
🌐
Math Celebrity
mathcelebrity.com › home › subjects › discrete math calculators . › congruence modulo n
Congruence Modulo n Calculator
July 4, 2007 - Congruence Modulo n Calculator: Free Congruence Modulo n Calculator - Given a possible congruence relation a ≡ b (mod n), this determines if the relation holds true (b is congruent to c modulo n).
🌐
Quora
quora.com › What-is-the-congruence-modulo-theorem
What is the congruence modulo theorem? - Quora
Answer: with so many concepts we will see, congruence is simple, perhaps familiar to you, yet enormously useful and powerful in the study of number theory. If � is a positive integer, we say the integers � and � are congruent modulo �, and ...
🌐
CompSciLib
compscilib.com › calculate › iscongruencemod
Congruence Modulo Calculator | Computer Science | CompSciLib
Use this Congruence Modulo N Online Calculator for your discrete math mod problems! This modulo congruence calculator makes it easy to verify congruent modulo calculations. This tool also comes with detailed learn sections, step-by-step solutions, & practice problems!
Top answer
1 of 2
1

That depends on your definition of the remainder, which in turn depends on a definition of 'integer division'.

It's quite easy for positive numbers: the result of division is the largest integer not exceeding the exact result. For example 5/8 = 0. Then the remainder is 5–8*(8/5) = 5–8*0 = 5.

For negative numbers, however, a problem appears with a meaning of 'the largest'. One can assume it is the value largest with respect to its absolute value, i.e. the result is rounded towards zero (some programming languages work this way); then the integer division (–5)/8 results in –0=0, and the remainder is –5.
Or one can take literally the largest value, in which case (–5)/8=–1 and then the remainder is 3.

2 of 2
0

A quick answer is that when we work with modulo n and you are using the following definition:

two numbers, namely a and b, are congruent modulo n <=> a%n = b%n

We have to consider the same criteria in order for them to be equal, and that is, to consider a remainder of the same sign as the divisor.

The long answer involves some group theory in there. It is not easy to sumarize in a few words, but can be simply explained, using the example you have provided along the way. First, we will consider the group of remainders modulo, that is, a set of posible positive remainders when a integer is divided by n. Through the perspective of the group, -3 and 5 are the same element, because -3 + 8 = 5.

P.D.: I advise you from reading that book if such definition was given, such vague definitions are misleading and not rigorous in mathematics. By the way, if you want a good book about number theory I recommend: H. Rosen, Kenneth, Elementary Number Theory, Fifth Edition, Pearson ISBN-0-321-26314-6