Theory and Cryptography (Flashcards
with solutions) Exam Questions with
Answers
2.3.3: Computing div and mod.
-10 mod 5 - Correct Answers: 0
Starting with -10, when 5 is added 2 times to -10, the result is 0, which is in the range from 0 through 4.-
10 + 2 · 5 = 0-10 = -2 · 5 + 0
2.3.3: Computing div and mod.
-13 mod 6 - Correct Answers: 5
Starting with -13, when 6 is added 3 times to -13, the result is 5, which is in the range from 0 through 5.-
13 + 3 · 6 = 5-13 = -3 · 6 + 5
2.3.3: Computing div and mod.
-13 div 6 - Correct Answers: -3
Starting with -13, 6 is added 3 times until the result yields a number in the range from 0 through 5.-13 +
3 · 6 = 5-13 = -3 · 6 + 5
2.3.1: Compute divisor and modulus.
344 mod 5 - Correct Answers: 4
344 = 68·5 + 4, so 344 mod 5 = 4.
2.3.1: Compute divisor and modulus.
344 div 5 - Correct Answers: 68
344 = 68·5 + 4, so 344 div 5 = 68.
2.3.1: Compute divisor and modulus.
,(-215) mod 7 - Correct Answers: 2
(−215) = (−31)·7 + 2, so (−215) mod 7 = 2.
2.3.1: Compute divisor and modulus.
(-215) div 7 - Correct Answers: -31
(−215) = (−31)·7 + 2, so (−215) div 7 = −31.
Lesson 2.5.2 Computing arithmetic expressions modulo n.
(43¹⁷+32*130) mod n 7 - Correct Answers: 4
The value of the expression (43¹⁷+32*139) mod 7 does not change if 43, 32, and 139 are replaced by 43
mod 7, 32 mod 7, and 139 mod 7.
The value of the expression is therefore (1¹⁷+4*6) mod 7.
(43¹⁷+32*139) mod 7 is equal to (1+24) mod 7=25 mod 7=4
2.5.3: Computing arithmetic expressions modulo n.
(651²³ + 17) mod 10 - Correct Answers: 8
651 mod 10 = 1. Therefore,
(651²³ + 17) mod 10
= (1²³ + 17) mod 10
= (1 + 17) mod 10
=8
2.5.1: Compute expression using modular arithmetic.
[(47 mod 6) + (36 mod 6)] mod 6 - Correct Answers: 5
2.5.1: Compute expression using modular arithmetic
[(34 mod 6 )(72 mod 6)] mod 6 - Correct Answers: 0
2.5.1: Compute expression using modular arithmetic.
,[27 · 70] mod 7 - Correct Answers: 0
2.5.1: Compute expression using modular arithmetic
[26¹⁹ + 13] mod 5 - Correct Answers: 4
2.5.1: Computing using modular arithmetic
38⁷ mod 3 - Correct Answers: 2
387 mod 3 = (38 mod 3)7 mod 3 = (27) mod 3 = 128 mod 3 = 2
2.5.1: Computing using modular arithmetic
(72 · (−65) + 211) mod 7 - Correct Answers: 4
(72 · (−65) + 211) mod 7 = ((72 mod 7) · (−65 mod 7) + (211 mod 7)) mod 7 =
(2 · 5 + 1) mod 7 = 11 mod 7 = 4
2.5.1: Computing using modular arithmetic
(77 · (−65) + 147) mod 7 - Correct Answers: 0
(77 · (−65) + 147) mod 7 = ((77 mod 7) · (−65) + (147 mod 7)) mod 7 =
(0 · (−65) + 0) mod 7 = 0
2.5.2: Congruence modulo n
Group the numbers from the given set into classes of congruence. That is, put two numbers in the same
group if they are equivalent modulo 11.
{−57, 17, 108, 0, −110, −93, 1111, 130, 232} - Correct Answers: Congruent to 0 modulo 11: 0, -110, 1111
Congruent to 1 modulo 11: 232
Congruent to 6 modulo 11: 17, -93
Congruent to 9 modulo 11: -57, 108, 130
2.5.2: Congruence modulo n
, Group the numbers from the given set into classes of congruence. That is, put two numbers in the same
group if they are equivalent modulo 13.
{−63, -54, -41, 11, 13, 76, 80, 130, 132, 137} - Correct Answers: Congruent to 0 modulo 13: 13, 130
Congruent to 2 modulo 13: -63, 80, 132
Congruent to 7 modulo 13: 137
Congruent to 11 modulo 13: -54, -41, 11, 7
2.7.1: Prime factorizations
What is the prime factorization for 48 in exponential form? - Correct Answers: 2⁴ * 3 = 48. Also, 2 and 3
are both prime numbers.
2.7.1: Prime factorizations
What is the prime factorization for 31? - Correct Answers: 31
31 is a prime number, so its prime factorization is itself.
2.7.1: Prime factorizations.
In which prime factorization are the prime factors listed in non-decreasing order?
2·7·13·11
2·7·11·13
7·2·11·13 - Correct Answers: 2·7·11·13
Each prime factor is greater than or equal to the one that precedes it.
2.8.1: GCD and LCM from prime factorizations.
LCM(924, 33075) in exponential form
924 = 2² * 3¹ * 5⁰ * 7¹ * 11¹
33075 = 2⁰ * 3³ * 5² * 7² * 11⁰ - Correct Answers: 2² * 3³ * 5² * 7² * 11¹ = 1455300
The LCM is obtained by taking the larger of the exponents of each prime from 924 and 33075, which
results in LCM(924,33075) = 2² * 3³ * 5² * 7² * 11¹ = 1455300
2.8.1: GCD and LCM from prime factorizations.