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

  • 53Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Modular Foundations

When an even number is added to an odd number, what does arithmetic modulo 222 predict about the remainder?

53 questions

  1. 1

    When an even number is added to an odd number, what does arithmetic modulo 222 predict about the remainder?

    1. A

      The sum has remainder 000 because one addend is even

    2. B

      The remainder cannot be determined without the numbers themselves

    3. C

      The sum has remainder 222 because both remainders are counted

    4. D

      The sum has remainder 111 because the remainders add to 111

    Correct answer
    D

    The sum has remainder 111 because the remainders add to 111

    Explanation

    An even number has remainder 000 modulo 222, and an odd number has remainder 111. Their sum therefore has remainder 111.

  2. 2

    What does the congruence a�bmodna �bmod na�bmodn express about the integers aaa and bbb?

    1. A

      Their sum is divisible by nnn

    2. B

      Their quotient is an integer

    3. C

      Their product is divisible by nnn

    4. D

      Their difference is a multiple of nnn

    Correct answer
    D

    Their difference is a multiple of nnn

    Explanation

    By definition, aaa is congruent to bbb modulo nnn exactly when a−ba-ba−b is an integer multiple of nnn.

  3. 3

    Which condition is equivalent to saying that aaa and bbb are congruent modulo nnn?

    1. A

      They have the same remainder when divided by nnn

    2. B

      They are both smaller than nnn

    3. C

      Their remainders add to nnn

    4. D

      They have the same quotient when divided by nnn

    Correct answer
    A

    They have the same remainder when divided by nnn

    Explanation

    Two integers are congruent modulo nnn if and only if division by nnn leaves them with the same remainder. Their quotients may differ.

  4. 4

    For a positive divisor nnn, which statement describes the division algorithm's representation of any integer aaa?

    1. A

      There is a unique pair of integers q,rq,rq,r such that a=qn+ra=qn+ra=qn+r and 0�ler<n0 �le r<n0�ler<n

    2. B

      There is a pair of integers q,rq,rq,r such that a=qn+ra=qn+ra=qn+r and rrr may be any integer

    3. C

      There is a unique pair of integers q,rq,rq,r such that a=qn+ra=qn+ra=qn+r and 0<rextorr=n0<r ext{ or }r=n0<rextorr=n

    4. D

      There is a unique pair of integers q,rq,rq,r such that a=qn+ra=qn+ra=qn+r and −n<r<0-n<r<0−n<r<0

    Correct answer
    A

    There is a unique pair of integers q,rq,rq,r such that a=qn+ra=qn+ra=qn+r and 0�ler<n0 �le r<n0�ler<n

    Explanation

    For every integer aaa and positive integer nnn, there is a unique quotient qqq and remainder rrr with a=qn+ra=qn+ra=qn+r and 0�ler<n0 �le r<n0�ler<n.

  5. 5

    Why must a remainder in division by a positive integer nnn be less than nnn?

    1. A

      A remainder equal to or greater than nnn could be reduced by subtracting another multiple of nnn

    2. B

      The dividend must always be larger than the divisor

    3. C

      The quotient is required to be larger than the remainder

    4. D

      A remainder cannot be an integer unless it is smaller than nnn

    Correct answer
    A

    A remainder equal to or greater than nnn could be reduced by subtracting another multiple of nnn

    Explanation

    If a proposed remainder were at least nnn, one more copy of nnn could be moved into the quotient, so it would not be the division algorithm's remainder.

  6. 6

    If two integers have the same remainder when divided by nnn, what follows about their difference?

    1. A

      It is equal to the sum of their quotients

    2. B

      It is divisible by nnn

    3. C

      It is strictly between 000 and nnn

    4. D

      It equals their common remainder

    Correct answer
    B

    It is divisible by nnn

    Explanation

    Writing the integers as qn+rqn+rqn+r and q′n+rq'n+rq′n+r makes their difference (q−q′)n(q-q')n(q−q′)n, which is a multiple of nnn.

  7. 7

    If a=qn+ra=qn+ra=qn+r and b=q′n+r′b=q'n+r'b=q′n+r′ are congruent modulo nnn, why must r=r′r=r'r=r′?

    1. A

      Because r−r′r-r'r−r′ is a multiple of nnn but lies strictly between −n-n−n and nnn

    2. B

      Because both remainders must be zero whenever two numbers are congruent

    3. C

      Because the sum r+r′r+r'r+r′ must equal nnn

    4. D

      Because congruence requires the quotients qqq and q′q'q′ to be equal

    Correct answer
    A

    Because r−r′r-r'r−r′ is a multiple of nnn but lies strictly between −n-n−n and nnn

    Explanation

    Congruence makes a−ba-ba−b a multiple of nnn, so r−r′r-r'r−r′ must also be a multiple of nnn. Since both remainders are between 000 and n−1n-1n−1, their difference lies strictly between −n-n−n and nnn; the only such multiple is 000.

  8. 8

    On a clock with positions 000 through 666, why do 121212 and 555 represent the same position?

    1. A

      Because 12+512+512+5 is a multiple of 777

    2. B

      Because 121212 and 555 have the same quotient when divided by 777

    3. C

      Because both numbers are smaller than 141414

    4. D

      Because 12−512-512−5 is a multiple of 777

    Correct answer
    D

    Because 12−512-512−5 is a multiple of 777

    Explanation

    The difference 12−5=712-5=712−5=7 is a multiple of 777, so 12�bmod712 �bmod 712�bmod7 and 5�bmod75 �bmod 75�bmod7 have the same remainder and land at the same clock position.

  9. 9

    When using a clock analogy for arithmetic modulo nnn, what information is intentionally discarded?

    1. A

      The order in which numbers are added

    2. B

      The modulus that sets the number of positions

    3. C

      The remainder that determines the clock position

    4. D

      The number of complete cycles around the clock

    Correct answer
    D

    The number of complete cycles around the clock

    Explanation

    Clock arithmetic keeps track of the remainder, or position, while ignoring how many full cycles a number makes.

  10. 10

    Which description best captures an equivalence class modulo nnn?

    1. A

      All integers whose product is divisible by nnn

    2. B

      All integers that have the same quotient when divided by nnn

    3. C

      All integers that share a remainder when divided by nnn

    4. D

      All integers that are between 000 and n−1n-1n−1

    Correct answer
    C

    All integers that share a remainder when divided by nnn

    Explanation

    Integers in the same equivalence class modulo nnn have the same remainder after division by nnn, even if the integers themselves differ.

  11. 11

    When adding or multiplying modulo nnn, what is a valid way to calculate the result?

    1. A

      Divide each input by nnn and operate only on the quotients

    2. B

      Perform the ordinary operation, then reduce the result to its remainder modulo nnn

    3. C

      Change the operation into subtraction before reducing

    4. D

      Replace every input with zero before doing the operation

    Correct answer
    B

    Perform the ordinary operation, then reduce the result to its remainder modulo nnn

    Explanation

    Modular addition and multiplication can be done with ordinary arithmetic first. The result is then reduced to its remainder between 000 and n−1n-1n−1.

  12. 12

    Given 10�bmod710 �bmod 710�bmod7 and 12�bmod712 �bmod 712�bmod7, what is the remainder of their product modulo 777?

    1. A

      111

    2. B

      666

    3. C

      333

    4. D

      000

    Correct answer
    A

    111

    Explanation

    The product is 10�times12=12010 �times 12=12010�times12=120. Dividing 120120120 by 777 leaves remainder 111; equivalently, the input remainders multiply as 3�times5=15�equiv1�pmod73 �times 5=15 �equiv 1 �pmod 73�times5=15�equiv1�pmod7.

  13. 13

    Why does knowing only the remainders of two factors suffice to determine the remainder of their product modulo nnn?

    1. A

      Every product modulo nnn is equal to one of its factors

    2. B

      The quotient of each factor disappears before multiplication

    3. C

      The remainders uniquely determine the original factors

    4. D

      Changing a factor by a multiple of nnn changes the product only by a multiple of nnn

    Correct answer
    D

    Changing a factor by a multiple of nnn changes the product only by a multiple of nnn

    Explanation

    Replacing a factor with another integer in the same congruence class changes it by a multiple of nnn. The resulting product changes by a multiple of nnn, so its remainder is unchanged.

  14. 14

    What does a multiplication table modulo 777 record?

    1. A

      The remainders of pairwise products after division by 777

    2. B

      The ordinary products of entries without any reduction

    3. C

      The quotients obtained by dividing each entry by 777

    4. D

      The greatest common divisors of every pair of entries

    Correct answer
    A

    The remainders of pairwise products after division by 777

    Explanation

    A modular multiplication table lists the remainder modulo 777 for each product of two entries. For example, 3�times3=93 �times 3=93�times3=9 has remainder 222 modulo 777.

  15. 15

    Which statement illustrates associativity of addition modulo nnn?

    1. A

      a(b+c)a(b+c)a(b+c) and ab+cab+cab+c give the same result modulo nnn

    2. B

      a+ba+ba+b and b+ab+ab+a give different results modulo nnn

    3. C

      a+ba+ba+b and a−ba-ba−b always give the same result modulo nnn

    4. D

      (a+b)+c(a+b)+c(a+b)+c and a+(b+c)a+(b+c)a+(b+c) give the same result modulo nnn

    Correct answer
    D

    (a+b)+c(a+b)+c(a+b)+c and a+(b+c)a+(b+c)a+(b+c) give the same result modulo nnn

    Explanation

    Associativity means changing the placement of parentheses does not change the result. This remains true for addition modulo nnn.

  16. 16

    Which statement illustrates commutativity of addition modulo nnn?

    1. A

      a+ba+ba+b gives the same result as a−ba-ba−b

    2. B

      (a+b)+c(a+b)+c(a+b)+c gives the same result as a+(b+c)a+(b+c)a+(b+c)

    3. C

      a(b+c)a(b+c)a(b+c) gives the same result as ab+cab+cab+c

    4. D

      a+ba+ba+b gives the same result as b+ab+ab+a

    Correct answer
    D

    a+ba+ba+b gives the same result as b+ab+ab+a

    Explanation

    Commutativity allows the order of the addends to be switched: a+ba+ba+b and b+ab+ab+a have the same remainder modulo nnn.

  17. 17

    Which equality expresses the distributive property modulo nnn?

    1. A

      a(b+c)�equiva+b+c�pmodna(b+c) �equiv a+b+c �pmod na(b+c)�equiva+b+c�pmodn

    2. B

      a(b+c)�equiv(a+b)c�pmodna(b+c) �equiv (a+b)c �pmod na(b+c)�equiv(a+b)c�pmodn

    3. C

      a+b�equivab�pmodna+b �equiv ab �pmod na+b�equivab�pmodn

    4. D

      a(b+c)�equivab+ac�pmodna(b+c) �equiv ab+ac �pmod na(b+c)�equivab+ac�pmodn

    Correct answer
    D

    a(b+c)�equivab+ac�pmodna(b+c) �equiv ab+ac �pmod na(b+c)�equivab+ac�pmodn

    Explanation

    Multiplication distributes over addition in modular arithmetic just as it does in ordinary arithmetic: multiplying aaa by b+cb+cb+c gives ab+acab+acab+ac modulo nnn.

  18. 18

    Why does an even number plus an even number remain even?

    1. A

      Both numbers have remainder 111 modulo 222, so their sum has remainder 000

    2. B

      Both numbers have remainder 000 modulo 222, so their sum has remainder 000

    3. C

      Their sum must be smaller than either addend

    4. D

      Their quotients when divided by 222 must be equal

    Correct answer
    B

    Both numbers have remainder 000 modulo 222, so their sum has remainder 000

    Explanation

    Even numbers are exactly the integers with remainder 000 modulo 222. Adding two such remainders gives a remainder of 000 modulo 222.

  19. 19

    What is the greatest common divisor of two integers?

    1. A

      The smallest integer that is a multiple of both

    2. B

      The largest remainder obtained when dividing one by the other

    3. C

      The difference between the larger and smaller integer

    4. D

      The largest integer that divides both of them

    Correct answer
    D

    The largest integer that divides both of them

    Explanation

    The greatest common divisor, or GCD, is the largest integer that divides both given integers.

  20. 20

    Why is checking every possible divisor a poor general method for finding the GCD of very large integers?

    1. A

      Large integers cannot have any common divisors

    2. B

      The method works only when both integers are prime

    3. C

      The number of candidate divisors to check can become impractically large

    4. D

      Checking divisors changes the integers being compared

    Correct answer
    C

    The number of candidate divisors to check can become impractically large

    Explanation

    Testing candidate divisors one by one may require too many checks for large inputs, whereas the Euclidean algorithm makes progress through repeated divisions.

  21. 21

    If b�geab �ge ab�gea, why is �gcd(a,b)=�gcd(a,b−a)�gcd(a,b)=�gcd(a,b-a)�gcd(a,b)=�gcd(a,b−a)?

    1. A

      The difference b−ab-ab−a must equal the GCD

    2. B

      The two pairs have the same sum

    3. C

      Subtracting aaa from bbb makes aaa a divisor of both numbers

    4. D

      Every common divisor of aaa and bbb also divides b−ab-ab−a, and vice versa

    Correct answer
    D

    Every common divisor of aaa and bbb also divides b−ab-ab−a, and vice versa

    Explanation

    A number dividing both aaa and bbb divides their difference b−ab-ab−a. Conversely, a number dividing aaa and b−ab-ab−a also divides their sum bbb, so the pairs have the same common divisors.

  22. 22

    If kkk divides both aaa and bbb, what can be concluded about b−ab-ab−a?

    1. A

      b−ab-ab−a must be a multiple of aaa

    2. B

      kkk divides b−ab-ab−a

    3. C

      b−ab-ab−a must equal kkk

    4. D

      kkk divides only the larger of aaa and bbb

    Correct answer
    B

    kkk divides b−ab-ab−a

    Explanation

    If a=kua=kua=ku and b=kvb=kvb=kv for integers uuu and vvv, then b−a=k(v−u)b-a=k(v-u)b−a=k(v−u), so kkk divides the difference.

  23. 23

    How does the division algorithm produce a useful GCD identity when b�geab �ge ab�gea?

    1. A

      Writing b=qa+rb=qa+rb=qa+r gives �gcd(a,b)=a+r�gcd(a,b)=a+r�gcd(a,b)=a+r

    2. B

      Writing b=qa+rb=qa+rb=qa+r gives �gcd(a,b)=�gcd(q,r)�gcd(a,b)=�gcd(q,r)�gcd(a,b)=�gcd(q,r)

    3. C

      Writing b=qa+rb=qa+rb=qa+r gives �gcd(a,b)=�gcd(a,r)�gcd(a,b)=�gcd(a,r)�gcd(a,b)=�gcd(a,r)

    4. D

      Writing b=qa+rb=qa+rb=qa+r gives �gcd(a,b)=q+r�gcd(a,b)=q+r�gcd(a,b)=q+r

    Correct answer
    C

    Writing b=qa+rb=qa+rb=qa+r gives �gcd(a,b)=�gcd(a,r)�gcd(a,b)=�gcd(a,r)�gcd(a,b)=�gcd(a,r)

    Explanation

    Since r=b−qar=b-qar=b−qa, repeated subtraction of copies of aaa preserves the GCD. Thus the GCD of aaa and bbb equals the GCD of aaa and the remainder rrr.

  24. 24

    Why is replacing bbb by the remainder after dividing it by aaa more efficient than subtracting aaa from bbb only once?

    1. A

      The remainder is always the same as the original bbb

    2. B

      The remainder accounts for subtracting many copies of aaa in one step

    3. C

      The remainder makes the two inputs equal

    4. D

      A single division immediately identifies the GCD without further steps

    Correct answer
    B

    The remainder accounts for subtracting many copies of aaa in one step

    Explanation

    If b=qa+rb=qa+rb=qa+r, replacing bbb with rrr is equivalent to subtracting qqq copies of aaa. This can make substantial progress in one step while preserving the GCD.

  25. 25

    What is the central operation repeated by the Euclidean algorithm?

    1. A

      Multiply both numbers by their current difference

    2. B

      List all divisors of each number and compare the lists

    3. C

      Subtract the smaller number from the larger exactly once and stop

    4. D

      Divide one number by the other and replace the larger number with the remainder

    Correct answer
    D

    Divide one number by the other and replace the larger number with the remainder

    Explanation

    The Euclidean algorithm repeatedly uses division and remainders, alternating the roles of the numbers until a remainder is zero.

  26. 26

    What is the GCD at the final stage when the Euclidean algorithm reaches a pair (d,0)(d,0)(d,0)?

    1. A

      000, because the algorithm has no remainder left

    2. B

      It cannot be determined without the original numbers

    3. C

      111, because the algorithm always ends at 111

    4. D

      ddd, because every integer divides 000 and ddd is the remaining nonzero divisor

    Correct answer
    D

    ddd, because every integer divides 000 and ddd is the remaining nonzero divisor

    Explanation

    Every integer divides 000, so the common divisors of ddd and 000 are the divisors of ddd. Their greatest is ddd.

  27. 27

    What is the GCD of 360360360 and 464646?

    1. A

      666

    2. B

      888

    3. C

      222

    4. D

      111

    Correct answer
    C

    222

    Explanation

    The Euclidean algorithm gives remainders 383838, 888, 666, 222, and then 000. Since the last nonzero remainder is 222, the GCD is 222.

  28. 28

    What additional information does the extended Euclidean algorithm find beyond the GCD?

    1. A

      The prime factorization of every integer between aaa and bbb

    2. B

      A quotient that makes aaa equal to bbb

    3. C

      The complete list of remainders for every possible divisor

    4. D

      Integers s,ts,ts,t such that sa+tb=�gcd(a,b)sa+tb=�gcd(a,b)sa+tb=�gcd(a,b)

    Correct answer
    D

    Integers s,ts,ts,t such that sa+tb=�gcd(a,b)sa+tb=�gcd(a,b)sa+tb=�gcd(a,b)

    Explanation

    The extended Euclidean algorithm tracks the steps in the ordinary algorithm to express the GCD as an integer linear combination of the original inputs.

  29. 29

    Why does an identity sa+tb=dsa+tb=dsa+tb=d certify that ddd is the GCD of aaa and bbb, if ddd is already known to divide both?

    1. A

      The identity shows that sss and ttt are both equal to ddd

    2. B

      The identity proves that aaa and bbb are prime

    3. C

      Any common divisor of aaa and bbb must also divide sa+tb=dsa+tb=dsa+tb=d

    4. D

      Any integer linear combination is automatically larger than both inputs

    Correct answer
    C

    Any common divisor of aaa and bbb must also divide sa+tb=dsa+tb=dsa+tb=d

    Explanation

    If kkk divides both aaa and bbb, then it divides every integer linear combination sa+tbsa+tbsa+tb. Thus it divides ddd, so no common divisor can be larger than ddd when ddd itself divides both inputs.

  30. 30

    What does it mean for xxx to be a multiplicative inverse of aaa modulo nnn?

    1. A

      axaxax is congruent to 000 modulo nnn

    2. B

      axaxax is congruent to 111 modulo nnn

    3. C

      a+xa+xa+x is congruent to 000 modulo nnn

    4. D

      a−xa-xa−x is divisible by nnn

    Correct answer
    B

    axaxax is congruent to 111 modulo nnn

    Explanation

    A multiplicative inverse of aaa modulo nnn is a value xxx whose product with aaa has remainder 111 modulo nnn.

  31. 31

    Why are 222 and 444 multiplicative inverses modulo 777?

    1. A

      Their difference is 222, which is congruent to 111 modulo 777

    2. B

      Their sum is 666, which is congruent to 111 modulo 777

    3. C

      Their product is 777, which is congruent to 111 modulo 777

    4. D

      Their product is 888, which is congruent to 111 modulo 777

    Correct answer
    D

    Their product is 888, which is congruent to 111 modulo 777

    Explanation

    Since 2�times4=82 �times 4=82�times4=8 and 888 leaves remainder 111 when divided by 777, each is the other's multiplicative inverse modulo 777.

  32. 32

    Why does 000 have no multiplicative inverse modulo nnn when n>1n>1n>1?

    1. A

      Every number multiplied by zero is congruent to nnn

    2. B

      Zero is not an integer in modular arithmetic

    3. C

      Multiplying 000 by any integer gives 000, never a value congruent to 111

    4. D

      Zero has a remainder of nnn rather than 000

    Correct answer
    C

    Multiplying 000 by any integer gives 000, never a value congruent to 111

    Explanation

    An inverse would require 0x�equiv1�pmodn0x �equiv 1 �pmod n0x�equiv1�pmodn. But 0x=00x=00x=0, which is not congruent to 111 when n>1n>1n>1.

  33. 33

    Why does every nonzero element modulo a prime ppp have a multiplicative inverse?

    1. A

      The multiplication table modulo a prime contains no repeated entries

    2. B

      Every nonzero element is relatively prime to ppp, so the extended Euclidean identity produces an inverse

    3. C

      Every nonzero element multiplied by ppp equals 111 modulo ppp

    4. D

      Every nonzero element is itself prime, so it must invert to 111

    Correct answer
    B

    Every nonzero element is relatively prime to ppp, so the extended Euclidean identity produces an inverse

    Explanation

    For nonzero aaa modulo prime ppp, �gcd(a,p)=1�gcd(a,p)=1�gcd(a,p)=1. The extended Euclidean algorithm gives integers s,ts,ts,t with as+pt=1as+pt=1as+pt=1, so as�equiv1�pmodpas �equiv 1 �pmod pas�equiv1�pmodp.

  34. 34

    What determines whether an element aaa has a multiplicative inverse modulo a possibly composite nnn?

    1. A

      Whether �gcd(a,n)=1�gcd(a,n)=1�gcd(a,n)=1

    2. B

      Whether aaa and nnn are both even

    3. C

      Whether a+na+na+n is prime

    4. D

      Whether aaa is larger than nnn

    Correct answer
    A

    Whether �gcd(a,n)=1�gcd(a,n)=1�gcd(a,n)=1

    Explanation

    An inverse exists exactly when aaa and nnn are relatively prime. For example, 555 has an inverse modulo 666 because �gcd(5,6)=1�gcd(5,6)=1�gcd(5,6)=1.

  35. 35

    How can the extended Euclidean algorithm find the inverse of a nonzero aaa modulo a prime ppp?

    1. A

      Find s,ts,ts,t such that a+s=pa+s=pa+s=p; then ttt is an inverse of aaa modulo ppp

    2. B

      Find the quotient when ppp is divided by aaa; then the quotient is the inverse

    3. C

      Find s,ts,ts,t such that as+pt=1as+pt=1as+pt=1; then sss is an inverse of aaa modulo ppp

    4. D

      Find the largest divisor of aaa and ppp; then that divisor is the inverse

    Correct answer
    C

    Find s,ts,ts,t such that as+pt=1as+pt=1as+pt=1; then sss is an inverse of aaa modulo ppp

    Explanation

    The identity as+pt=1as+pt=1as+pt=1 implies as�equiv1�pmodpas �equiv 1 �pmod pas�equiv1�pmodp, since ptptpt is a multiple of ppp. Thus sss is the desired inverse.

  36. 36

    In the identity 4s+7t=14s+7t=14s+7t=1, why is sss an inverse of 444 modulo 777?

    1. A

      Because sss must equal 777

    2. B

      Because 4s4s4s is divisible by 777

    3. C

      Because 4s=1−7t4s=1-7t4s=1−7t, which is congruent to 111 modulo 777

    4. D

      Because 4s+7t4s+7t4s+7t is congruent to 000 modulo 777

    Correct answer
    C

    Because 4s=1−7t4s=1-7t4s=1−7t, which is congruent to 111 modulo 777

    Explanation

    Rearranging gives 4s=1−7t4s=1-7t4s=1−7t. The term 7t7t7t vanishes modulo 777, leaving 4s�equiv1�pmod74s �equiv 1 �pmod 74s�equiv1�pmod7.

  37. 37

    What cryptographic intuition does multiplication modulo nnn with an inverse illustrate?

    1. A

      Every modular multiplication automatically hides its inputs from everyone

    2. B

      An inverse makes the modulus irrelevant to the calculation

    3. C

      Multiplication can scramble values, while multiplying by an inverse can undo that transformation

    4. D

      Multiplication permanently destroys values, so no recovery is possible

    Correct answer
    C

    Multiplication can scramble values, while multiplying by an inverse can undo that transformation

    Explanation

    Multiplying by a value can rearrange or jumble residues, and multiplying by its modular inverse reverses that operation. This is an intuition for modular methods used in cryptography, not a complete cryptographic scheme by itself.

  38. 38

    How can the treasure-coin conditions be translated into modular equations?

    1. A

      n�equiv4�pmod7n �equiv 4 �pmod 7n�equiv4�pmod7 and n�equiv1�pmod5n �equiv 1 �pmod 5n�equiv1�pmod5

    2. B

      n�equiv4�pmod5n �equiv 4 �pmod 5n�equiv4�pmod5 and n�equiv1�pmod7n �equiv 1 �pmod 7n�equiv1�pmod7

    3. C

      n�equiv5�pmod4n �equiv 5 �pmod 4n�equiv5�pmod4 and n�equiv7�pmod1n �equiv 7 �pmod 1n�equiv7�pmod1

    4. D

      n�equiv0�pmod5n �equiv 0 �pmod 5n�equiv0�pmod5 and n�equiv0�pmod7n �equiv 0 �pmod 7n�equiv0�pmod7

    Correct answer
    B

    n�equiv4�pmod5n �equiv 4 �pmod 5n�equiv4�pmod5 and n�equiv1�pmod7n �equiv 1 �pmod 7n�equiv1�pmod7

    Explanation

    Having 444 coins left over in groups of 555 means n�equiv4�pmod5n �equiv 4 �pmod 5n�equiv4�pmod5. Having 111 left over in groups of 777 means n�equiv1�pmod7n �equiv 1 �pmod 7n�equiv1�pmod7.

  39. 39

    What is the smallest positive number satisfying n�equiv4�pmod5n �equiv 4 �pmod 5n�equiv4�pmod5 and n�equiv1�pmod7n �equiv 1 �pmod 7n�equiv1�pmod7?

    1. A

      353535

    2. B

      292929

    3. C

      242424

    4. D

      191919

    Correct answer
    B

    292929

    Explanation

    292929 leaves remainder 444 when divided by 555 and remainder 111 when divided by 777. It is the smallest positive number satisfying both conditions.

  40. 40

    What condition on moduli aaa and bbb is used in the Chinese remainder theorem described here?

    1. A

      They must be equal, so a=ba=ba=b

    2. B

      They must both be even

    3. C

      They must be relatively prime, so �gcd(a,b)=1�gcd(a,b)=1�gcd(a,b)=1

    4. D

      They must share a prime factor larger than 111

    Correct answer
    C

    They must be relatively prime, so �gcd(a,b)=1�gcd(a,b)=1�gcd(a,b)=1

    Explanation

    The theorem's stated condition is that aaa and bbb have no common factor other than 111, meaning �gcd(a,b)=1�gcd(a,b)=1�gcd(a,b)=1.

  41. 41

    Under the theorem's coprime-modulus condition, what does it guarantee for the system n�equivr�pmodan �equiv r �pmod an�equivr�pmoda and n�equivs�pmodbn �equiv s �pmod bn�equivs�pmodb?

    1. A

      No solution unless both residues are zero

    2. B

      At least two solutions in the range from 000 to ab−1ab-1ab−1

    3. C

      Exactly one solution among all integers, with no repetitions

    4. D

      Exactly one solution in the range from 000 to ab−1ab-1ab−1

    Correct answer
    D

    Exactly one solution in the range from 000 to ab−1ab-1ab−1

    Explanation

    When aaa and bbb are relatively prime, every pair of residues determines exactly one integer nnn in the range 0�len<ab0 �le n<ab0�len<ab.

  42. 42

    If two integers xxx and yyy have the same remainder modulo both aaa and bbb, what follows?

    1. A

      The integers xxx and yyy must be equal

    2. B

      The product xyxyxy must equal ababab

    3. C

      Both aaa and bbb divide x+yx+yx+y

    4. D

      Both aaa and bbb divide x−yx-yx−y

    Correct answer
    D

    Both aaa and bbb divide x−yx-yx−y

    Explanation

    Matching remainders modulo aaa means their difference is divisible by aaa; matching remainders modulo bbb means it is divisible by bbb as well.

  43. 43

    Why does ababab divide x−yx-yx−y if both aaa and bbb divide x−yx-yx−y and �gcd(a,b)=1�gcd(a,b)=1�gcd(a,b)=1?

    1. A

      The difference must equal ababab whenever both moduli divide it

    2. B

      Any two divisors of an integer always have a product that divides it

    3. C

      The condition �gcd(a,b)=1�gcd(a,b)=1�gcd(a,b)=1 means a=ba=ba=b

    4. D

      Relatively prime divisors contribute independent factors, so their product divides the difference

    Correct answer
    D

    Relatively prime divisors contribute independent factors, so their product divides the difference

    Explanation

    When aaa and bbb are relatively prime, divisibility by each separately implies divisibility by their product. This need not hold for moduli with a common factor.

  44. 44

    In the uniqueness argument for the Chinese remainder theorem, why is ab�mid(x−y)ab �mid (x-y)ab�mid(x−y) impossible when xxx and yyy are distinct integers between 000 and ab−1ab-1ab−1?

    1. A

      Every integer in that range is already divisible by ababab

    2. B

      Their difference must equal 111, which is never divisible by ababab

    3. C

      Their difference must be negative, so it cannot be divisible

    4. D

      Their nonzero difference has magnitude less than ababab, so it cannot be a nonzero multiple of ababab

    Correct answer
    D

    Their nonzero difference has magnitude less than ababab, so it cannot be a nonzero multiple of ababab

    Explanation

    Distinct integers in the range 000 through ab−1ab-1ab−1 differ by a nonzero amount whose magnitude is less than ababab. No such difference can be a multiple of ababab.

  45. 45

    Why does proving that distinct integers in the range 000 to ab−1ab-1ab−1 cannot have the same residue pair also establish that every residue pair occurs?

    1. A

      The mapping is onto because every pair contains a zero residue

    2. B

      There are ababab integers in the range and ababab possible residue pairs, so an injective mapping between them must also be onto

    3. C

      The two moduli have a+ba+ba+b possible residue pairs, fewer than the integers

    4. D

      Each integer has only one possible residue pair, so every pair must occur automatically

    Correct answer
    B

    There are ababab integers in the range and ababab possible residue pairs, so an injective mapping between them must also be onto

    Explanation

    There are ababab possible integers and ababab pairs of residues. Since no two integers map to the same pair, all pairs must be reached.

  46. 46

    To construct a solution with residue ttt modulo bbb, why write n=kb+tn=kb+tn=kb+t?

    1. A

      It encodes the condition n�equivt�pmodbn �equiv t �pmod bn�equivt�pmodb directly

    2. B

      It makes nnn equal to the product of the two moduli

    3. C

      It encodes the condition n�equivk�pmodtn �equiv k �pmod tn�equivk�pmodt directly

    4. D

      It guarantees that nnn is prime

    Correct answer
    A

    It encodes the condition n�equivt�pmodbn �equiv t �pmod bn�equivt�pmodb directly

    Explanation

    Writing n=kb+tn=kb+tn=kb+t means that division by bbb leaves remainder ttt, which is exactly the congruence condition modulo bbb.

  47. 47

    Given n=kb+tn=kb+tn=kb+t and the additional condition n�equivs�pmodan �equiv s �pmod an�equivs�pmoda, how can one solve for kkk?

    1. A

      Use k�equiva−1(s+t)�pmodbk �equiv a^{-1}(s+t) �pmod bk�equiva−1(s+t)�pmodb, since aaa must be larger

    2. B

      Use k�equivb−1(s−t)�pmodak �equiv b^{-1}(s-t) �pmod ak�equivb−1(s−t)�pmoda, since bbb has an inverse modulo aaa

    3. C

      Use k=s−tk=s-tk=s−t, because the moduli cancel

    4. D

      Use k�equivs+t�pmodabk �equiv s+t �pmod{ab}k�equivs+t�pmodab, without any inverse

    Correct answer
    B

    Use k�equivb−1(s−t)�pmodak �equiv b^{-1}(s-t) �pmod ak�equivb−1(s−t)�pmoda, since bbb has an inverse modulo aaa

    Explanation

    Substitution gives kb+t�equivs�pmodakb+t �equiv s �pmod akb+t�equivs�pmoda, so kb�equivs−t�pmodakb �equiv s-t �pmod akb�equivs−t�pmoda. Since �gcd(a,b)=1�gcd(a,b)=1�gcd(a,b)=1, bbb has an inverse modulo aaa, allowing the equation to be solved for kkk.

  48. 48

    In the streaming illustration, what information can a transmitted snippet provide about a large file represented by an integer NNN?

    1. A

      The full prime factorization of NNN

    2. B

      A modulus aia_iai​ and the remainder of NNN when divided by aia_iai​

    3. C

      The exact value of NNN without any additional snippets

    4. D

      The quotient of NNN by every possible integer

    Correct answer
    B

    A modulus aia_iai​ and the remainder of NNN when divided by aia_iai​

    Explanation

    Each illustrated snippet consists of a chosen modulus aia_iai​ and the residue of the file integer NNN modulo that modulus.

  49. 49

    In the streaming illustration, why can a collection of residue snippets reconstruct the file integer?

    1. A

      Any single residue gives the complete value of NNN

    2. B

      Once the product of the pairwise coprime moduli exceeds NNN, the residues identify NNN uniquely

    3. C

      The moduli can be added to recover NNN without using the residues

    4. D

      The product of the moduli must be smaller than every possible value of NNN

    Correct answer
    B

    Once the product of the pairwise coprime moduli exceeds NNN, the residues identify NNN uniquely

    Explanation

    The Chinese remainder principle identifies a unique value over a range determined by the product of the coprime moduli. If that range is large enough to include NNN, the collected residues can reconstruct it.

  50. 50

    Why can repeated broadcasting of different snippets help multiple viewers receive the same large file?

    1. A

      Repeated broadcasting makes the file integer smaller

    2. B

      Each viewer can collect enough compatible residues to reconstruct the file, even if they receive different snippets

    3. C

      Every viewer must receive the snippets in exactly the same order

    4. D

      A viewer can reconstruct the file from any one snippet, regardless of its modulus

    Correct answer
    B

    Each viewer can collect enough compatible residues to reconstruct the file, even if they receive different snippets

    Explanation

    The illustration's key idea is that viewers need enough residue information to reconstruct the file; they do not necessarily need to receive identical snippets.

  51. 51

    In the card-based zero-knowledge illustration, what outcome is intended to signal that both participants chose to see the movie?

    1. A

      Three black cards appear consecutively in the cyclic arrangement

    2. B

      All five cards appear in alternating colors

    3. C

      Three red cards appear consecutively in the cyclic arrangement

    4. D

      The two black cards are separated by exactly one red card

    Correct answer
    C

    Three red cards appear consecutively in the cyclic arrangement

    Explanation

    The demonstration is arranged so that, if both participants answer yes, the combined cyclic arrangement has three red cards in a row.

  52. 52

    What is the purpose of randomly cutting the stacked cards in the demonstration?

    1. A

      To ensure that every card is turned face down

    2. B

      To apply a cyclic shift so the arrangement's starting position does not reveal a participant's choice

    3. C

      To change the number of red and black cards

    4. D

      To make the cards' colors impossible to distinguish

    Correct answer
    B

    To apply a cyclic shift so the arrangement's starting position does not reveal a participant's choice

    Explanation

    A random cut changes the starting point of the cyclic arrangement, helping prevent the visible starting position from revealing which participant made which choice.

  53. 53

    What is the central privacy goal of the card-based zero-knowledge illustration?

    1. A

      Prevent the participants from learning whether they agree

    2. B

      Prove that the movie is objectively good without using any private information

    3. C

      Reveal whether both participants agree while allowing an individual to avoid directly disclosing their choice

    4. D

      Reveal both participants' individual choices to everyone watching

    Correct answer
    C

    Reveal whether both participants agree while allowing an individual to avoid directly disclosing their choice

    Explanation

    The demonstration illustrates how an outcome can reveal whether both parties agree without requiring each person to openly announce their choice, supporting plausible deniability.

Question 1 of 53
Question 1 of 53

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent