Modular Arithmetic

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/7

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

8 Terms

1
New cards

For integers a, b and n > 0, what does a ≡ b (mod n) mean?

a and b leave the same remainder when divided by n

2
New cards

How can ‘a and b leave the same remainder when divided by n’ be written formally?

n | (a − b) (a - b is divisible by n)

3
New cards

What are the properties of congruence if a ≡ b (mod n) and c ≡ d (mod n)?

Addition: a + c ≡ b + d (mod n)

Subtraction: a − c ≡ b − d (mod n)

Multiplication: ac ≡ bd (mod n)

4
New cards

What does ax ≡ b (mod n) mean?

when ax is divided by n, it leaves the same remainder as b

5
New cards

When does ax ≡ b (mod n) have a solution?

Iff hcf(a, n) | b which is the rule that tells you whether its solvable or not e.g. if hcf(a, n) = 1 then there’s exactly one solution mod n

6
New cards

Why does hcf(a, n) = 1 mean there’s only 1 solution?

Because Bézout’s Lemma guarantees integers x, y such that ax + ny = 1 so x acts as a multiplicative inverse of a mod n. We can multiply both sides of the congruence by that inverse to isolate x

7
New cards

What is the Chinese Remainder Theorem?

If the moduli n1, n2, …, nk are pairwise coprime (no common factors other than 1), then the system:

x = a1 (mod n1)

x = a2 (mod n2)

x = ak (mod nk)

Has exactly 1 solution N = n1n2…nk.

(If the moduli don’t “interfere” with each other (they’re coprime), you can combine several modular equations into one single equivalent equation)

8
New cards

What is Fermat’s Little Theorem?

If p is prime and a is not divisible by p, then: ap−1 ≡ 1 (mod p)