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

  • 41Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Number Theory Foundations

What does Bézout's identity guarantee for any integers aaa and bbb?

41 questions

  1. 1

    What does Bézout's identity guarantee for any integers aaa and bbb?

    1. A

      There are integers sss and ttt such that gcd⁡(a,b)=as+bt\gcd(a,b)=as+btgcd(a,b)=as+bt.

    2. B

      There are positive integers sss and ttt such that a=bs+bta=bs+bta=bs+bt.

    3. C

      There are integers sss and ttt such that ab=s+tab=s+tab=s+t.

    4. D

      There are integers sss and ttt such that gcd⁡(a,b)=a+b+st\gcd(a,b)=a+b+stgcd(a,b)=a+b+st.

    Correct answer
    A

    There are integers sss and ttt such that gcd⁡(a,b)=as+bt\gcd(a,b)=as+btgcd(a,b)=as+bt.

    Explanation

    Bézout's identity states that the greatest common divisor of aaa and bbb can be written as an integer linear combination, as+btas+btas+bt.

  2. 2

    What is the role of the pulverizer, or extended Euclidean algorithm, in using Bézout's identity?

    1. A

      It efficiently computes coefficients expressing the gcd as a linear combination.

    2. B

      It determines the prime factorization of every linear combination.

    3. C

      It finds the quotient and remainder for every pair of inputs.

    4. D

      It efficiently lists every integer divisible by either input.

    Correct answer
    A

    It efficiently computes coefficients expressing the gcd as a linear combination.

    Explanation

    The extended Euclidean algorithm efficiently computes the coefficients sss and ttt in a Bézout identity.

  3. 3

    When can an integer be written as an integer linear combination of aaa and bbb?

    1. A

      Exactly when it is relatively prime to both aaa and bbb.

    2. B

      Exactly when it is divisible by both aaa and bbb.

    3. C

      Exactly when it is greater than both aaa and bbb.

    4. D

      Exactly when it is divisible by gcd⁡(a,b)\gcd(a,b)gcd(a,b).

    Correct answer
    D

    Exactly when it is divisible by gcd⁡(a,b)\gcd(a,b)gcd(a,b).

    Explanation

    An integer is an integer linear combination of aaa and bbb if and only if it is divisible by their gcd.

  4. 4

    What does the division theorem guarantee when dividing an integer nnn by a positive integer ddd?

    1. A

      A unique pair of integers q,rq,rq,r with n=qd+rn=qd+rn=qd+r and −d<r<0-d<r<0−d<r<0.

    2. B

      A pair of integers q,rq,rq,r with n=qd+rn=qd+rn=qd+r and 0<r≤d0<r\le d0<r≤d.

    3. C

      A unique pair of positive integers q,rq,rq,r with n=qd+rn=qd+rn=qd+r.

    4. D

      A unique pair of integers q,rq,rq,r with n=qd+rn=qd+rn=qd+r and 0≤r<d0\le r<d0≤r<d.

    Correct answer
    D

    A unique pair of integers q,rq,rq,r with n=qd+rn=qd+rn=qd+r and 0≤r<d0\le r<d0≤r<d.

    Explanation

    For d>0d>0d>0, the division theorem gives a unique quotient qqq and remainder rrr satisfying n=qd+rn=qd+rn=qd+r and 0≤r<d0\le r<d0≤r<d.

  5. 5

    In the division theorem, which terms name qqq and rrr in n=qd+rn=qd+rn=qd+r?

    1. A

      qqq is the divisor, and rrr is the dividend.

    2. B

      qqq is the quotient, and rrr is the remainder.

    3. C

      qqq is the dividend, and rrr is the divisor.

    4. D

      qqq is the remainder, and rrr is the quotient.

    Correct answer
    B

    qqq is the quotient, and rrr is the remainder.

    Explanation

    In the division theorem, qqq is called the quotient and rrr is called the remainder.

  6. 6

    What is the central idea of modular arithmetic?

    1. A

      Numbers are grouped by their remainders, ignoring differences that are multiples of the modulus.

    2. B

      Numbers are grouped only when they have the same absolute value.

    3. C

      Numbers are replaced by their prime factors, ignoring their remainders.

    4. D

      Numbers are grouped by their quotients, ignoring differences that are less than the modulus.

    Correct answer
    A

    Numbers are grouped by their remainders, ignoring differences that are multiples of the modulus.

    Explanation

    Working modulo nnn focuses on remainders and treats differences by multiples of nnn as irrelevant.

  7. 7

    Why is modular arithmetic often described as clock arithmetic?

    1. A

      A clock converts every time interval into a prime number of minutes.

    2. B

      A clock cycles through a fixed set of positions, so elapsed full cycles can be ignored.

    3. C

      A clock displays a different remainder for every full cycle completed.

    4. D

      A clock measures only the quotient when dividing elapsed time by twelve.

    Correct answer
    B

    A clock cycles through a fixed set of positions, so elapsed full cycles can be ignored.

    Explanation

    Clock readings repeat after a fixed number of units, so full cycles can be ignored and only the remainder matters.

  8. 8

    Which condition defines the congruence a≡b(modn)a\equiv b\pmod na≡b(modn)?

    1. A

      aaa and bbb have the same quotient when divided by nnn.

    2. B

      aaa divides b−nb-nb−n.

    3. C

      nnn is equal to a−ba-ba−b.

    4. D

      nnn divides a−ba-ba−b.

    Correct answer
    D

    nnn divides a−ba-ba−b.

    Explanation

    By definition, aaa is congruent to bbb modulo nnn precisely when a−ba-ba−b is divisible by nnn.

  9. 9

    What is an equivalent way to test whether a≡b(modn)a\equiv b\pmod na≡b(modn)?

    1. A

      Check whether aaa and bbb have the same quotient when divided by nnn.

    2. B

      Check whether aaa and bbb have the same remainder when divided by nnn.

    3. C

      Check whether their quotients differ by exactly one.

    4. D

      Check whether their remainders add to nnn.

    Correct answer
    B

    Check whether aaa and bbb have the same remainder when divided by nnn.

    Explanation

    Two integers are congruent modulo nnn if and only if their remainders on division by nnn are equal.

  10. 10

    How many distinct residue classes are there modulo a positive integer nnn?

    1. A

      There are n−1n-1n−1 classes, represented by 1,2,…,n−11,2,\ldots,n-11,2,…,n−1.

    2. B

      There are n+1n+1n+1 classes, represented by 0,1,…,n0,1,\ldots,n0,1,…,n.

    3. C

      There are nnn classes, represented by 0,1,…,n−10,1,\ldots,n-10,1,…,n−1.

    4. D

      There are infinitely many classes because the integers are infinite.

    Correct answer
    C

    There are nnn classes, represented by 0,1,…,n−10,1,\ldots,n-10,1,…,n−1.

    Explanation

    The nnn possible remainders from 000 through n−1n-1n−1 represent all residue classes modulo nnn.

  11. 11

    Which integers belong to the residue class of 111 modulo 555?

    1. A

      Only the integers 1,6,111,6,111,6,11, because negative integers are excluded.

    2. B

      All integers whose difference from 111 is divisible by 555, such as 1,6,11,−41,6,11,-41,6,11,−4.

    3. C

      All integers whose quotient on division by 555 is 111.

    4. D

      All integers whose difference from 111 is divisible by 444, such as 1,5,9,−31,5,9,-31,5,9,−3.

    Correct answer
    B

    All integers whose difference from 111 is divisible by 555, such as 1,6,11,−41,6,11,-41,6,11,−4.

    Explanation

    The class of 111 modulo 555 consists of integers of the form 1+5k1+5k1+5k for integer kkk, including negative values such as −4-4−4.

  12. 12

    How can you identify the residue class of an integer kkk modulo 555?

    1. A

      Find the greatest multiple of 555 less than kkk and use that multiple.

    2. B

      Use the quotient from dividing kkk by 555, regardless of the remainder.

    3. C

      Divide 555 by kkk and use the quotient in the range 000 through 444.

    4. D

      Divide kkk by 555 and use the remainder in the range 000 through 444.

    Correct answer
    D

    Divide kkk by 555 and use the remainder in the range 000 through 444.

    Explanation

    The residue class is determined by the remainder when kkk is divided by 555; the remainder is one of 0,1,2,3,40,1,2,3,40,1,2,3,4.

  13. 13

    Why do equal remainders imply congruence modulo nnn?

    1. A

      Writing a=qn+ra=qn+ra=qn+r and b=q′n+rb=q'n+rb=q′n+r makes a−b=q−q′a-b=q-q'a−b=q−q′, which must be zero.

    2. B

      Equal remainders force both numbers to have the same quotient.

    3. C

      Writing a=qn+ra=qn+ra=qn+r and b=q′n+rb=q'n+rb=q′n+r makes a−b=n(q−q′)a-b=n(q-q')a−b=n(q−q′), a multiple of nnn.

    4. D

      Equal remainders imply that a+ba+ba+b is a multiple of nnn.

    Correct answer
    C

    Writing a=qn+ra=qn+ra=qn+r and b=q′n+rb=q'n+rb=q′n+r makes a−b=n(q−q′)a-b=n(q-q')a−b=n(q−q′), a multiple of nnn.

    Explanation

    If the remainders agree, subtracting the division forms cancels rrr and leaves a multiple of nnn.

  14. 14

    Why does a≡b(modn)a\equiv b\pmod na≡b(modn) imply that aaa and bbb have the same remainder modulo nnn?

    1. A

      Their difference is zero, so their quotients must also be zero.

    2. B

      Their sum is a multiple of nnn, so both remainders must be zero.

    3. C

      Their quotients are equal by definition of congruence.

    4. D

      Their difference is a multiple of nnn, so adding that multiple changes the quotient but not the remainder.

    Correct answer
    D

    Their difference is a multiple of nnn, so adding that multiple changes the quotient but not the remainder.

    Explanation

    If a=b+kna=b+kna=b+kn for an integer kkk, then the two numbers differ only by full multiples of nnn. The division theorem's uniqueness gives them the same remainder.

  15. 15

    What is the relationship between the residue classes modulo nnn and all the integers?

    1. A

      The residue classes contain only nonnegative integers and omit negative integers.

    2. B

      The residue classes cover only integers that are multiples of nnn.

    3. C

      The residue classes overlap so that every integer belongs to all of them.

    4. D

      The residue classes partition the integers, placing each integer in exactly one class.

    Correct answer
    D

    The residue classes partition the integers, placing each integer in exactly one class.

    Explanation

    Every integer has exactly one remainder from 000 to n−1n-1n−1, so it belongs to exactly one of the residue classes.

  16. 16

    Under the convention used in the content, what range is used for the remainder when the divisor is positive?

    1. A

      The remainder is nonnegative and strictly less than the divisor.

    2. B

      The remainder is always positive and can equal the divisor.

    3. C

      The remainder must equal the quotient or be greater than it.

    4. D

      The remainder can be negative but must have absolute value less than the divisor.

    Correct answer
    A

    The remainder is nonnegative and strictly less than the divisor.

    Explanation

    The convention is the division theorem's range: for positive divisor nnn, the remainder satisfies 0≤r<n0\le r<n0≤r<n, including when the dividend is negative.

  17. 17

    Why can the notation a=b mod na=b\text{ mod }na=b mod n be confusing?

    1. A

      It means that aaa is the quotient and bbb is the remainder.

    2. B

      It is valid only when nnn is prime.

    3. C

      It can blur the distinction between a congruence relation and a remainder function that returns a value.

    4. D

      It always means that aaa and bbb have different remainders modulo nnn.

    Correct answer
    C

    It can blur the distinction between a congruence relation and a remainder function that returns a value.

    Explanation

    The notation can make a congruence relation look like an equality involving a remainder function. Writing a≡b(modn)a\equiv b\pmod na≡b(modn) for congruence helps distinguish the ideas.

  18. 18

    If a≡b(modn)a\equiv b\pmod na≡b(modn), which addition rule is always valid?

    1. A

      a+c≡c−b(modn)a+c\equiv c-b\pmod na+c≡c−b(modn) for every integer ccc.

    2. B

      a+c≡b−c(modn)a+c\equiv b-c\pmod na+c≡b−c(modn) for every integer ccc.

    3. C

      a+c≡b+c(modn)a+c\equiv b+c\pmod na+c≡b+c(modn) for every integer ccc.

    4. D

      a+c≡b(modn)a+c\equiv b\pmod na+c≡b(modn) only when ccc is a multiple of nnn.

    Correct answer
    C

    a+c≡b+c(modn)a+c\equiv b+c\pmod na+c≡b+c(modn) for every integer ccc.

    Explanation

    Adding the same integer to congruent numbers preserves their congruence modulo nnn.

  19. 19

    If a≡b(modn)a\equiv b\pmod na≡b(modn), which subtraction statement is guaranteed?

    1. A

      a−c≡b+c(modn)a-c\equiv b+c\pmod na−c≡b+c(modn) for every integer ccc.

    2. B

      a−c≡b−c(modn)a-c\equiv b-c\pmod na−c≡b−c(modn) for every integer ccc.

    3. C

      a−c≡c−b(modn)a-c\equiv c-b\pmod na−c≡c−b(modn) only when c=nc=nc=n.

    4. D

      a−c≡b(modn)a-c\equiv b\pmod na−c≡b(modn) for every integer ccc.

    Correct answer
    B

    a−c≡b−c(modn)a-c\equiv b-c\pmod na−c≡b−c(modn) for every integer ccc.

    Explanation

    Subtracting the same integer from both sides preserves congruence modulo nnn.

  20. 20

    If a≡b(modn)a\equiv b\pmod na≡b(modn), what relationship holds after subtracting each from the same integer ccc?

    1. A

      c−a≡a−c(modn)c-a\equiv a-c\pmod nc−a≡a−c(modn) for every a,b,ca,b,ca,b,c.

    2. B

      c−a≡b−c(modn)c-a\equiv b-c\pmod nc−a≡b−c(modn).

    3. C

      c−a≡c+b(modn)c-a\equiv c+b\pmod nc−a≡c+b(modn).

    4. D

      c−a≡c−b(modn)c-a\equiv c-b\pmod nc−a≡c−b(modn).

    Correct answer
    D

    c−a≡c−b(modn)c-a\equiv c-b\pmod nc−a≡c−b(modn).

    Explanation

    Since a−ba-ba−b is a multiple of nnn, the difference (c−a)−(c−b)=b−a(c-a)-(c-b)=b-a(c−a)−(c−b)=b−a is also a multiple of nnn.

  21. 21

    If a≡b(modn)a\equiv b\pmod na≡b(modn), what happens when both sides are multiplied by an integer ccc?

    1. A

      a+c≡bc(modn)a+c\equiv bc\pmod na+c≡bc(modn).

    2. B

      ac≡bc(modn)ac\equiv bc\pmod nac≡bc(modn).

    3. C

      ac≡b+c(modn)ac\equiv b+c\pmod nac≡b+c(modn).

    4. D

      ac≡b(modn)ac\equiv b\pmod nac≡b(modn) only when c=1c=1c=1.

    Correct answer
    B

    ac≡bc(modn)ac\equiv bc\pmod nac≡bc(modn).

    Explanation

    Multiplying a difference divisible by nnn by ccc still gives a multiple of nnn, so multiplication preserves congruence.

  22. 22

    If a≡b(modn)a\equiv b\pmod na≡b(modn) and ccc is a positive integer, what can be concluded about their powers?

    1. A

      ac≡bc(modn)a^c\equiv b^c\pmod nac≡bc(modn).

    2. B

      ac≡bc(modn)a^c\equiv b^c\pmod nac≡bc(modn) only when nnn is prime.

    3. C

      No relationship between the powers can be concluded.

    4. D

      ac≡b(modn)a^c\equiv b\pmod nac≡b(modn) for every positive ccc.

    Correct answer
    A

    ac≡bc(modn)a^c\equiv b^c\pmod nac≡bc(modn).

    Explanation

    Repeated multiplication preserves congruence, so the congruent bases raised to the same positive integer power remain congruent.

  23. 23

    Which example shows why congruent exponents cannot generally be substituted into a power?

    1. A

      Although 1≡6(mod5)1\equiv6\pmod51≡6(mod5), 212^121 and 262^626 are equal as integers.

    2. B

      Although 1≡6(mod5)1\equiv6\pmod51≡6(mod5), (−1)1(-1)^1(−1)1 and (−1)6(-1)^6(−1)6 are not congruent modulo 555.

    3. C

      Because 111 and 666 have different remainders modulo 555, this cannot test exponent substitution.

    4. D

      Because (−1)1≡(−1)6(mod5)(-1)^1\equiv(-1)^6\pmod5(−1)1≡(−1)6(mod5), exponent substitution always works.

    Correct answer
    B

    Although 1≡6(mod5)1\equiv6\pmod51≡6(mod5), (−1)1(-1)^1(−1)1 and (−1)6(-1)^6(−1)6 are not congruent modulo 555.

    Explanation

    The exponents 111 and 666 are congruent modulo 555, but the powers are −1-1−1 and 111, which are not congruent modulo 555. Thus exponents cannot generally be reduced modulo the modulus.

  24. 24

    When simplifying a large expression modulo 100100100, why may 113351133511335 be replaced by 353535?

    1. A

      Their difference is divisible by 353535, so they are congruent modulo 353535.

    2. B

      They have the same remainder modulo 100100100, so congruent values can be substituted in modular arithmetic.

    3. C

      The first two digits of any number can always be discarded in modular arithmetic.

    4. D

      They have the same quotient when divided by 100100100, so their powers are equal.

    Correct answer
    B

    They have the same remainder modulo 100100100, so congruent values can be substituted in modular arithmetic.

    Explanation

    Since 11335−3511335-3511335−35 is divisible by 100100100, the numbers are congruent modulo 100100100 and can be interchanged in a computation modulo 100100100.

  25. 25

    What is the remainder of 1133511111⋅6+7799500011335^{11111}\cdot6+7799^{5000}1133511111⋅6+77995000 when divided by $100?

    1. A

      777

    2. B

      111

    3. C

      757575

    4. D

      252525

    Correct answer
    D

    252525

    Explanation

    Modulo 100100100, 11335≡3511335\equiv3511335≡35 and 7799≡−17799\equiv-17799≡−1. The power (−1)5000(-1)^{5000}(−1)5000 is 111, while 3511111≡7535^{11111}\equiv753511111≡75. Thus the expression is congruent to 75⋅6+1=45175\cdot6+1=45175⋅6+1=451, whose remainder is 515151.

  26. 26

    What conclusion follows from the fact that only 100100100 residue values are possible modulo 100100100?

    1. A

      Every power modulo 100100100 must eventually equal zero.

    2. B

      Every sequence of powers modulo 100100100 repeats after exactly two terms.

    3. C

      A sufficiently long sequence of powers modulo 100100100 must repeat a residue, after which a repeating pattern occurs.

    4. D

      No power sequence modulo 100100100 can repeat unless its base is prime.

    Correct answer
    C

    A sufficiently long sequence of powers modulo 100100100 must repeat a residue, after which a repeating pattern occurs.

    Explanation

    There are only 100100100 possible residues. Once a residue repeats in a sequence formed by repeatedly multiplying by the same base, the subsequent values repeat as well.

  27. 27

    Why is cancellation invalid in 3x≡3(mod6)3x\equiv3\pmod63x≡3(mod6) if one concludes x≡1(mod6)x\equiv1\pmod6x≡1(mod6)?

    1. A

      The original congruence has no solutions because 333 is not prime.

    2. B

      Cancellation is invalid because the right-hand side is not a multiple of 666.

    3. C

      The conclusion is valid only if xxx is an even integer.

    4. D

      For example, x=3x=3x=3 satisfies the original congruence but is not congruent to 111 modulo 666.

    Correct answer
    D

    For example, x=3x=3x=3 satisfies the original congruence but is not congruent to 111 modulo 666.

    Explanation

    Taking x=3x=3x=3 gives 3x=9≡3(mod6)3x=9\equiv3\pmod63x=9≡3(mod6), but 3≢1(mod6)3\not\equiv1\pmod63≡1(mod6). Thus cancellation by 333 is not valid here.

  28. 28

    Why does 333 have no multiplicative inverse modulo 666?

    1. A

      The inverse exists, but it must be greater than 666.

    2. B

      The inverse exists only when the modulus is divisible by 333.

    3. C

      There is no integer aaa such that 3a≡1(mod6)3a\equiv1\pmod63a≡1(mod6), since 333 is odd.

    4. D

      There is no integer aaa such that 3a≡1(mod6)3a\equiv1\pmod63a≡1(mod6), since gcd⁡(3,6)=3\gcd(3,6)=3gcd(3,6)=3.

    Correct answer
    D

    There is no integer aaa such that 3a≡1(mod6)3a\equiv1\pmod63a≡1(mod6), since gcd⁡(3,6)=3\gcd(3,6)=3gcd(3,6)=3.

    Explanation

    An inverse would require 3a−13a-13a−1 to be divisible by 666, which is impossible. Equivalently, gcd⁡(3,6)≠1\gcd(3,6)\ne1gcd(3,6)=1.

  29. 29

    What is a multiplicative inverse of xxx modulo nnn?

    1. A

      A number yyy such that x+y≡1(modn)x+y\equiv1\pmod nx+y≡1(modn).

    2. B

      A number yyy such that xy≡0(modn)xy\equiv0\pmod nxy≡0(modn).

    3. C

      A number yyy such that x−y≡0(modn)x-y\equiv0\pmod nx−y≡0(modn).

    4. D

      A number yyy such that xy≡1(modn)xy\equiv1\pmod nxy≡1(modn).

    Correct answer
    D

    A number yyy such that xy≡1(modn)xy\equiv1\pmod nxy≡1(modn).

    Explanation

    A multiplicative inverse is defined by the condition that its product with the original number is congruent to 111 modulo the modulus.

  30. 30

    Why are 222 and 333 multiplicative inverses of each other modulo 555?

    1. A

      Their sum is 555, and 5≡1(mod5)5\equiv1\pmod55≡1(mod5).

    2. B

      Their product is 555, and 5≡1(mod5)5\equiv1\pmod55≡1(mod5).

    3. C

      Their difference is 111, and 1≡0(mod5)1\equiv0\pmod51≡0(mod5).

    4. D

      Their product is 666, and 6≡1(mod5)6\equiv1\pmod56≡1(mod5).

    Correct answer
    D

    Their product is 666, and 6≡1(mod5)6\equiv1\pmod56≡1(mod5).

    Explanation

    Since 2⋅3=62\cdot3=62⋅3=6 and 666 differs from 111 by a multiple of 555, their product is congruent to 111 modulo 555.

  31. 31

    When does an integer aaa have a multiplicative inverse modulo nnn?

    1. A

      Exactly when aaa and nnn are both prime.

    2. B

      Exactly when gcd⁡(a,n)=1\gcd(a,n)=1gcd(a,n)=1.

    3. C

      Exactly when aaa is a multiple of nnn.

    4. D

      Exactly when a<na<na<n and nnn is even.

    Correct answer
    B

    Exactly when gcd⁡(a,n)=1\gcd(a,n)=1gcd(a,n)=1.

    Explanation

    An inverse exists if and only if aaa and nnn are relatively prime, meaning their gcd is 111.

  32. 32

    How does Bézout's identity explain the criterion for an inverse modulo nnn?

    1. A

      If gcd⁡(a,n)=1\gcd(a,n)=1gcd(a,n)=1, then a+n=1a+n=1a+n=1, giving a≡1(modn)a\equiv1\pmod na≡1(modn).

    2. B

      An inverse exists whenever ab+qnab+qnab+qn is divisible by nnn.

    3. C

      If gcd⁡(a,n)=1\gcd(a,n)=1gcd(a,n)=1, then 1=ab+qn1=ab+qn1=ab+qn for some integers b,qb,qb,q, giving ab≡1(modn)ab\equiv1\pmod nab≡1(modn).

    4. D

      If gcd⁡(a,n)>1\gcd(a,n)>1gcd(a,n)>1, then 1=ab+qn1=ab+qn1=ab+qn for some integers b,qb,qb,q.

    Correct answer
    C

    If gcd⁡(a,n)=1\gcd(a,n)=1gcd(a,n)=1, then 1=ab+qn1=ab+qn1=ab+qn for some integers b,qb,qb,q, giving ab≡1(modn)ab\equiv1\pmod nab≡1(modn).

    Explanation

    When the gcd is 111, Bézout's identity expresses 111 as a linear combination of aaa and nnn. Reducing that equation modulo nnn shows that bbb is an inverse of aaa.

  33. 33

    How can 7x≡14(mod30)7x\equiv14\pmod{30}7x≡14(mod30) be solved for xxx?

    1. A

      Since 7+30=377+30=377+30=37, add 373737 to both sides to obtain x≡2(mod30)x\equiv2\pmod{30}x≡2(mod30).

    2. B

      Since gcd⁡(7,30)=1\gcd(7,30)=1gcd(7,30)=1, multiply by the inverse 131313 to obtain x≡2(mod30)x\equiv2\pmod{30}x≡2(mod30).

    3. C

      Since 777 divides 141414, cancel 777 to obtain x≡1(mod30)x\equiv1\pmod{30}x≡1(mod30).

    4. D

      Since gcd⁡(7,30)=1\gcd(7,30)=1gcd(7,30)=1, divide the modulus by 777 to obtain x≡14(mod30)x\equiv14\pmod{30}x≡14(mod30).

    Correct answer
    B

    Since gcd⁡(7,30)=1\gcd(7,30)=1gcd(7,30)=1, multiply by the inverse 131313 to obtain x≡2(mod30)x\equiv2\pmod{30}x≡2(mod30).

    Explanation

    The number 131313 is an inverse of 777 modulo 303030 because 7⋅13=91≡1(mod30)7\cdot13=91\equiv1\pmod{30}7⋅13=91≡1(mod30). Multiplying both sides by 131313 gives x≡182≡2(mod30)x\equiv182\equiv2\pmod{30}x≡182≡2(mod30).

  34. 34

    What does Fermat's Little Theorem state when ppp is prime and aaa is not divisible by ppp?

    1. A

      ap−1≡0(modp)a^{p-1}\equiv0\pmod pap−1≡0(modp).

    2. B

      ap−1≡1(modp)a^{p-1}\equiv1\pmod pap−1≡1(modp).

    3. C

      ap≡a(modp−1)a^p\equiv a\pmod{p-1}ap≡a(modp−1).

    4. D

      ap≡1(modp−1)a^p\equiv1\pmod{p-1}ap≡1(modp−1).

    Correct answer
    B

    ap−1≡1(modp)a^{p-1}\equiv1\pmod pap−1≡1(modp).

    Explanation

    Fermat's Little Theorem states that if ppp is prime and ppp does not divide aaa, then ap−1a^{p-1}ap−1 is congruent to 111 modulo ppp.

  35. 35

    Why is the condition that aaa is not divisible by ppp necessary in Fermat's Little Theorem?

    1. A

      If ppp divides aaa, then ap−1≡0(modp)a^{p-1}\equiv0\pmod pap−1≡0(modp), not 111.

    2. B

      If ppp divides aaa, then ap−1≡p−1(modp)a^{p-1}\equiv p-1\pmod pap−1≡p−1(modp).

    3. C

      If ppp divides aaa, then ppp is no longer prime.

    4. D

      If ppp divides aaa, then ap−1a^{p-1}ap−1 is undefined.

    Correct answer
    A

    If ppp divides aaa, then ap−1≡0(modp)a^{p-1}\equiv0\pmod pap−1≡0(modp), not 111.

    Explanation

    When a≡0(modp)a\equiv0\pmod pa≡0(modp), any positive power of aaa is also congruent to 000, so the theorem's conclusion would fail.

  36. 36

    In the standard proof of Fermat's Little Theorem, why are a,2a,…,(p−1)aa,2a,\ldots,(p-1)aa,2a,…,(p−1)a all nonzero modulo ppp?

    1. A

      Every product is a multiple of ppp, but its remainder is defined to be nonzero.

    2. B

      The products are nonzero because aaa must be larger than ppp.

    3. C

      Neither aaa nor any coefficient from 111 to p−1p-1p−1 is divisible by the prime ppp, so their products are not divisible by ppp.

    4. D

      The coefficients are all equal to p−1p-1p−1 modulo ppp.

    Correct answer
    C

    Neither aaa nor any coefficient from 111 to p−1p-1p−1 is divisible by the prime ppp, so their products are not divisible by ppp.

    Explanation

    Since ppp is prime and does not divide aaa or any coefficient 1,2,…,p−11,2,\ldots,p-11,2,…,p−1, it cannot divide their products.

  37. 37

    Why are the values a,2a,…,(p−1)aa,2a,\ldots,(p-1)aa,2a,…,(p−1)a distinct modulo ppp in the proof?

    1. A

      The values are distinct only when a=1a=1a=1.

    2. B

      If ia≡ja(modp)ia\equiv ja\pmod pia≡ja(modp), the invertibility of aaa modulo ppp gives i≡j(modp)i\equiv j\pmod pi≡j(modp), and the coefficients are therefore equal.

    3. C

      If ia≡ja(modp)ia\equiv ja\pmod pia≡ja(modp), primality forces iii and jjj to be prime.

    4. D

      The values are distinct because their ordinary integer sizes increase.

    Correct answer
    B

    If ia≡ja(modp)ia\equiv ja\pmod pia≡ja(modp), the invertibility of aaa modulo ppp gives i≡j(modp)i\equiv j\pmod pi≡j(modp), and the coefficients are therefore equal.

    Explanation

    Because ppp does not divide aaa, aaa has an inverse modulo ppp. Cancelling aaa shows that equal products require equal coefficients modulo ppp; coefficients from 111 to p−1p-1p−1 then must be equal.

  38. 38

    What results from multiplying all the congruences represented by the list a,2a,…,(p−1)aa,2a,\ldots,(p-1)aa,2a,…,(p−1)a in the proof?

    1. A

      (p−1)!≡ap−1+pemainderp(p-1)!\equiv a^{p-1}+p emainder p(p−1)!≡ap−1+pemainderp.

    2. B

      (p−1)!≡a(p−1)(modp)(p-1)!\equiv a(p-1)\pmod p(p−1)!≡a(p−1)(modp).

    3. C

      p!≡ap(p−1)!emainderpp!\equiv a^{p}(p-1)! emainder pp!≡ap(p−1)!emainderp.

    4. D

      (p−1)!≡ap−1(p−1)!(modp)(p-1)!\equiv a^{p-1}(p-1)!\pmod p(p−1)!≡ap−1(p−1)!(modp).

    Correct answer
    D

    (p−1)!≡ap−1(p−1)!(modp)(p-1)!\equiv a^{p-1}(p-1)!\pmod p(p−1)!≡ap−1(p−1)!(modp).

    Explanation

    The coefficients multiply to (p−1)!(p-1)!(p−1)!, and the product contains p−1p-1p−1 factors of aaa, giving ap−1(p−1)!a^{p-1}(p-1)!ap−1(p−1)!.

  39. 39

    Why can (p−1)!(p-1)!(p−1)! be cancelled from the product congruence modulo prime ppp?

    1. A

      None of its factors is divisible by ppp, so (p−1)!(p-1)!(p−1)! has an inverse modulo ppp.

    2. B

      It is divisible by ppp, so both sides can be divided by ppp.

    3. C

      Its value is always equal to 111 modulo ppp.

    4. D

      It can be cancelled for every modulus, whether or not the modulus is prime.

    Correct answer
    A

    None of its factors is divisible by ppp, so (p−1)!(p-1)!(p−1)! has an inverse modulo ppp.

    Explanation

    Each factor from 111 through p−1p-1p−1 is nonzero modulo ppp. Their product is therefore relatively prime to ppp and has a multiplicative inverse modulo ppp.

  40. 40

    What reduction of the exponent does Fermat's Little Theorem permit when working modulo a prime ppp with a base not divisible by ppp?

    1. A

      Every exponent can be replaced by its remainder modulo ppp.

    2. B

      Every exponent can be reduced to zero modulo p−1p-1p−1.

    3. C

      Exponents that differ by a multiple of p−1p-1p−1 give congruent powers modulo ppp.

    4. D

      Exponents that differ by a multiple of ppp always give congruent powers modulo ppp.

    Correct answer
    C

    Exponents that differ by a multiple of p−1p-1p−1 give congruent powers modulo ppp.

    Explanation

    Since ap−1≡1(modp)a^{p-1}\equiv1\pmod pap−1≡1(modp), factors of ap−1a^{p-1}ap−1 can be removed, so exponents can be reduced modulo p−1p-1p−1 under the theorem's conditions.

  41. 41

    What is the remainder of 7957^{95}795 when divided by 131313?

    1. A

      111

    2. B

      222

    3. C

      777

    4. D

      111111

    Correct answer
    B

    222

    Explanation

    Since 131313 is prime and 777 is not divisible by 131313, reduce the exponent modulo 121212: 795≡711(mod13)7^{95}\equiv7^{11}\pmod{13}795≡711(mod13). Fermat's theorem gives 712≡17^{12}\equiv1712≡1, so 7117^{11}711 is the inverse of 777 modulo 131313. Since 7⋅2=14≡1(mod13)7\cdot2=14\equiv1\pmod{13}7⋅2=14≡1(mod13), the remainder is 222.

Question 1 of 41
Question 1 of 41

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent