1. Home
  2. Explore
  3. Mathematics
  4. Modular Arithmetic

Study methods

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

Modular Arithmetic

  • 61Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Modular Foundations
The familiar rule that adding an even number and an odd number gives an odd number is an example of arithmetic modulo
.

61 questions

  1. 1
    The familiar rule that adding an even number and an odd number gives an odd number is an example of arithmetic modulo
    _____
    .
    Hint

    The rule tracks whether the remainder is 0 or 1.

    Answer

    2

  2. 2
    In modular arithmetic, two integers aaa and bbb are congruent modulo nnn exactly when their difference is
    _____
    .
    Hint

    Their difference must be divisible by the modulus.

    Answer

    a multiple of n

  3. 3
    The notation a≡b(modn)a \equiv b \pmod{n}a≡b(modn) is read as “aaa is
    _____
    modulo nnn.”
    Hint

    This is the standard spoken form of the congruence notation.

    Answer

    congruent to b

  4. 4
    For a positive divisor nnn, the division algorithm gives unique integers qqq and rrr such that a=qn+ra = qn + ra=qn+r, with the remainder in the range
    _____
    .
    Hint

    The remainder can be zero, but it cannot reach the divisor.

    Answer

    0≤r<n0 \le r < n0≤r<n

  5. 5
    Two integers are congruent modulo nnn if and only if they have the same
    _____
    when divided by nnn.
    Hint

    The quotient may differ, but the leftover amount must match.

    Answer

    remainder

  6. 6
    If a=qn+ra = qn + ra=qn+r and b=q′n+rb = q'n + rb=q′n+r, subtracting the equations shows that a−ba-ba−b is an integer
    _____
    of nnn.
    Hint

    The matching remainder terms cancel.

    Answer

    multiple

  7. 7
    If aaa and bbb are congruent modulo nnn, and their remainders are rrr and r′r'r′, then r−r′r-r'r−r′ is an integer strictly between
    _____
    and nnn.
    Hint

    Each remainder is between 0 and n−1n-1n−1, so compare the smallest and largest possible differences.

    Answer

    −n-n−n

  8. 8
    The clock-math picture for modulo 7 uses the remainders
    _____
    as positions around the clock.
    Hint

    These are all the possible remainders when dividing by 7.

    Answer

    0 to 6

  9. 9
    On a modulo-7 clock, 12 and 5 are equivalent because both land on the same position; in symbols, 12 is congruent to
    _____
    modulo 7.
    Hint

    Going around once adds 7 without changing the clock position.

    Answer

    5

  10. 10
    In clock math, numbers that land on the same position are members of the same
    _____
    class.
    Hint

    The term describes numbers treated as equivalent under a relation.

    Answer

    equivalence

  11. 11
    When multiplying or adding in modular arithmetic, one can first use ordinary arithmetic and then subtract multiples of the modulus until the result is in the range
    _____
    .
    Hint

    Reduce the result to one of the possible remainders modulo nnn.

    Answer

    000 to n−1n-1n−1

  12. 12
    Modulo 7, the product 10⋅1210 \cdot 1210⋅12 is congruent to
    _____
    .
    Hint

    The factors have remainders 3 and 5; reduce their product modulo 7.

    Answer

    1

  13. 13
    The modular addition table for modulo 7 gives a remainder of
    _____
    when 4 is added to 4.
    Hint

    Add first, then remove a multiple of 7.

    Answer

    1

  14. 14
    The modular multiplication table for modulo 7 gives a remainder of
    _____
    for 3⋅33 \cdot 33⋅3.
    Hint

    The ordinary product is 9; reduce it modulo 7.

    Answer

    2

  15. 15
    Modular addition remains associative: grouping a+ba+ba+b first or b+cb+cb+c first gives the same result because
    _____
    .
    Hint

    The grouping of three addends does not affect their sum.

    Answer

    addition is associative

  16. 16
    Modular addition remains commutative, so changing the order of aaa and bbb does not change the result because
    _____
    .
    Hint

    The order of addends does not affect their sum.

    Answer

    addition is commutative

  17. 17
    The modular distributive property states that multiplying aaa by the sum b+cb+cb+c is equivalent to
    _____
    .
    Hint

    Multiply aaa by each term in the sum.

    Answer

    ab+acab+acab+ac

  18. 18
    The largest integer that divides both aaa and bbb is called their
    _____
    .
    Hint

    This quantity is commonly abbreviated GCD.

    Answer

    Greatest Common Divisor

  19. 19
    A slow way to compute the GCD of two positive integers is to test every possible divisor from 1 up to the
    _____
    integer.
    Hint

    No common divisor can be larger than the smaller input.

    Answer

    smaller

  20. 20
    If b≥ab \ge ab≥a, the first GCD reduction says that $\gcd(a,b)=\gcd(a,\
    _____
    ).$
    Hint

    Subtract one copy of the smaller number from the larger.

    Answer

    b−ab-ab−a

  21. 21
    If an integer kkk divides both aaa and bbb, then it also divides
    _____
    .
    Hint

    A difference of two multiples of the same integer is still a multiple of it.

    Answer

    b−ab-ab−a

  22. 22
    To prove the reverse direction of the GCD reduction, if kkk divides aaa and b−ab-ab−a, then it also divides
    _____
    .
    Hint

    Write the target integer as the sum of the two quantities already divisible by kkk.

    Answer

    bbb

  23. 23
    Writing b=qa+rb=qa+rb=qa+r by the division algorithm lets us strengthen the GCD reduction to $\gcd(a,b)=\gcd(a,\
    _____
    )$.
    Hint

    Repeated subtraction of aaa leaves the remainder from dividing bbb by aaa.

    Answer

    rrr

  24. 24
    The Euclidean algorithm repeatedly divides one number by the other and replaces the larger number with the
    _____
    .
    Hint

    This is the leftover from the division step.

    Answer

    remainder

  25. 25
    For the example gcd⁡(360,46)\gcd(360,46)gcd(360,46), the first remainder when 360 is divided by 46 is
    _____
    .
    Hint

    Since 46⋅7=32246\cdot7=32246⋅7=322, subtract this from 360.

    Answer

    38

  26. 26
    Continuing the Euclidean algorithm for 360 and 46 gives the remainder sequence 38, 8, 6, 2, and finally
    _____
    .
    Hint

    The algorithm stops when a division has no remainder.

    Answer

    0

  27. 27
    The Euclidean algorithm gives $\gcd(360,46)=\
    _____
    .$
    Hint

    The GCD is the last nonzero remainder.

    Answer

    2

  28. 28
    The identity 46s+360t=246s+360t=246s+360t=2 certifies that no common divisor of 46 and 360 can be
    _____
    than 2.
    Hint

    Any common divisor must divide every integer combination of the inputs.

    Answer

    larger

  29. 29
    A multiplicative inverse of 4 modulo 7 is 2 because their product is congruent to
    _____
    modulo 7.
    Hint

    An inverse multiplies the original number to the multiplicative identity.

    Answer

    1

  30. 30
    Modulo 7, the multiplicative inverse of 5 is
    _____
    .
    Hint

    Check which remainder multiplied by 5 gives a product with remainder 1.

    Answer

    3

  31. 31
    The number 0 does not have a multiplicative inverse because no product with 0 can be congruent to
    _____
    .
    Hint

    Multiplication by zero always gives zero.

    Answer

    1

  32. 32
    Modulo a prime ppp, every
    _____
    element has a multiplicative inverse.
    Hint

    The zero element is excluded from this property.

    Answer

    non-zero

  33. 33
    For a modulus that is not prime, an integer has a multiplicative inverse modulo that modulus when its GCD with the modulus is
    _____
    .
    Hint

    The two numbers must share no common factor other than 1.

    Answer

    1

  34. 34
    The number 5 has an inverse modulo 6 because $\gcd(5,6)=\
    _____
    .$
    Hint

    The modulus need not be prime if the number is relatively prime to it.

    Answer

    1

  35. 35
    If bs+pt=1bs+pt=1bs+pt=1, then modulo ppp the term ptptpt vanishes, showing that
    _____
    is an inverse of bbb.
    Hint

    Reduce the identity modulo ppp.

    Answer

    sss

  36. 36
    To compute an inverse of a nonzero number modulo a prime, apply the
    _____
    Euclidean algorithm to the number and the prime.
    Hint

    This version finds the coefficients in an integer combination equal to the GCD.

    Answer

    extended

  37. 37
    In the treasure riddle, the coin count must leave remainder 4 modulo 5 and remainder 1 modulo 7; the smallest such count is
    _____
    .
    Hint

    Check that the number is one more than a multiple of 7 and four more than a multiple of 5.

    Answer

    29

  38. 38
    Two integers are relatively prime when their
    _____
    is 1.
    Hint

    They share no common factor besides 1.

    Answer

    GCD

  39. 39
    The Chinese remainder theorem assumes that the moduli aaa and bbb are
    _____
    .
    Hint

    Their only common positive divisor must be 1.

    Answer

    relatively prime

  40. 40
    For relatively prime moduli aaa and bbb, the Chinese remainder theorem considers a solution nnn in the range from 0 to
    _____
    .
    Hint

    There are ababab possible integers in the stated range.

    Answer

    ab−1ab-1ab−1

  41. 41
    When aaa and bbb are relatively prime, specifying nnn modulo aaa and modulo bbb determines exactly
    _____
    value of nnn between 0 and ab−1ab-1ab−1.
    Hint

    The theorem guarantees uniqueness in that interval.

    Answer

    one

  42. 42
    The Chinese remainder theorem establishes a bijection between the ababab possible values of nnn and the possible pairs of
    _____
    modulo aaa and bbb.
    Hint

    Each integer is represented by its residue under both moduli.

    Answer

    remainders

  43. 43
    If two integers xxx and yyy have the same remainder modulo aaa, then
    _____
    divides their difference.
    Hint

    Equal remainders mean the integers differ by a multiple of the modulus.

    Answer

    aaa

  44. 44
    If aaa and bbb are relatively prime and both divide x−yx-yx−y, then their product
    _____
    divides x−yx-yx−y.
    Hint

    Coprimality makes the two divisibility conditions combine into divisibility by the product.

    Answer

    ababab

  45. 45
    If distinct integers xxx and yyy both lie between 0 and ab−1ab-1ab−1, they cannot differ by a nonzero multiple of
    _____
    .
    Hint

    The largest possible difference within the interval is less than the product.

    Answer

    ababab

  46. 46
    To construct a solution to n≡t(modb)n\equiv t\pmod bn≡t(modb), write nnn in the form $n=kb+\
    _____
    .$
    Hint

    The remainder after division by bbb is specified by the congruence.

    Answer

    ttt

  47. 47
    In the construction n=kb+tn=kb+tn=kb+t, the other congruence gives kb≡s−t(moda)kb\equiv s-t\pmod akb≡s−t(moda), so one solves for kkk by multiplying by the inverse of
    _____
    modulo aaa.
    Hint

    The coefficient of the unknown kkk must be made equal to 1 modulo aaa.

    Answer

    bbb

  48. 48
    In the card demonstration, each participant receives one red card and one
    _____
    card.
    Hint

    The cards use two colors, with three red cards total and two of the other color.

    Answer

    black

  49. 49
    A participant who likes the movie places their red card closest to the center card and their black card on the
    _____
    .
    Hint

    The participant's arrangement puts the red card nearest the middle.

    Answer

    outside

  50. 50
    A participant who does not like the movie places their
    _____
    card closest to the center red card.
    Hint

    This arrangement is the reverse of the placement used for a yes response.

    Answer

    black

  51. 51
    After the cards are stacked, cutting the deck creates a random
    _____
    shift.
    Hint

    The order wraps around, like positions on a clock.

    Answer

    cyclic

  52. 52
    In the card demonstration, if both participants like the movie, the combined cards contain
    _____
    red cards in a row cyclically.
    Hint

    The center card is red, and both yes responses place red cards beside it.

    Answer

    three

  53. 53
    If either participant does not like the movie, the demonstration does not produce three red cards in a row; instead, it has
    _____
    red cards in a row.
    Hint

    A no response puts a black card beside the center red card.

    Answer

    two

  54. 54
    The random cyclic shift lets a participant who liked the movie maintain plausible
    _____
    about their answer.
    Hint

    They can avoid publicly revealing their private preference.

    Answer

    deniability

  55. 55
    A major application of modular arithmetic in computer science is
    _____
    .
    Hint

    This field protects information and includes cryptographic schemes.

    Answer

    cryptography

  56. 56
    The lecture also identifies privately computing functions and executing cryptographic schemes as applications of modular arithmetic and
    _____
    .
    Hint

    The card demonstration illustrates a way to prove something while preserving private information.

    Answer

    zero-knowledge proofs

  57. 57
    In the simplified streaming example, the contents of a large file are represented as one gigantic
    _____
    .
    Hint

    The file is encoded as a number that can be reduced modulo chosen values.

    Answer

    integer

  58. 58
    A broadcast snippet specifies a modulus and the
    _____
    of the file integer when divided by that modulus.
    Hint

    This is the information needed to state a congruence for the file.

    Answer

    remainder

  59. 59
    In the streaming example, receiving snippets for moduli whose product is larger than the file integer allows reconstruction using the
    _____
    .
    Hint

    This theorem reconstructs an integer from its residues under relatively prime moduli.

    Answer

    Chinese remainder theorem

  60. 60
    Fountain codes let a broadcaster send snippets continuously so that recipients can collect enough information at different times and
    _____
    the file.
    Hint

    They do not need to receive precisely the same selected set of snippets.

    Answer

    reconstruct

  61. 61
    The streaming-code discussion is explicitly a simplified version because practical systems must also account for
    _____
    in messages.
    Hint

    Transmitted data may not always arrive perfectly.

    Answer

    errors

1 of 61
Question 1 of 61

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent