Modular Arithmetic Flashcards
(5 cards)
1
Q
What is congruence?
A
A and B have the same remainder.
3/2 r1
5/2 r1
2
Q
What does this symbol ≡ mean?
A
congruent/congruence
3
Q
Perform the calculation for 325 x 114 (mod 41).
A
Step 1: 37050/41 = 903.6
As we’ve proved it’s not an integer we’ll know there’s a remainder
2: 903 x 41 = 37023
times the integer number by the mod number given ‘41’
3: 37050 - 37023 = 27
*this gives our answer *
4
Q
Perform the calculation (43-18) mod 7
A
1: 25 mod 7 so would be 25/7 = 3.57…
2: 3 x 7 = 21
3: 25 -21
= 4
5
Q
How would you work out multiplicative inverse for 4 mod 7?
A
4 can’t be divided by 7 so simply x 4 until 7 can go into that number.
1x 4 = 4
2x 4 = 8
So 2 would be the multiplicative inverse.