1. Home
  2. Explore
  3. Computer Science
  4. Number Theory for Cryptography

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Number Theory for Cryptography

  • 60Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Modular Foundations
The number-theory topics emphasized for computer science are modular arithmetic, properties of prime numbers, and algorithms related to
.

60 questions

  1. 1
    The 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

  2. 2
    The operation described as especially central to cryptographic algorithms is modular
    _____
    .
    Hint

    It involves computing powers while repeatedly reducing by a modulus.

    Answer

    exponentiation

  3. 3
    In the expression a mod Na \bmod NamodN, the positive integer NNN is called the
    _____
    .
    Hint

    It determines the possible remainder values.

    Answer

    modulus

  4. 4
    For a positive modulus NNN, the remainder rrr in a mod N=ra \bmod N = ramodN=r must lie in the range
    _____
    .
    Hint

    The remainder begins at zero and cannot reach the modulus itself.

    Answer

    000 to N−1N-1N−1

  5. 5
    The division relationship defining a mod N=ra \bmod N = ramodN=r is that aaa equals a quotient times NNN plus
    _____
    .
    Hint

    This is the part left over after division by the modulus.

    Answer

    the remainder rrr

  6. 6
    The value of 5 mod 45 \bmod 45mod4 is
    _____
    .
    Hint

    Write 555 as a multiple of 444 plus a valid remainder.

    Answer

    111

  7. 7
    The value of −11 mod 3-11 \bmod 3−11mod3 under the required nonnegative-remainder convention is
    _____
    .
    Hint

    Use −11=(−4)⋅3+r-11 = (-4)\cdot 3 + r−11=(−4)⋅3+r and require rrr to be between 000 and 222.

    Answer

    111

  8. 8
    The reason −2-2−2 is not accepted as the remainder for −11 mod 3-11 \bmod 3−11mod3 is that remainders must be in the range
    _____
    .
    Hint

    The convention excludes negative remainders.

    Answer

    000 to N−1N-1N−1

  9. 9
    A useful visualization of modular arithmetic is a clock with
    _____
    marks.
    Hint

    The number of marks corresponds to the modulus.

    Answer

    NNN

  10. 10
    When 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

  11. 11
    The notation a≡b(modN)a \equiv b \pmod Na≡b(modN) means that aaa and bbb produce the same
    _____
    when divided by NNN.
    Hint

    Congruent numbers occupy the same position on the modular clock.

    Answer

    remainder

  12. 12
    The statement a≡b(modN)a \equiv b \pmod Na≡b(modN) holds if and only if a−ba-ba−b is completely
    _____
    by NNN.
    Hint

    The difference must have remainder zero modulo NNN.

    Answer

    divisible

  13. 13
    If a mod N=a′a \bmod N = a'amodN=a′ and b mod N=b′b \bmod N = b'bmodN=b′, then (a+b) mod N(a+b) \bmod N(a+b)modN equals
    _____
    .
    Hint

    Reduce each operand first, then add and reduce if necessary.

    Answer

    (a′+b′) mod N(a'+b') \bmod N(a′+b′)modN

  14. 14
    If a mod N=a′a \bmod N = a'amodN=a′ and b mod N=b′b \bmod N = b'bmodN=b′, then (a−b) mod N(a-b) \bmod N(a−b)modN equals
    _____
    .
    Hint

    The subtraction rule has the same reduce-first structure as addition.

    Answer

    (a′−b′) mod N(a'-b') \bmod N(a′−b′)modN

  15. 15
    If a mod N=a′a \bmod N = a'amodN=a′ and b mod N=b′b \bmod N = b'bmodN=b′, then (ab) mod N(ab) \bmod N(ab)modN equals
    _____
    .
    Hint

    Replace both factors with their remainders before multiplying.

    Answer

    (a′b′) mod N(a'b') \bmod N(a′b′)modN

  16. 16
    To prove the modular addition rule, the numbers aaa and bbb are expressed in the forms a=qN+a=qN+a=qN+
    _____
    and b=q′N+b′b=q'N+b'b=q′N+b′.
    Hint

    Use the remainder of aaa modulo NNN.

    Answer

    a′a'a′

  17. 17
    When a multiple of NNN is divided by NNN, its remainder is
    _____
    .
    Hint

    A number divisible by the modulus leaves nothing over.

    Answer

    000

  18. 18
    The 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

  19. 19
    Reducing 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

    000 to N−1N-1N−1

  20. 20
    In the example involving modulus 100100100, the reduced values of the two operands are 282828 and
    _____
    .
    Hint

    The lecture says the second operand reduces to a one-digit value.

    Answer

    111

  21. 21
    The result of multiplying the reduced operands 282828 and 111 modulo 100100100 is
    _____
    .
    Hint

    The product is already less than the modulus.

    Answer

    282828

  22. 22
    Unlike addition, subtraction, and multiplication, modular
    _____
    is not always well defined.
    Hint

    The issue arises because dividing two integers can produce a fraction.

    Answer

    division

  23. 23
    The expression a/b mod Na/b \bmod Na/bmodN may fail to be well defined because a/ba/ba/b may be a
    _____
    rather than an integer.
    Hint

    Consider the case where aaa is not evenly divisible by bbb.

    Answer

    fraction

  24. 24
    For a=3a=3a=3, b=5b=5b=5, and N=4N=4N=4, the reduced values are a′=3a'=3a′=3 and b′=b'=b′=
    _____
    .
    Hint

    Compute 3 mod 43 \bmod 43mod4 and 5 mod 45 \bmod 45mod4.

    Answer

    111

  25. 25
    For a=3a=3a=3, b=5b=5b=5, and N=4N=4N=4, the expression 3/1 mod 43/1 \bmod 43/1mod4 equals
    _____
    .
    Hint

    First calculate 3/13/13/1, then take its remainder modulo 444.

    Answer

    333

  26. 26
    For a=3a=3a=3, b=5b=5b=5, and N=4N=4N=4, the expression 3/5 mod 43/5 \bmod 43/5mod4 is not well defined because 3/5=3/5=3/5=
    _____
    .
    Hint

    Perform the ordinary division before considering the modulus.

    Answer

    0.60.60.6

  27. 27
    From ac≡bc(modN)ac \equiv bc \pmod Nac≡bc(modN), one cannot always conclude that a≡b(modN)a \equiv b \pmod Na≡b(modN) because modular
    _____
    is not always valid.
    Hint

    This would involve removing the common factor ccc from both sides.

    Answer

    cancellation

  28. 28
    The inputs to the modular arithmetic algorithms discussed are aaa, bbb, and the
    _____
    NNN.
    Hint

    This is the value used for reduction.

    Answer

    modulus

  29. 29
    The 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

  30. 30
    If aaa, bbb, and NNN are nnn-bit integers, an efficient algorithm should use a number of operations that is a
    _____
    function of nnn.
    Hint

    This is the preferred running-time category in the lecture.

    Answer

    polynomial

  31. 31
    The 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

  32. 32
    Addition, subtraction, and modular multiplication can all be performed using a number of bit operations that is
    _____
    in nnn.
    Hint

    These basic operations meet the desired efficiency standard.

    Answer

    polynomial

  33. 33
    The naive method for computing ab mod Na^b \bmod NabmodN repeatedly multiplies by aaa, reducing modulo NNN after each modular
    _____
    .
    Hint

    The method repeats the same operation approximately bbb times.

    Answer

    multiplication

  34. 34
    The naive exponentiation method performs approximately b−1b-1b−1 modular
    _____
    .
    Hint

    Starting with one copy of aaa, each additional factor requires one multiplication.

    Answer

    multiplications

  35. 35
    Although one modular multiplication is polynomial in nnn, repeating it bbb times is not polynomial in the bit length because bbb can have magnitude as large as
    _____
    .
    Hint

    An nnn-bit integer can represent values exponentially larger than nnn.

    Answer

    2n2^n2n

  36. 36
    When n=1024n=1024n=1024, the naive method may require a number of repetitions on the order of
    _____
    .
    Hint

    Substitute 102410241024 for the bit length in the exponential bound.

    Answer

    210242^{1024}21024

  37. 37
    The 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

  38. 38
    The efficient method introduced for modular exponentiation is called the
    _____
    approach.
    Hint

    Its name describes compulsory squaring and optional multiplication.

    Answer

    square and multiply

  39. 39
    For 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

  40. 40
    The square-and-multiply method reduces the number of modular multiplications for the example a53a^{53}a53 from 525252 to
    _____
    .
    Hint

    This is the specific improvement stated in the lecture.

    Answer

    999

  41. 41
    The exponent 535353 has binary representation
    _____
    .
    Hint

    The set bits correspond to the powers 111, 444, 161616, and 323232.

    Answer

    110101110101110101

  42. 42
    The powers of aaa accumulated when computing a53a^{53}a53 from its binary representation are a1a^1a1, a4a^4a4, a16a^{16}a16, and
    _____
    .
    Hint

    These powers correspond to the positions containing 111 in 110101110101110101.

    Answer

    a32a^{32}a32

  43. 43
    In square and multiply, a bit equal to 111 means that the corresponding power of aaa is
    _____
    into the accumulator.
    Hint

    A set bit contributes its associated power to the final product.

    Answer

    accumulated

  44. 44
    In square and multiply, a bit equal to 000 means that the corresponding power of aaa is
    _____
    from the accumulator.
    Hint

    A zero bit contributes no factor to the exponent's binary sum.

    Answer

    excluded

  45. 45
    The 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

  46. 46
    Starting with a1a^1a1, repeatedly squaring produces the sequence a2a^2a2, a4a^4a4, a8a^8a8, a16a^{16}a16, and
    _____
    .
    Hint

    Each step doubles the exponent.

    Answer

    a32a^{32}a32

  47. 47
    Every 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

    NNN

  48. 48
    The accumulator variable stores the algorithm's
    _____
    result as the iterations proceed.
    Hint

    It is updated until all exponent bits have been processed.

    Answer

    final

  49. 49
    Each 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 000 or 111.

    Answer

    accumulation

  50. 50
    The 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

    111

  51. 51
    If the exponent has nnn bits, the algorithm performs exactly nnn compulsory
    _____
    operations.
    Hint

    There is one such operation for each exponent bit.

    Answer

    squaring

  52. 52
    In the worst case, when all nnn exponent bits are 111, square and multiply performs at most
    _____
    modular multiplications.
    Hint

    Count nnn compulsory squarings plus up to nnn optional accumulations.

    Answer

    2n2n2n

  53. 53
    In the pseudocode, the variable yyy serves as the
    _____
    .
    Hint

    It stores the result being built from selected powers.

    Answer

    accumulator

  54. 54
    In the pseudocode, the variable zzz stores the successive
    _____
    of aaa.
    Hint

    It changes through squaring as the algorithm advances.

    Answer

    powers

  55. 55
    To obtain the next bit of the exponent in the pseudocode, the algorithm repeatedly divides the exponent and records whether the
    _____
    is 000 or 111.
    Hint

    Division by 222 reveals the least significant binary bit.

    Answer

    remainder

  56. 56
    The pseudocode continues processing exponent bits until the exponent becomes
    _____
    .
    Hint

    The loop stops after all remaining binary bits have been removed.

    Answer

    nonzero

  57. 57
    The pseudocode checks whether x mod 2x \bmod 2xmod2 is 111 to determine whether the current exponent value is
    _____
    .
    Hint

    Odd integers have remainder 111 when divided by 222.

    Answer

    odd

  58. 58
    After processing the current bit, dividing xxx by 222 obtains the
    _____
    bit of the exponent.
    Hint

    This operation shifts attention from the current least significant bit toward the more significant bits.

    Answer

    next

  59. 59
    The 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

  60. 60
    The overall purpose of square and multiply is to compute ax mod Na^x \bmod NaxmodN 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

1 of 60
Question 1 of 60

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent