Number Theory for Cryptography
- 60Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
60 questions
- 1The number-theory topics emphasized for computer science are modular arithmetic, properties of prime numbers, and algorithms related to_____.
Hint
Think of the common divisor algorithm that is especially useful in cryptography.
Answer
GCD
- 2The operation described as especially central to cryptographic algorithms is modular_____.
Hint
It involves computing powers while repeatedly reducing by a modulus.
Answer
exponentiation
- 3In the expression amodN, the positive integer N is called the_____.
Hint
It determines the possible remainder values.
Answer
modulus
- 4For a positive modulus N, the remainder r in amodN=r must lie in the range_____.
Hint
The remainder begins at zero and cannot reach the modulus itself.
Answer
0 to N−1
- 5The division relationship defining amodN=r is that a equals a quotient times N plus_____.
Hint
This is the part left over after division by the modulus.
Answer
the remainder r
- 6The value of 5mod4 is_____.
Hint
Write 5 as a multiple of 4 plus a valid remainder.
Answer
1
- 7The value of −11mod3 under the required nonnegative-remainder convention is_____.
Hint
Use −11=(−4)⋅3+r and require r to be between 0 and 2.
Answer
1
- 8The reason −2 is not accepted as the remainder for −11mod3 is that remainders must be in the range_____.
Hint
The convention excludes negative remainders.
Answer
0 to N−1
- 9A useful visualization of modular arithmetic is a clock with_____marks.
Hint
The number of marks corresponds to the modulus.
Answer
N
- 10When visualizing modular arithmetic on the clock, positive values are counted in the clockwise direction, while negative values are counted in the_____direction.
Hint
Negative movement reverses the direction used for positive values.
Answer
anti-clockwise
- 11The notation a≡b(modN) means that a and b produce the same_____when divided by N.
Hint
Congruent numbers occupy the same position on the modular clock.
Answer
remainder
- 12The statement a≡b(modN) holds if and only if a−b is completely_____by N.
Hint
The difference must have remainder zero modulo N.
Answer
divisible
- 13If amodN=a′ and bmodN=b′, then (a+b)modN equals_____.
Hint
Reduce each operand first, then add and reduce if necessary.
Answer
(a′+b′)modN
- 14If amodN=a′ and bmodN=b′, then (a−b)modN equals_____.
Hint
The subtraction rule has the same reduce-first structure as addition.
Answer
(a′−b′)modN
- 15If amodN=a′ and bmodN=b′, then (ab)modN equals_____.
Hint
Replace both factors with their remainders before multiplying.
Answer
(a′b′)modN
- 16To prove the modular addition rule, the numbers a and b are expressed in the forms a=qN+_____and b=q′N+b′.
Hint
Use the remainder of a modulo N.
Answer
a′
- 17When a multiple of N is divided by N, its remainder is_____.
Hint
A number divisible by the modulus leaves nothing over.
Answer
0
- 18The reduce-first interpretation of modular arithmetic says that operands can be reduced before performing addition, subtraction, or_____.
Hint
These are the three basic arithmetic operations covered by the rules.
Answer
multiplication
- 19Reducing operands before an operation is computationally useful because it replaces potentially large values with remainders in the range_____.
Hint
This is the standard range for modular remainders.
Answer
0 to N−1
- 20In the example involving modulus 100, the reduced values of the two operands are 28 and_____.
Hint
The lecture says the second operand reduces to a one-digit value.
Answer
1
- 21The result of multiplying the reduced operands 28 and 1 modulo 100 is_____.
Hint
The product is already less than the modulus.
Answer
28
- 22Unlike addition, subtraction, and multiplication, modular_____is not always well defined.
Hint
The issue arises because dividing two integers can produce a fraction.
Answer
division
- 23The expression a/bmodN may fail to be well defined because a/b may be a_____rather than an integer.
Hint
Consider the case where a is not evenly divisible by b.
Answer
fraction
- 24For a=3, b=5, and N=4, the reduced values are a′=3 and b′=_____.
Hint
Compute 3mod4 and 5mod4.
Answer
1
- 25For a=3, b=5, and N=4, the expression 3/1mod4 equals_____.
Hint
First calculate 3/1, then take its remainder modulo 4.
Answer
3
- 26For a=3, b=5, and N=4, the expression 3/5mod4 is not well defined because 3/5=_____.
Hint
Perform the ordinary division before considering the modulus.
Answer
0.6
- 27From ac≡bc(modN), one cannot always conclude that a≡b(modN) because modular_____is not always valid.
Hint
This would involve removing the common factor c from both sides.
Answer
cancellation
- 28The inputs to the modular arithmetic algorithms discussed are a, b, and the_____N.
Hint
This is the value used for reduction.
Answer
modulus
- 29The complexity of these algorithms is measured by the number of operations as a function of the number of_____needed to represent the inputs.
Hint
The parameter is the representation size rather than the numerical magnitude alone.
Answer
bits
- 30If a, b, and N are n-bit integers, an efficient algorithm should use a number of operations that is a_____function of n.
Hint
This is the preferred running-time category in the lecture.
Answer
polynomial
- 31The lecture states that algorithms with_____or sub-exponential running time in the number of bits are not preferred.
Hint
This growth rate becomes infeasible as bit length increases.
Answer
exponential time
- 32Addition, subtraction, and modular multiplication can all be performed using a number of bit operations that is_____in n.
Hint
These basic operations meet the desired efficiency standard.
Answer
polynomial
- 33The naive method for computing abmodN repeatedly multiplies by a, reducing modulo N after each modular_____.
Hint
The method repeats the same operation approximately b times.
Answer
multiplication
- 34The naive exponentiation method performs approximately b−1 modular_____.
Hint
Starting with one copy of a, each additional factor requires one multiplication.
Answer
multiplications
- 35Although one modular multiplication is polynomial in n, repeating it b times is not polynomial in the bit length because b can have magnitude as large as_____.
Hint
An n-bit integer can represent values exponentially larger than n.
Answer
2n
- 36When n=1024, the naive method may require a number of repetitions on the order of_____.
Hint
Substitute 1024 for the bit length in the exponential bound.
Answer
21024
- 37The naive algorithm for modular exponentiation is classified as an_____-time algorithm.
Hint
Its running time depends exponentially on the exponent's bit length.
Answer
exponential
- 38The efficient method introduced for modular exponentiation is called the_____approach.
Hint
Its name describes compulsory squaring and optional multiplication.
Answer
square and multiply
- 39For basic modular arithmetic, the bit representations of the operands are processed bit by bit while taking care of the_____.
Hint
This value may propagate from one bit position to the next during addition.
Answer
carry
- 40The square-and-multiply method reduces the number of modular multiplications for the example a53 from 52 to_____.
Hint
This is the specific improvement stated in the lecture.
Answer
9
- 41The exponent 53 has binary representation_____.
Hint
The set bits correspond to the powers 1, 4, 16, and 32.
Answer
110101
- 42The powers of a accumulated when computing a53 from its binary representation are a1, a4, a16, and_____.
Hint
These powers correspond to the positions containing 1 in 110101.
Answer
a32
- 43In square and multiply, a bit equal to 1 means that the corresponding power of a is_____into the accumulator.
Hint
A set bit contributes its associated power to the final product.
Answer
accumulated
- 44In square and multiply, a bit equal to 0 means that the corresponding power of a is_____from the accumulator.
Hint
A zero bit contributes no factor to the exponent's binary sum.
Answer
excluded
- 45The exponent is processed from the least significant bit to the most significant bit, abbreviated_____to MSB.
Hint
This abbreviation names the bit with the smallest place value.
Answer
LSB
- 46Starting with a1, repeatedly squaring produces the sequence a2, a4, a8, a16, and_____.
Hint
Each step doubles the exponent.
Answer
a32
- 47Every squaring and accumulation operation in the square-and-multiply method is performed modulo_____.
Hint
The same value is used to reduce every intermediate result.
Answer
N
- 48The accumulator variable stores the algorithm's_____result as the iterations proceed.
Hint
It is updated until all exponent bits have been processed.
Answer
final
- 49Each iteration of square and multiply includes a compulsory squaring and an optional_____update.
Hint
The optional step depends on whether the current exponent bit is 0 or 1.
Answer
accumulation
- 50The optional accumulation is triggered when the current bit of the exponent is_____.
Hint
A set binary bit indicates that its corresponding power contributes to the exponent.
Answer
1
- 51If the exponent has n bits, the algorithm performs exactly n compulsory_____operations.
Hint
There is one such operation for each exponent bit.
Answer
squaring
- 52In the worst case, when all n exponent bits are 1, square and multiply performs at most_____modular multiplications.
Hint
Count n compulsory squarings plus up to n optional accumulations.
Answer
2n
- 53In the pseudocode, the variable y serves as the_____.
Hint
It stores the result being built from selected powers.
Answer
accumulator
- 54In the pseudocode, the variable z stores the successive_____of a.
Hint
It changes through squaring as the algorithm advances.
Answer
powers
- 55To obtain the next bit of the exponent in the pseudocode, the algorithm repeatedly divides the exponent and records whether the_____is 0 or 1.
Hint
Division by 2 reveals the least significant binary bit.
Answer
remainder
- 56The pseudocode continues processing exponent bits until the exponent becomes_____.
Hint
The loop stops after all remaining binary bits have been removed.
Answer
nonzero
- 57The pseudocode checks whether xmod2 is 1 to determine whether the current exponent value is_____.
Hint
Odd integers have remainder 1 when divided by 2.
Answer
odd
- 58After processing the current bit, dividing x by 2 obtains the_____bit of the exponent.
Hint
This operation shifts attention from the current least significant bit toward the more significant bits.
Answer
next
- 59The conditional update in the pseudocode multiplies the current accumulator by the current power of the_____.
Hint
The base is the number being raised to the exponent.
Answer
base
- 60The overall purpose of square and multiply is to compute axmodN in_____time with respect to the bit length.
Hint
It avoids a number of multiplications proportional to the numerical value of the exponent.
Answer
polynomial

Ask anything
We've read this whole study set, so questions about it get the best answers.