1. Home
  2. Explore
  3. Mathematics
  4. Number Theory and Cryptography

Study methods

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

Number Theory and Cryptography

  • 105Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Divisibility and Modular Arithmetic

When does an integer aaa divide an integer bbb?

105 questions

  1. 1

    When does an integer aaa divide an integer bbb?

    1. A

      When the quotient of bbb divided by aaa is always positive

    2. B

      When aaa can be written as bbb times a positive integer

    3. C

      When subtracting aaa from bbb gives a positive result

    4. D

      When bbb can be written as aaa times an integer

    Correct answer
    D

    When bbb can be written as aaa times an integer

    Explanation

    By definition, aaa divides bbb if there is an integer ccc such that b=acb=acb=ac. Equivalently, division leaves no remainder.

  2. 2

    If aaa divides both bbb and ccc, which conclusion must hold?

    1. A

      aaa divides bcbcbc only when ccc is a positive integer

    2. B

      aaa divides b−cb-cb−c only when bbb and ccc are positive

    3. C

      aaa divides b+cb+cb+c and every integer linear combination of bbb and ccc

    4. D

      aaa divides b+cb+cb+c only when bbb and ccc are equal

    Correct answer
    C

    aaa divides b+cb+cb+c and every integer linear combination of bbb and ccc

    Explanation

    Writing b=asb=asb=as and c=atc=atc=at shows that b+c=a(s+t)b+c=a(s+t)b+c=a(s+t). The divisibility rules also imply that aaa divides mb+ncmb+ncmb+nc for integers m,nm,nm,n.

  3. 3

    If aaa divides bbb and bbb divides ccc, what follows?

    1. A

      bbb must be the greatest common divisor of aaa and ccc

    2. B

      aaa and ccc must be equal

    3. C

      ccc divides aaa

    4. D

      aaa divides ccc

    Correct answer
    D

    aaa divides ccc

    Explanation

    If b=asb=asb=as and c=btc=btc=bt, then c=a(st)c=a(st)c=a(st), so ccc is an integer multiple of aaa.

  4. 4

    What does the division algorithm guarantee for an integer dividend aaa and positive divisor ddd?

    1. A

      A unique quotient qqq and remainder rrr with a=dq+ra=dq+ra=dq+r and 0≤r<d0\le r<d0≤r<d

    2. B

      A quotient and remainder with a=qd+ra=qd+ra=qd+r and −d<r<d-d<r<d−d<r<d

    3. C

      A quotient and remainder with a=dr+qa=dr+qa=dr+q and 0≤q<d0\le q<d0≤q<d

    4. D

      A unique quotient and positive remainder with a=dq+ra=dq+ra=dq+r and 0<r≤d0<r\le d0<r≤d

    Correct answer
    A

    A unique quotient qqq and remainder rrr with a=dq+ra=dq+ra=dq+r and 0≤r<d0\le r<d0≤r<d

    Explanation

    The quotient and remainder are unique, and the remainder must be nonnegative and smaller than the positive divisor.

  5. 5

    What quotient and remainder result when −11-11−11 is divided by 333 under the division algorithm?

    1. A

      Quotient −3-3−3 and remainder −2-2−2

    2. B

      Quotient −4-4−4 and remainder −1-1−1

    3. C

      Quotient −4-4−4 and remainder 111

    4. D

      Quotient −3-3−3 and remainder 222

    Correct answer
    C

    Quotient −4-4−4 and remainder 111

    Explanation

    The required remainder is nonnegative and less than 333. Since −11=3(−4)+1-11=3(-4)+1−11=3(−4)+1, the quotient is −4-4−4 and the remainder is 111.

  6. 6

    What is the defining test for aaa to be congruent to bbb modulo a positive integer mmm?

    1. A

      a−ba-ba−b is positive and smaller than mmm

    2. B

      aaa divides the difference b−mb-mb−m

    3. C

      aaa and bbb are both smaller than mmm

    4. D

      mmm divides the difference a−ba-ba−b

    Correct answer
    D

    mmm divides the difference a−ba-ba−b

    Explanation

    Congruence modulo mmm means that a−ba-ba−b is an integer multiple of mmm.

  7. 7

    Which statement captures the remainder interpretation of congruence?

    1. A

      Two integers are congruent modulo mmm whenever their sum is divisible by $m

    2. B

      Two integers are congruent modulo mmm exactly when their quotients upon division by mmm are equal

    3. C

      Two integers are congruent modulo mmm exactly when they have the same remainder upon division by $m

    4. D

      Two integers are congruent modulo mmm whenever both are smaller than mmm

    Correct answer
    C

    Two integers are congruent modulo mmm exactly when they have the same remainder upon division by $m

    Explanation

    The difference of two integers is divisible by mmm exactly when their remainders after division by mmm agree.

  8. 8

    How does the relation “congruent modulo mmm” differ from the function “mod mmm”?

    1. A

      The relation returns a remainder; the function tests whether two numbers are equivalent

    2. B

      The relation tests whether two numbers are equivalent; the function returns a remainder

    3. C

      Both are relations that compare two quotients

    4. D

      Both are functions that return the quotient of a division

    Correct answer
    B

    The relation tests whether two numbers are equivalent; the function returns a remainder

    Explanation

    Congruence is a yes-or-no relation between integers, whereas taking a number modulo mmm gives its remainder.

  9. 9

    If aaa is congruent to bbb modulo mmm and ccc is congruent to ddd modulo mmm, which operations preserve the congruence?

    1. A

      Replacing either side by any unrelated integer

    2. B

      Dividing corresponding sides and taking square roots

    3. C

      Comparing the quotients and subtracting the moduli

    4. D

      Adding corresponding sides and multiplying corresponding sides

    Correct answer
    D

    Adding corresponding sides and multiplying corresponding sides

    Explanation

    Congruences are preserved under addition and multiplication: the sums are congruent, and the products are congruent.

  10. 10

    Why is it generally unsafe to divide both sides of a congruence by the same integer?

    1. A

      Division always changes the modulus to zero

    2. B

      The quotients may be negative, which is never allowed in modular arithmetic

    3. C

      Congruences permit multiplication but forbid every form of subtraction

    4. D

      The divisor may share a factor with the modulus, so the resulting congruence need not hold

    Correct answer
    D

    The divisor may share a factor with the modulus, so the resulting congruence need not hold

    Explanation

    For example, 141414 is congruent to 888 modulo 666, but dividing both by 222 gives 777 and 444, which are not congruent modulo 666.

  11. 11

    Which statement correctly describes arithmetic modulo mmm on the set of remainders from 000 to m−1m-1m−1?

    1. A

      Addition is allowed, but multiplication can produce answers outside the set permanently

    2. B

      The set excludes zero so that addition has an identity

    3. C

      Every nonzero element must have a multiplicative inverse

    4. D

      Addition and multiplication reduce the result modulo mmm, so answers remain in the set

    Correct answer
    D

    Addition and multiplication reduce the result modulo mmm, so answers remain in the set

    Explanation

    After ordinary addition or multiplication, reducing modulo mmm returns the result to the set of remainders. Multiplicative inverses do not always exist; for instance, 222 has no inverse modulo 666.

  12. 12

    How can large sums or products modulo mmm be computed without first forming the full large result?

    1. A

      Round each input down to the nearest multiple of mmm before operating

    2. B

      Divide each input by mmm and multiply the quotients

    3. C

      Add or multiply the inputs, then discard the remainder

    4. D

      Reduce each input modulo mmm, perform the operation on the remainders, then reduce again

    Correct answer
    D

    Reduce each input modulo mmm, perform the operation on the remainders, then reduce again

    Explanation

    Congruence is preserved by addition and multiplication, so reducing the inputs first gives the same final remainder while keeping intermediate values small.

  13. 13

    Why can any integer greater than one be represented uniquely in base bbb, where b>1b>1b>1?

    1. A

      Its expansion uses one digit for each factor in its prime factorization

    2. B

      It has a unique expansion using digits from 000 to b−1b-1b−1 as coefficients of powers of bbb, with a nonzero leading digit

    3. C

      Its digits must be powers of bbb rather than coefficients of powers of bbb

    4. D

      It can be represented only if every digit is smaller than the leading digit

    Correct answer
    B

    It has a unique expansion using digits from 000 to b−1b-1b−1 as coefficients of powers of bbb, with a nonzero leading digit

    Explanation

    A base-bbb expansion expresses a number as a sum of digits times powers of bbb. The digits range from 000 through b−1b-1b−1, and the representation is unique.

  14. 14

    What does the decimal numeral 965965965 represent in positional notation?

    1. A

      999 tens, 666 hundreds, and 555 thousands

    2. B

      999 hundreds, 666 tens, and 555 ones

    3. C

      999 ones, 666 tens, and 555 hundreds

    4. D

      999 powers of 555, 666 powers of 101010, and 555 powers of 222

    Correct answer
    B

    999 hundreds, 666 tens, and 555 ones

    Explanation

    In base ten, the digits represent coefficients of descending powers of ten: 9⋅102+6⋅10+59\cdot10^2+6\cdot10+59⋅102+6⋅10+5.

  15. 15

    Why are binary digits particularly suitable for computer hardware?

    1. A

      They ensure that every integer is prime or a power of two

    2. B

      They allow every number to be stored without using place values

    3. C

      They make every arithmetic operation require only one bit

    4. D

      They correspond naturally to two states, such as a wire being on or off

    Correct answer
    D

    They correspond naturally to two states, such as a wire being on or off

    Explanation

    Binary uses only 000 and 111, which can represent two distinguishable hardware states such as off and on.

  16. 16

    Which digit set is used in hexadecimal notation?

    1. A

      The symbols 000 through 999, followed by AAA through ZZZ

    2. B

      The symbols 000 through 777, followed by AAA through HHH

    3. C

      The symbols 000 and 111 only

    4. D

      The symbols 000 through 999, followed by AAA through FFF

    Correct answer
    D

    The symbols 000 through 999, followed by AAA through FFF

    Explanation

    Base sixteen needs sixteen digit values: 000 through 999 represent zero through nine, and AAA through FFF represent ten through fifteen.

  17. 17

    Which description correctly distinguishes octal from binary notation?

    1. A

      Octal uses digits 000 through 777 and powers of eight; binary uses 000 and 111 and powers of two

    2. B

      Octal uses digits 000 through 888 and powers of eight; binary uses 000 through 222 and powers of two

    3. C

      Octal uses powers of two; binary uses powers of eight

    4. D

      Octal and binary use the same digits but assign them different names

    Correct answer
    A

    Octal uses digits 000 through 777 and powers of eight; binary uses 000 and 111 and powers of two

    Explanation

    Octal is base eight, so its digits range from zero to seven. Binary is base two and uses only zero and one.

  18. 18

    Why can binary be converted to octal or hexadecimal by regrouping bits rather than performing arithmetic?

    1. A

      Both bases use the same digit symbols as binary

    2. B

      Every binary number has exactly three octal digits and four hexadecimal digits

    3. C

      Each octal digit corresponds to four bits, and each hexadecimal digit corresponds to three bits

    4. D

      Each octal digit corresponds to three bits, and each hexadecimal digit corresponds to four bits

    Correct answer
    D

    Each octal digit corresponds to three bits, and each hexadecimal digit corresponds to four bits

    Explanation

    Since 8=238=2^38=23 and 16=2416=2^416=24, binary bits can be grouped in threes for octal or fours for hexadecimal. Padding zeros on the left may be needed.

  19. 19

    What is the standard repeated-division method for converting a positive integer to base bbb?

    1. A

      Repeatedly multiply by bbb, record each quotient, and read the quotients in reverse order

    2. B

      Repeatedly subtract bbb and use the number of subtractions as the digits

    3. C

      Divide once by bbb and use the quotient as the entire base-bbb representation

    4. D

      Repeatedly divide by bbb, record each remainder, and read the remainders in reverse order

    Correct answer
    D

    Repeatedly divide by bbb, record each remainder, and read the remainders in reverse order

    Explanation

    Each remainder gives the next digit starting from the rightmost place. Repeatedly dividing the quotient produces the remaining digits, which are read in reverse order.

  20. 20

    In binary addition, what does the carry at a bit position represent?

    1. A

      The remainder after dividing the two input numbers by two

    2. B

      The final result of the entire addition before the bits are written

    3. C

      The portion of the sum that contributes to the next higher bit position

    4. D

      The number of zero bits to the right of the current position

    Correct answer
    C

    The portion of the sum that contributes to the next higher bit position

    Explanation

    At each bit, the two input bits and incoming carry are added. The resulting carry moves to the next position, while the sum bit remains at the current position.

  21. 21

    Why does adding two nnn-bit integers take O(n)O(n)O(n) bit operations?

    1. A

      The number of carries is always exactly one

    2. B

      The algorithm performs n2n^2n2 additions, each on a single bit

    3. C

      The algorithm's work depends only on the numerical value, not the number of bits

    4. D

      The algorithm performs a bounded amount of work at each of the nnn bit positions

    Correct answer
    D

    The algorithm performs a bounded amount of work at each of the nnn bit positions

    Explanation

    Each position requires only a fixed amount of work to compute a sum bit and carry, so the total work grows linearly with the number of bit positions.

  22. 22

    How does the shifted-partial-products method multiply binary integers?

    1. A

      It converts both factors to decimal and multiplies their digits independently

    2. B

      It adds the two factors repeatedly until their bits are exhausted

    3. C

      For each 000 bit of one factor, it multiplies the other factor by the bit position

    4. D

      For each 111 bit of one factor, it adds a shifted copy of the other factor

    Correct answer
    D

    For each 111 bit of one factor, it adds a shifted copy of the other factor

    Explanation

    A bit at position jjj contributes either zero or a copy of the other factor shifted left by jjj places, equivalent to multiplying it by 2j2^j2j.

  23. 23

    Why does the described multiplication algorithm take O(n2)O(n^2)O(n2) bit operations for two nnn-bit integers?

    1. A

      It uses nnn additions, each of which takes n2n^2n2 bit operations

    2. B

      It performs one operation for each possible integer below the product

    3. C

      It forms about nnn partial products and combines them using about nnn work per product

    4. D

      It must test all 2n2^n2n possible bit strings

    Correct answer
    C

    It forms about nnn partial products and combines them using about nnn work per product

    Explanation

    There are nnn partial products, and adding each costs on the order of nnn bit operations, giving an overall cost on the order of n2n^2n2.

  24. 24

    What is the central idea behind repeated squaring for computing a large power?

    1. A

      Repeatedly divide the exponent by the base until the quotient is zero

    2. B

      Build successive powers by squaring and multiply only those matching the exponent's 111 bits

    3. C

      Convert the base to binary and add its digits

    4. D

      Multiply the base by itself once for every integer up to the exponent

    Correct answer
    B

    Build successive powers by squaring and multiply only those matching the exponent's 111 bits

    Explanation

    Writing the exponent in binary expresses the power as a product of selected powers whose exponents are powers of two. These can be built by repeated squaring.

  25. 25

    Why is modular repeated squaring useful in cryptography?

    1. A

      It requires exactly one operation regardless of the exponent's size

    2. B

      It reduces intermediate values modulo mmm while requiring only a number of stages proportional to the exponent's bit length

    3. C

      It guarantees that every result is prime

    4. D

      It avoids multiplication entirely by replacing each power with a remainder

    Correct answer
    B

    It reduces intermediate values modulo mmm while requiring only a number of stages proportional to the exponent's bit length

    Explanation

    The algorithm reduces after each multiplication, keeping values small, and processes the exponent one bit at a time rather than performing a number of multiplications proportional to the exponent itself.

  26. 26

    Which definition distinguishes a prime from a composite positive integer?

    1. A

      A prime greater than one has only 111 and itself as positive divisors; a composite greater than one does not

    2. B

      A prime has an even number of positive divisors; a composite has an odd number

    3. C

      A prime is divisible by every smaller integer; a composite is divisible only by one

    4. D

      A prime is any positive integer, including one, with no negative factors

    Correct answer
    A

    A prime greater than one has only 111 and itself as positive divisors; a composite greater than one does not

    Explanation

    A prime has exactly two positive divisors, one and itself. A composite integer greater than one has additional positive divisors; one is neither prime nor composite.

  27. 27

    What does the Fundamental Theorem of Arithmetic assert about integers greater than one?

    1. A

      Each has exactly one prime factor

    2. B

      Each has a prime factorization that is unique up to the order of the factors

    3. C

      Each can be factored into smaller integers in exactly one order

    4. D

      Each is either prime or has two different prime factorizations

    Correct answer
    B

    Each has a prime factorization that is unique up to the order of the factors

    Explanation

    Every integer greater than one is a product of primes, and once the prime factors are listed in a fixed order, that factorization is unique.

  28. 28

    Why is it sufficient to test prime divisors up to n\sqrt{n}n​ when checking whether nnn is composite?

    1. A

      A factor greater than n\sqrt{n}n​ cannot be an integer

    2. B

      All primes greater than n\sqrt{n}n​ divide nnn evenly

    3. C

      Every composite number has exactly one prime divisor below n\sqrt{n}n​

    4. D

      If nnn is a product of two factors, at least one factor must be no greater than n\sqrt{n}n​

    Correct answer
    D

    If nnn is a product of two factors, at least one factor must be no greater than n\sqrt{n}n​

    Explanation

    If both factors were greater than n\sqrt{n}n​, their product would exceed nnn. Thus a composite nnn must have a factor, and therefore a prime divisor, no greater than its square root.

  29. 29

    How does the Sieve of Eratosthenes identify primes up to a chosen limit?

    1. A

      Keep each smallest uncrossed number and cross out its larger multiples

    2. B

      Keep only numbers that are divisible by two or three

    3. C

      List all products of pairs of numbers and keep the products

    4. D

      Cross out every number that has no factor larger than its square root

    Correct answer
    A

    Keep each smallest uncrossed number and cross out its larger multiples

    Explanation

    Starting with the smallest uncrossed number, the sieve keeps it and crosses out its other multiples. The uncrossed numbers remaining are prime.

  30. 30

    What is the limitation of trial division as a primality test for very large integers?

    1. A

      It works only for even integers

    2. B

      It can prove that a number is composite but never that it is prime

    3. C

      It may require testing an enormous number of candidates up to the square root

    4. D

      It requires the number to have a known prime factorization first

    Correct answer
    C

    It may require testing an enormous number of candidates up to the square root

    Explanation

    Trial division is correct, but the number of possible divisors up to the square root becomes impractically large for integers with many digits.

  31. 31

    What is the key contradiction in Euclid's proof that there are infinitely many primes?

    1. A

      A number formed as the product of all listed primes plus one is divisible by none of them

    2. B

      The sum of all listed primes is always prime

    3. C

      A finite list of primes must contain every composite integer

    4. D

      Every listed prime must divide the next integer after the list

    Correct answer
    A

    A number formed as the product of all listed primes plus one is divisible by none of them

    Explanation

    If a finite list contained all primes, form their product plus one. No listed prime divides it, so it is prime itself or has a prime factor missing from the list.

  32. 32

    Which statement about Mersenne primes is correct?

    1. A

      Every number of the form 2p−12^p-12p−1 is prime whenever ppp is prime

    2. B

      A number of the form 2p−12^p-12p−1 can be prime only when ppp is composite

    3. C

      A Mersenne prime has the form 2p−12^p-12p−1 for a prime ppp, and a prime exponent does not guarantee the result is prime

    4. D

      A Mersenne prime has the form p2−1p^2-1p2−1 for any integer ppp

    Correct answer
    C

    A Mersenne prime has the form 2p−12^p-12p−1 for a prime ppp, and a prime exponent does not guarantee the result is prime

    Explanation

    Mersenne primes are primes of the form 2p−12^p-12p−1 with prime exponent ppp. For example, 211−1=20472^{11}-1=2047211−1=2047 is composite despite 111111 being prime.

  33. 33

    What does the prime number theorem say about the number of primes up to a large xxx?

    1. A

      The count is exactly x/2x/2x/2 for every even xxx

    2. B

      The count remains constant after the first million integers

    3. C

      The count is approximately ln⁡(x)/x\ln(x)/xln(x)/x, with the estimate worsening as xxx grows

    4. D

      The count is approximately x/ln⁡(x)x/\ln(x)x/ln(x), with the estimate improving as xxx grows

    Correct answer
    D

    The count is approximately x/ln⁡(x)x/\ln(x)x/ln(x), with the estimate improving as xxx grows

    Explanation

    The prime number theorem estimates the number of primes up to xxx by x/ln⁡(x)x/\ln(x)x/ln(x). Equivalently, a randomly selected integer near nnn has an approximate prime probability of 1/ln⁡(n)1/\ln(n)1/ln(n).

  34. 34

    What is the status of Goldbach's conjecture?

    1. A

      It claims there are only finitely many pairs of twin primes

    2. B

      It claims every prime is the sum of two even numbers, and it is a theorem

    3. C

      It claims every odd integer is a sum of three squares, and it has been disproved

    4. D

      It claims every even integer greater than two is a sum of two primes, but it remains unproved

    Correct answer
    D

    It claims every even integer greater than two is a sum of two primes, but it remains unproved

    Explanation

    Goldbach's conjecture states that every even number greater than two can be expressed as a sum of two primes. Extensive checking has not replaced a proof.

  35. 35

    Which description correctly characterizes the twin prime conjecture?

    1. A

      It predicts that every prime has another prime exactly two places later, and this is proven

    2. B

      It predicts infinitely many primes that are squares

    3. C

      It states that any two primes are relatively prime only when they differ by two

    4. D

      It predicts infinitely many prime pairs differing by two, but no proof is known

    Correct answer
    D

    It predicts infinitely many prime pairs differing by two, but no proof is known

    Explanation

    Twin primes are pairs such as 333 and 555 or 111111 and 131313. The conjecture that infinitely many such pairs exist remains unproved.

  36. 36

    What does the example n2−n+41n^2-n+41n2−n+41 illustrate?

    1. A

      Every nonconstant polynomial with integer coefficients produces only primes

    2. B

      The value of a polynomial cannot be composite when its input is prime

    3. C

      A run of forty prime outputs proves that a polynomial always gives primes

    4. D

      A formula can produce many primes in a row and still fail for a later input

    Correct answer
    D

    A formula can produce many primes in a row and still fail for a later input

    Explanation

    The expression is prime for inputs from 111 through 404040, but at n=41n=41n=41 it equals 41241^2412, which is composite. Evidence from many cases is not proof.

  37. 37

    What is the greatest common divisor of two integers?

    1. A

      The largest integer that divides at least one of them

    2. B

      The product of their distinct prime factors

    3. C

      The largest positive integer that divides both of them

    4. D

      The smallest positive integer that is a multiple of both

    Correct answer
    C

    The largest positive integer that divides both of them

    Explanation

    The greatest common divisor is the largest shared positive divisor. The smallest positive common multiple is instead the least common multiple.

  38. 38

    What does it mean for two integers to be relatively prime?

    1. A

      Both integers are prime

    2. B

      Their least common multiple is one

    3. C

      They have no prime divisors in either factorization

    4. D

      Their greatest common divisor is one

    Correct answer
    D

    Their greatest common divisor is one

    Explanation

    Relatively prime integers share no positive divisor other than one; neither number needs to be prime itself.

  39. 39

    When is a list of integers pairwise relatively prime?

    1. A

      When every pair in the list has greatest common divisor one

    2. B

      When every entry in the list is prime

    3. C

      When the greatest common divisor of the entire list is one

    4. D

      When at least one pair in the list has greatest common divisor one

    Correct answer
    A

    When every pair in the list has greatest common divisor one

    Explanation

    Pairwise relative primality requires every pair to be relatively prime. A single pair sharing a factor makes the whole list fail this condition.

  40. 40

    How is a greatest common divisor obtained from prime factorizations?

    1. A

      Add the exponents of every prime in both factorizations

    2. B

      For each prime, use the smaller exponent appearing in the two factorizations

    3. C

      Use only the primes that occur in exactly one factorization

    4. D

      For each prime, use the larger exponent appearing in the two factorizations

    Correct answer
    B

    For each prime, use the smaller exponent appearing in the two factorizations

    Explanation

    The greatest common divisor contains only shared prime factors, each raised to the smaller of its exponents in the two numbers.

  41. 41

    How is the least common multiple obtained from prime factorizations?

    1. A

      For each prime, use the larger exponent appearing in the two factorizations

    2. B

      Use only primes that occur in both factorizations with equal exponents

    3. C

      For each prime, use the smaller exponent appearing in the two factorizations

    4. D

      Subtract the exponents in the smaller factorization from those in the larger

    Correct answer
    A

    For each prime, use the larger exponent appearing in the two factorizations

    Explanation

    A common multiple must include enough copies of each prime to cover both numbers, so the larger exponent is used for each prime.

  42. 42

    Which identity links two positive integers, their greatest common divisor, and their least common multiple?

    1. A

      Their product equals their greatest common divisor times their least common multiple

    2. B

      Their product equals the square of their greatest common divisor

    3. C

      Their sum equals their greatest common divisor times their least common multiple

    4. D

      Their difference equals their greatest common divisor plus their least common multiple

    Correct answer
    A

    Their product equals their greatest common divisor times their least common multiple

    Explanation

    For positive integers aaa and bbb, ab=gcd⁡(a,b)lcm⁡(a,b)ab=\gcd(a,b)\operatorname{lcm}(a,b)ab=gcd(a,b)lcm(a,b). For each prime, the smaller and larger exponents together reproduce the exponents in the product.

  43. 43

    Why is prime factorization usually not the preferred way to find the greatest common divisor of very large integers?

    1. A

      The formula requires the numbers to be relatively prime already

    2. B

      Finding the prime factorizations can be difficult, even though the gcd formula itself is simple

    3. C

      Prime factorizations do not contain enough information to determine a gcd

    4. D

      A greatest common divisor cannot have any prime factors

    Correct answer
    B

    Finding the prime factorizations can be difficult, even though the gcd formula itself is simple

    Explanation

    Once factorizations are known, the gcd is easy to compute by taking minimum exponents. The difficult part for large numbers is finding those factorizations.

  44. 44

    What is the key replacement rule in the Euclidean algorithm?

    1. A

      Replace the pair (a,b)(a,b)(a,b) by (a−b,a+b)(a-b,a+b)(a−b,a+b) until both values are prime

    2. B

      Replace the larger number by the quotient and keep the smaller number unchanged

    3. C

      Replace the pair (a,b)(a,b)(a,b) by (b,r)(b,r)(b,r), where rrr is the remainder when aaa is divided by bbb

    4. D

      Replace each number by its prime factors and discard common ones

    Correct answer
    C

    Replace the pair (a,b)(a,b)(a,b) by (b,r)(b,r)(b,r), where rrr is the remainder when aaa is divided by bbb

    Explanation

    If a=bq+ra=bq+ra=bq+r, then gcd⁡(a,b)=gcd⁡(b,r)\gcd(a,b)=\gcd(b,r)gcd(a,b)=gcd(b,r). Repeating this replacement preserves the gcd while making the numbers smaller.

  45. 45

    Why must the Euclidean algorithm eventually stop?

    1. A

      The gcd becomes zero after the first division

    2. B

      Each remainder is a nonnegative integer smaller than the preceding divisor

    3. C

      Each quotient is a prime number smaller than the preceding quotient

    4. D

      The remainders alternate between positive and negative values

    Correct answer
    B

    Each remainder is a nonnegative integer smaller than the preceding divisor

    Explanation

    The nonnegative remainders strictly decrease, and nonnegative integers cannot decrease forever. Eventually a remainder is zero.

  46. 46

    What is the gcd at the end of a Euclidean algorithm run?

    1. A

      The last nonzero remainder

    2. B

      The sum of all remainders

    3. C

      The first quotient

    4. D

      The final zero remainder

    Correct answer
    A

    The last nonzero remainder

    Explanation

    Each division preserves the gcd. The final pair is the last nonzero remainder and zero, whose gcd is the nonzero value.

  47. 47

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

    1. A

      The least common multiple of aaa and bbb is always a linear combination with positive coefficients

    2. B

      There are positive integers sss and ttt such that a=sb+taa=sb+taa=sb+ta

    3. C

      The gcd of aaa and bbb is always their sum

    4. D

      There are integers sss and ttt such that gcd⁡(a,b)=sa+tb\gcd(a,b)=sa+tbgcd(a,b)=sa+tb

    Correct answer
    D

    There are integers sss and ttt such that gcd⁡(a,b)=sa+tb\gcd(a,b)=sa+tbgcd(a,b)=sa+tb

    Explanation

    Bézout's identity expresses the gcd as an integer linear combination of the original numbers. The coefficients may be negative.

  48. 48

    How does the extended Euclidean algorithm differ from the basic Euclidean algorithm?

    1. A

      It finds the least common multiple but not the greatest common divisor

    2. B

      It continues after the remainder becomes zero to find more prime factors

    3. C

      It avoids division and uses only prime factorization

    4. D

      It tracks Bézout coefficients during the divisions instead of recovering them afterward

    Correct answer
    D

    It tracks Bézout coefficients during the divisions instead of recovering them afterward

    Explanation

    The extended version carries the coefficients along as it performs the Euclidean divisions, avoiding a separate backward-substitution pass.

  49. 49

    If gcd⁡(a,b)=1\gcd(a,b)=1gcd(a,b)=1 and aaa divides bcbcbc, what must follow?

    1. A

      ccc divides aaa

    2. B

      aaa divides bbb

    3. C

      bbb divides ccc

    4. D

      aaa divides ccc

    Correct answer
    D

    aaa divides ccc

    Explanation

    Bézout's identity gives integers s,ts,ts,t with sa+tb=1sa+tb=1sa+tb=1. Multiplying by ccc shows that both terms on the left are divisible by aaa, so their sum ccc is divisible by aaa.

  50. 50

    If a prime divides a product of several integers, what must be true?

    1. A

      It divides every factor individually

    2. B

      It divides exactly two of the factors

    3. C

      It divides at least one factor individually

    4. D

      It divides the sum of all the factors

    Correct answer
    C

    It divides at least one factor individually

    Explanation

    A prime dividing a product must divide at least one factor. This fact supports the proof that prime factorization is unique.

  51. 51

    When does a multiplicative inverse of aaa modulo mmm exist?

    1. A

      When aaa and mmm are both even

    2. B

      When aaa is a multiple of mmm

    3. C

      When aaa and mmm are relatively prime

    4. D

      Whenever mmm is greater than one, regardless of aaa

    Correct answer
    C

    When aaa and mmm are relatively prime

    Explanation

    An inverse is an integer whose product with aaa is congruent to one modulo mmm. Bézout's identity guarantees one when gcd⁡(a,m)=1\gcd(a,m)=1gcd(a,m)=1.

  52. 52

    What is an inverse of aaa modulo mmm?

    1. A

      A number uuu such that a−ua-ua−u is equal to mmm

    2. B

      A number uuu such that uauaua is congruent to 111 modulo mmm

    3. C

      A number uuu such that uuu divides both aaa and mmm

    4. D

      A number uuu such that u+au+au+a is divisible by mmm

    Correct answer
    B

    A number uuu such that uauaua is congruent to 111 modulo mmm

    Explanation

    The defining property is ua≡1(modm)ua\equiv1\pmod mua≡1(modm). It acts like a reciprocal within modular arithmetic.

  53. 53

    Why does Bézout's identity produce an inverse of aaa modulo mmm when gcd⁡(a,m)=1\gcd(a,m)=1gcd(a,m)=1?

    1. A

      It shows that mmm divides aaa and therefore aaa can be canceled

    2. B

      It gives s+t=as+t=as+t=a, so sss must be the reciprocal of aaa

    3. C

      It gives integers s,ts,ts,t with sa+tm=1sa+tm=1sa+tm=1, so reducing modulo mmm leaves sa≡1sa\equiv1sa≡1

    4. D

      It guarantees that aaa and mmm have the same remainder

    Correct answer
    C

    It gives integers s,ts,ts,t with sa+tm=1sa+tm=1sa+tm=1, so reducing modulo mmm leaves sa≡1sa\equiv1sa≡1

    Explanation

    The term tmtmtm is divisible by mmm and becomes zero modulo mmm, leaving sa≡1(modm)sa\equiv1\pmod msa≡1(modm). Thus sss is an inverse.

  54. 54

    How can an inverse of 333 modulo 777 be found from the equation 7=2⋅3+17=2\cdot3+17=2⋅3+1?

    1. A

      Use the quotient 222 directly, so 222 is an inverse

    2. B

      Rearrange to 1=7−2⋅31=7-2\cdot31=7−2⋅3, so −2-2−2 is an inverse and its least nonnegative representative is 555

    3. C

      Rearrange to 1=2⋅7−31=2\cdot7-31=2⋅7−3, so 222 is an inverse

    4. D

      Use the remainder 111 as the inverse, so 111 is an inverse

    Correct answer
    B

    Rearrange to 1=7−2⋅31=7-2\cdot31=7−2⋅3, so −2-2−2 is an inverse and its least nonnegative representative is 555

    Explanation

    The rearrangement gives (−2)3≡1(mod7)(-2)3\equiv1\pmod7(−2)3≡1(mod7). Since −2-2−2 is congruent to 555 modulo 777, both represent the inverse.

  55. 55

    What is the correct first step in solving a linear congruence such as ax≡b(modm)ax\equiv b\pmod max≡b(modm) when aaa has an inverse?

    1. A

      Multiply both sides by the inverse of aaa modulo mmm

    2. B

      Add mmm to the unknown until the coefficient disappears

    3. C

      Replace the modulus with the coefficient aaa

    4. D

      Divide both sides by aaa as an ordinary fraction

    Correct answer
    A

    Multiply both sides by the inverse of aaa modulo mmm

    Explanation

    Multiplication by the modular inverse is safe and changes the left side to xxx. Ordinary division may not preserve a congruence.

  56. 56

    What does the congruence 2x≡3(mod6)2x\equiv3\pmod62x≡3(mod6) illustrate?

    1. A

      A linear congruence can have no solution when the parity requirements conflict

    2. B

      Every linear congruence has exactly one solution class

    3. C

      The modulus can be ignored whenever the coefficient is even

    4. D

      A coefficient with no inverse always gives every possible residue as a solution

    Correct answer
    A

    A linear congruence can have no solution when the parity requirements conflict

    Explanation

    The left side is always even, while the right side is odd, so the congruence cannot hold.

  57. 57

    What does 2x≡2(mod6)2x\equiv2\pmod62x≡2(mod6) show about the solution set of a linear congruence?

    1. A

      It can have more than one solution class, here x≡1x\equiv1x≡1 or x≡4(mod6)x\equiv4\pmod6x≡4(mod6)

    2. B

      It must have no solutions because 222 has no inverse modulo 666

    3. C

      It has every integer as a solution because the right side is divisible by 222

    4. D

      It has exactly one solution class because both sides are even

    Correct answer
    A

    It can have more than one solution class, here x≡1x\equiv1x≡1 or x≡4(mod6)x\equiv4\pmod6x≡4(mod6)

    Explanation

    Both residue classes 111 and 444 make 2x2x2x congruent to 222 modulo 666. Thus not every solvable linear congruence has a unique class.

  58. 58

    When is cancellation valid in a congruence ac≡bc(modm)ac\equiv bc\pmod mac≡bc(modm)?

    1. A

      When ccc and mmm are relatively prime

    2. B

      Whenever ccc is positive

    3. C

      Only when c=mc=mc=m

    4. D

      Whenever aaa and bbb are relatively prime

    Correct answer
    A

    When ccc and mmm are relatively prime

    Explanation

    If gcd⁡(c,m)=1\gcd(c,m)=1gcd(c,m)=1, the factor ccc has an inverse modulo mmm and can be canceled. If it shares a factor with the modulus, cancellation can fail.

  59. 59

    What does the Chinese Remainder Theorem guarantee when the moduli are pairwise relatively prime?

    1. A

      Every congruence in the system has the same remainder

    2. B

      The system has no solutions unless all moduli are prime

    3. C

      The system has exactly one integer solution in all of the integers

    4. D

      A system with specified remainders has a unique solution modulo the product of the moduli

    Correct answer
    D

    A system with specified remainders has a unique solution modulo the product of the moduli

    Explanation

    For pairwise relatively prime moduli, the system has one solution class modulo their product. There are infinitely many integer representatives of that class.

  60. 60

    In the constructive proof of the Chinese Remainder Theorem, why does each term other than the selected one vanish modulo a chosen modulus mkm_kmk​?

    1. A

      Each other term is multiplied by an inverse of mkm_kmk​

    2. B

      The target remainders are all zero

    3. C

      Pairwise relative primality makes every modulus equal to zero

    4. D

      Each other term contains the product of all moduli except its own, which includes mkm_kmk​

    Correct answer
    D

    Each other term contains the product of all moduli except its own, which includes mkm_kmk​

    Explanation

    For an index other than kkk, the corresponding product contains mkm_kmk​ as a factor, so that term is congruent to zero modulo mkm_kmk​. The selected term is arranged to equal the desired remainder.

  61. 61

    What is the main idea of solving a system of congruences by back substitution?

    1. A

      Solve each congruence independently and choose the smallest answer

    2. B

      Turn one congruence into an equation with a parameter, substitute into the next, and continue

    3. C

      Multiply all congruences together and discard every modulus

    4. D

      Replace each unknown with its own modulus until the system becomes linear

    Correct answer
    B

    Turn one congruence into an equation with a parameter, substitute into the next, and continue

    Explanation

    A congruence such as x≡a(modm)x\equiv a\pmod mx≡a(modm) can be written as x=mt+ax=mt+ax=mt+a. Substituting this expression into the next congruence reduces the system one condition at a time.

  62. 62

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

    1. A

      ap+1a^{p+1}ap+1 is congruent to a−1a-1a−1 modulo ppp

    2. B

      apa^pap is congruent to 000 modulo ppp

    3. C

      ap−1a^{p-1}ap−1 is congruent to 111 modulo ppp

    4. D

      ap−1a^{p-1}ap−1 is divisible by every integer smaller than ppp

    Correct answer
    C

    ap−1a^{p-1}ap−1 is congruent to 111 modulo ppp

    Explanation

    For prime ppp and aaa not divisible by ppp, Fermat's Little Theorem gives ap−1≡1(modp)a^{p-1}\equiv1\pmod pap−1≡1(modp). Another form, valid for every integer aaa, is ap≡a(modp)a^p\equiv a\pmod pap≡a(modp).

  63. 63

    How can Fermat's Little Theorem simplify a large exponent modulo a prime?

    1. A

      Divide the base by the exponent until the exponent is smaller than the modulus

    2. B

      Assume every power is congruent to zero once the exponent exceeds ppp

    3. C

      Replace groups of p−1p-1p−1 in the exponent by factors congruent to one, then reduce the remaining power

    4. D

      Replace the base by the prime and leave the exponent unchanged

    Correct answer
    C

    Replace groups of p−1p-1p−1 in the exponent by factors congruent to one, then reduce the remaining power

    Explanation

    When ppp does not divide aaa, the factor ap−1a^{p-1}ap−1 is congruent to one. Writing the exponent as a multiple of p−1p-1p−1 plus a remainder reduces the calculation to the smaller remaining power.

  64. 64

    What is a pseudoprime to base bbb?

    1. A

      An integer that is congruent to a prime modulo every modulus

    2. B

      A composite integer that passes the Fermat-style test bn−1≡1(modn)b^{n-1}\equiv1\pmod nbn−1≡1(modn)

    3. C

      A prime integer that fails every modular exponentiation test

    4. D

      A composite integer that has no prime factors

    Correct answer
    B

    A composite integer that passes the Fermat-style test bn−1≡1(modn)b^{n-1}\equiv1\pmod nbn−1≡1(modn)

    Explanation

    A pseudoprime to base bbb is composite but satisfies the congruence that Fermat's Little Theorem guarantees for primes not dividing the base.

  65. 65

    What can be concluded when a number fails a Fermat-style primality test?

    1. A

      It is composite; passing the test, however, does not prove it is prime

    2. B

      It is prime, but its factors are hidden

    3. C

      It must be a pseudoprime to every possible base

    4. D

      It is either prime or composite with certainty equally divided

    Correct answer
    A

    It is composite; passing the test, however, does not prove it is prime

    Explanation

    A failed test certifies compositeness. A successful test is inconclusive because some composites are pseudoprimes to the tested base.

  66. 66

    What is a primitive root modulo a prime ppp?

    1. A

      A prime that divides every nonzero residue modulo ppp

    2. B

      A number whose successive powers modulo ppp reach every nonzero residue before repeating

    3. C

      A number whose multiples modulo ppp reach every residue, including zero, exactly once

    4. D

      A number whose square is congruent to one modulo ppp

    Correct answer
    B

    A number whose successive powers modulo ppp reach every nonzero residue before repeating

    Explanation

    A primitive root generates all nonzero residues through its powers, each appearing once before the cycle returns to one.

  67. 67

    What is the discrete logarithm of aaa to base rrr modulo ppp?

    1. A

      The remainder when aaa is divided by rrr

    2. B

      The quotient obtained by dividing ppp by rar^ara

    3. C

      The exponent eee such that rer^ere is congruent to aaa modulo ppp

    4. D

      The exponent that makes aea^eae divisible by ppp

    Correct answer
    C

    The exponent eee such that rer^ere is congruent to aaa modulo ppp

    Explanation

    For a primitive root rrr, each nonzero residue aaa corresponds to one exponent in the cycle, and that exponent is its discrete logarithm.

  68. 68

    Why is the discrete logarithm problem useful in cryptography?

    1. A

      Both computing powers and recovering exponents are impossible for ordinary computers

    2. B

      The problem guarantees that every public key is impossible to copy

    3. C

      Computing a modular power is efficient, while recovering its exponent is believed to be difficult for suitable large parameters

    4. D

      Recovering the exponent is faster than computing the modular power

    Correct answer
    C

    Computing a modular power is efficient, while recovering its exponent is believed to be difficult for suitable large parameters

    Explanation

    Modular exponentiation can be done efficiently, but no fast classical method is known for recovering the exponent from a large modular-power result.

  69. 69

    What does a hashing function such as h(k)=k mod mh(k)=k\bmod mh(k)=kmodm do?

    1. A

      Maps a record key to one of the memory locations numbered from zero to m−1m-1m−1

    2. B

      Stores the full key in a location equal to the key's quotient by mmm

    3. C

      Guarantees that different keys receive different memory locations

    4. D

      Encrypts a record so that only a prime key can be read

    Correct answer
    A

    Maps a record key to one of the memory locations numbered from zero to m−1m-1m−1

    Explanation

    Taking the remainder modulo the number of locations maps any key into the available range of location indices.

  70. 70

    Why are collisions unavoidable in a hash table with far fewer locations than possible keys?

    1. A

      Different keys must map to the same location when many more keys than locations are possible

    2. B

      A hash function is required to map every key to a different location

    3. C

      The modulo operation cannot produce every location

    4. D

      Every key is assigned to the first location in the table

    Correct answer
    A

    Different keys must map to the same location when many more keys than locations are possible

    Explanation

    There are more possible keys than slots, so a one-to-one assignment is impossible. A collision occurs when distinct keys map to the same slot.

  71. 71

    How does linear probing handle a collision?

    1. A

      Try successive locations obtained by adding offsets to the hash value, reducing modulo the table size

    2. B

      Move every existing record one position toward the start of memory

    3. C

      Increase the table modulus until the collision disappears

    4. D

      Replace the collided key with the sum of the two keys

    Correct answer
    A

    Try successive locations obtained by adding offsets to the hash value, reducing modulo the table size

    Explanation

    Linear probing tries the original slot, then the next slot, and continues, with reduction modulo the table size making the search wrap around.

  72. 72

    Why are computer-generated numbers from a fixed linear congruential rule called pseudorandom?

    1. A

      The rule generates only prime numbers in a random order

    2. B

      The sequence is truly random because the computer has no fixed instructions

    3. C

      The sequence is produced deterministically by a rule but is intended to look random

    4. D

      The sequence cannot repeat under any choice of parameters

    Correct answer
    C

    The sequence is produced deterministically by a rule but is intended to look random

    Explanation

    A linear congruential generator follows a fixed recurrence, so its output is deterministic even though it may imitate random data.

  73. 73

    In a linear congruential generator, what roles do the seed and modulus play?

    1. A

      The seed is the starting value, and the modulus keeps outputs between zero and m−1m-1m−1

    2. B

      The seed is the multiplier, and the modulus determines the starting value

    3. C

      The seed determines the period exactly, and the modulus is added after every step

    4. D

      The seed is the final output, and the modulus prevents the sequence from repeating

    Correct answer
    A

    The seed is the starting value, and the modulus keeps outputs between zero and m−1m-1m−1

    Explanation

    A generator starts from the seed and repeatedly applies the recurrence modulo mmm, so every output is in the range from zero through m−1m-1m−1.

  74. 74

    What is the period of a pseudorandom sequence?

    1. A

      The largest value the generator can output

    2. B

      The number of parameters used to define the generator

    3. C

      The number of terms produced before the sequence begins repeating

    4. D

      The number of terms that are guaranteed to be prime

    Correct answer
    C

    The number of terms produced before the sequence begins repeating

    Explanation

    The period is the length of the sequence before it repeats. Because each next value depends only on the current value, a repeated value makes the subsequent pattern repeat.

  75. 75

    Why does a pure multiplicative generator with a zero seed remain at zero forever?

    1. A

      With no increment, multiplying the current value zero by the multiplier still gives zero modulo the modulus

    2. B

      Every pure multiplicative generator has a period of one for every seed

    3. C

      The modulus in a multiplicative generator must equal zero

    4. D

      A zero seed is automatically changed to one after the first step

    Correct answer
    A

    With no increment, multiplying the current value zero by the multiplier still gives zero modulo the modulus

    Explanation

    When the increment is zero, the recurrence multiplies the current value by a multiplier. Starting at zero therefore produces zero at every step.

  76. 76

    How does a check digit detect many data-entry errors?

    1. A

      It duplicates the first digit so the computer can compare the two

    2. B

      It guarantees that every valid code is prime

    3. C

      It records the exact identity of the person who entered the code

    4. D

      It is chosen so a weighted sum satisfies a modular condition, which a mistyped digit often disrupts

    Correct answer
    D

    It is chosen so a weighted sum satisfies a modular condition, which a mistyped digit often disrupts

    Explanation

    A check digit is chosen to make a weighted sum equal a required remainder, commonly zero. Changing a digit often changes the sum and causes validation to fail.

  77. 77

    What is the Universal Product Code check-digit rule described in the content?

    1. A

      Add the odd-position digits, multiply the even-position digits by three, and require a prime total

    2. B

      Multiply digits in odd positions by three, add the even-position digits, and require the total to be divisible by ten

    3. C

      Multiply the first digit by ten and require the final digit to equal the remainder

    4. D

      Multiply every digit by its position and require the total to be divisible by eleven

    Correct answer
    B

    Multiply digits in odd positions by three, add the even-position digits, and require the total to be divisible by ten

    Explanation

    The UPC rule weights odd-position digits by three, leaves even-position digits unchanged, and requires the total to be congruent to zero modulo ten.

  78. 78

    Why can the ISBN-10 check digit be represented by the letter X?

    1. A

      The modulo-eleven calculation can produce the value ten, which is written as X

    2. B

      The letter X represents the remainder zero modulo eleven

    3. C

      The check digit is a letter whenever the ISBN begins with zero

    4. D

      The final character is not part of the numerical check

    Correct answer
    A

    The modulo-eleven calculation can produce the value ten, which is written as X

    Explanation

    The ISBN-10 scheme uses modulo eleven, so the check digit can be ten. Since ten is not a single decimal digit, it is represented by X.

  79. 79

    Why does the ISBN-10 rule detect any single-digit error and any transposition of two different digits?

    1. A

      The weighted sum is compared directly with the title's publication year

    2. B

      Every digit in an ISBN is itself prime

    3. C

      Modulo eleven is prime, so nonzero changes cannot be canceled by the position weights in these error patterns

    4. D

      The check digit stores the original order of all ten characters

    Correct answer
    C

    Modulo eleven is prime, so nonzero changes cannot be canceled by the position weights in these error patterns

    Explanation

    The ISBN-10 weighted sum is computed modulo the prime eleven. The nonzero position weights prevent a single-digit change or a swap of two different digits from leaving the check unchanged.

  80. 80

    How does a Caesar cipher encrypt a letter represented by a number ppp from zero to twenty-five?

    1. A

      Add twenty-six and divide by three

    2. B

      Subtract three and reduce modulo twenty-six

    3. C

      Add three and reduce modulo twenty-six

    4. D

      Multiply by three and reduce modulo twenty-five

    Correct answer
    C

    Add three and reduce modulo twenty-six

    Explanation

    The Caesar cipher shifts each letter forward by three positions, using reduction modulo twenty-six to wrap from the end of the alphabet to the beginning.

  81. 81

    How is a Caesar cipher decrypted?

    1. A

      Shift each encoded letter forward by three positions a second time

    2. B

      Reverse the order of all encoded letters

    3. C

      Shift each encoded letter backward by three positions, wrapping around the alphabet

    4. D

      Multiply each letter number by the inverse of three modulo twenty-six

    Correct answer
    C

    Shift each encoded letter backward by three positions, wrapping around the alphabet

    Explanation

    Decryption reverses the encryption shift by subtracting three modulo twenty-six.

  82. 82

    What is the key weakness of a general shift cipher?

    1. A

      It changes every letter into a different number of letters

    2. B

      There are only twenty-six possible shifts, so an attacker can try them all

    3. C

      It has no decryption procedure

    4. D

      Its key must be a prime larger than the alphabet

    Correct answer
    B

    There are only twenty-six possible shifts, so an attacker can try them all

    Explanation

    A shift cipher has only twenty-six possible keys, making exhaustive trial practical.

  83. 83

    What condition makes an affine cipher f(p)=ap+bf(p)=ap+bf(p)=ap+b modulo twenty-six decryptable?

    1. A

      bbb must be relatively prime to twenty-six

    2. B

      aaa must be even and bbb must be odd

    3. C

      aaa must be relatively prime to twenty-six

    4. D

      Both aaa and bbb must be prime numbers

    Correct answer
    C

    aaa must be relatively prime to twenty-six

    Explanation

    The affine map is a bijection exactly when aaa has an inverse modulo twenty-six, which occurs when gcd⁡(a,26)=1\gcd(a,26)=1gcd(a,26)=1.

  84. 84

    How is an affine cipher decrypted once the inverse of aaa modulo twenty-six is known?

    1. A

      Raise the cipher number to the power aaa modulo twenty-six

    2. B

      Compute the inverse of aaa times the cipher number minus bbb, modulo twenty-six

    3. C

      Subtract the cipher number from twenty-six and divide by bbb

    4. D

      Multiply the cipher number by aaa and add bbb, modulo twenty-six

    Correct answer
    B

    Compute the inverse of aaa times the cipher number minus bbb, modulo twenty-six

    Explanation

    From c≡ap+b(mod26)c\equiv ap+b\pmod{26}c≡ap+b(mod26), subtract bbb and multiply by the inverse of aaa to recover ppp.

  85. 85

    Why can letter-frequency analysis help break a shift cipher?

    1. A

      The cipher reveals the key in the most frequent letter

    2. B

      Letter frequencies are unchanged only when the message contains no repeated letters

    3. C

      A shift moves the frequency pattern without changing its relative shape, so common cipher letters can be matched to common English letters

    4. D

      A shift makes every plaintext letter occur equally often

    Correct answer
    C

    A shift moves the frequency pattern without changing its relative shape, so common cipher letters can be matched to common English letters

    Explanation

    A shift consistently substitutes one letter for another, preserving frequency counts up to a relabeling. An attacker can guess that a frequent ciphertext letter represents a common letter such as E.

  86. 86

    What distinguishes a transposition cipher from a substitution cipher?

    1. A

      A transposition rearranges letter positions without changing the letters themselves

    2. B

      A transposition replaces each letter with a fixed different letter

    3. C

      A transposition changes the alphabet size for each block

    4. D

      A transposition encrypts only the most frequent letters

    Correct answer
    A

    A transposition rearranges letter positions without changing the letters themselves

    Explanation

    A transposition cipher applies a permutation to positions in a block. Because it does not alter the letters, single-letter frequency counts remain unchanged.

  87. 87

    How is a transposition cipher decrypted?

    1. A

      Apply the inverse permutation to undo the rearrangement

    2. B

      Subtract the permutation key from each letter number

    3. C

      Apply the same permutation repeatedly until the letters return

    4. D

      Replace each letter with its position in the block

    Correct answer
    A

    Apply the inverse permutation to undo the rearrangement

    Explanation

    The inverse permutation reverses the original movement of each position, restoring the plaintext block.

  88. 88

    What five components make up the general cryptosystem described in the content?

    1. A

      Plaintext set, ciphertext set, keyspace, encryption functions, and decryption functions

    2. B

      Prime numbers, factors, modulus, quotient, and remainder

    3. C

      Alphabet, block size, frequency table, hash, and check digit

    4. D

      Message, sender, receiver, network, and password

    Correct answer
    A

    Plaintext set, ciphertext set, keyspace, encryption functions, and decryption functions

    Explanation

    A cryptosystem is described by its plaintexts, ciphertexts, keys, encryption functions, and decryption functions.

  89. 89

    What requirement must matching encryption and decryption functions satisfy?

    1. A

      Decryption must reveal the key used for encryption

    2. B

      Encryption must produce the same ciphertext for every plaintext

    3. C

      Every ciphertext must correspond to several different plaintexts

    4. D

      Decrypting an encrypted plaintext with the matching key must recover the original plaintext

    Correct answer
    D

    Decrypting an encrypted plaintext with the matching key must recover the original plaintext

    Explanation

    The defining correctness condition is that applying encryption and then the matching decryption returns the original message.

  90. 90

    What is the central difference between private-key and public-key cryptography?

    1. A

      Private-key systems encrypt messages, while public-key systems only verify them

    2. B

      Public-key systems require the sender and receiver to share a secret in advance

    3. C

      Private-key systems share a secret key, while public-key systems allow the encryption key to be public and keep a separate decryption key secret

    4. D

      Private-key systems use numbers, while public-key systems use letters

    Correct answer
    C

    Private-key systems share a secret key, while public-key systems allow the encryption key to be public and keep a separate decryption key secret

    Explanation

    In private-key cryptography, the parties must share and protect a secret. Public-key cryptography separates the public locking key from the receiver's private unlocking key.

  91. 91

    What information forms the RSA public key?

    1. A

      The product (p−1)(q−1)(p-1)(q-1)(p−1)(q−1) and the factorization of nnn

    2. B

      The modulus n=pqn=pqn=pq and an exponent eee relatively prime to (p−1)(q−1)(p-1)(q-1)(p−1)(q−1)

    3. C

      The modulus nnn and an exponent divisible by (p−1)(q−1)(p-1)(q-1)(p−1)(q−1)

    4. D

      The two primes p,qp,qp,q and the private exponent ddd

    Correct answer
    B

    The modulus n=pqn=pqn=pq and an exponent eee relatively prime to (p−1)(q−1)(p-1)(q-1)(p−1)(q−1)

    Explanation

    RSA's public key consists of n=pqn=pqn=pq and eee, chosen so that eee is relatively prime to (p−1)(q−1)(p-1)(q-1)(p−1)(q−1). The primes are distinct and kept secret.

  92. 92

    Why is the RSA exponent eee chosen to be relatively prime to (p−1)(q−1)(p-1)(q-1)(p−1)(q−1)?

    1. A

      It prevents the public exponent from being used in encryption

    2. B

      It makes the modulus nnn a prime number

    3. C

      It ensures that every plaintext block is larger than nnn

    4. D

      That condition guarantees an inverse exponent can be chosen for decryption

    Correct answer
    D

    That condition guarantees an inverse exponent can be chosen for decryption

    Explanation

    The decryption exponent is an inverse of eee modulo (p−1)(q−1)(p-1)(q-1)(p−1)(q−1). Relative primality guarantees that this inverse exists.

  93. 93

    What is the intended security basis of RSA?

    1. A

      Modular exponentiation cannot be performed by an eavesdropper

    2. B

      Multiplying two large primes is easy, while factoring their large product is believed to be difficult

    3. C

      The public modulus is secret, but the prime factors are public

    4. D

      Finding large primes is impossible, while multiplying them is difficult

    Correct answer
    B

    Multiplying two large primes is easy, while factoring their large product is believed to be difficult

    Explanation

    RSA is easy to construct by multiplying large primes, but recovering those factors from their product is believed to be computationally hard. The content emphasizes that this hardness has not been proved.

  94. 94

    Why must RSA plaintext blocks be smaller than the modulus?

    1. A

      The decryption exponent works only on prime plaintext blocks

    2. B

      A block equal to the modulus would reveal the private key

    3. C

      The encryption operates modulo the modulus, so each block must be represented as a value below it

    4. D

      Larger blocks cannot be converted into digits

    Correct answer
    C

    The encryption operates modulo the modulus, so each block must be represented as a value below it

    Explanation

    Each block is encrypted as a modular power. Choosing blocks smaller than nnn ensures they are valid representatives in the intended range.

  95. 95

    How does RSA encrypt a plaintext block MMM using public exponent eee and modulus nnn?

    1. A

      Compute M+eM+eM+e modulo nnn

    2. B

      Compute MeM^eMe modulo nnn

    3. C

      Compute eMe^MeM modulo nnn

    4. D

      Divide MMM by nnn and multiply the quotient by eee

    Correct answer
    B

    Compute MeM^eMe modulo nnn

    Explanation

    RSA encryption applies modular exponentiation: the ciphertext is Me mod nM^e\bmod nMemodn. Repeated squaring makes this calculation practical without forming the full power.

  96. 96

    How is the RSA decryption exponent ddd used?

    1. A

      Compute dCd^CdC modulo nnn to recover the public key

    2. B

      Multiply the ciphertext by ddd and divide by the modulus

    3. C

      Add ddd to the ciphertext until it is less than nnn

    4. D

      Compute CdC^dCd modulo nnn to recover each plaintext block

    Correct answer
    D

    Compute CdC^dCd modulo nnn to recover each plaintext block

    Explanation

    The private exponent ddd is an inverse of eee modulo (p−1)(q−1)(p-1)(q-1)(p−1)(q−1), and decryption computes Cd mod nC^d\bmod nCdmodn.

  97. 97

    Why does publishing the RSA public key not normally reveal the decryption key?

    1. A

      Computing the private exponent requires information about the secret prime factors of the modulus

    2. B

      The modulus is encrypted using the private exponent

    3. C

      The decryption key is identical to the public modulus

    4. D

      The public exponent is not used in encryption

    Correct answer
    A

    Computing the private exponent requires information about the secret prime factors of the modulus

    Explanation

    To calculate ddd, one needs (p−1)(q−1)(p-1)(q-1)(p−1)(q−1), which requires knowing ppp and qqq. Recovering those factors from the public modulus is the hard factoring problem.

  98. 98

    Why does RSA use repeated squaring rather than directly calculating a huge power such as MeM^eMe?

    1. A

      The full power is always prime and therefore cannot be stored

    2. B

      Repeated squaring reduces modulo nnn at each step and avoids constructing the enormous full power

    3. C

      The exponent is too small for ordinary multiplication

    4. D

      Repeated squaring replaces every multiplication with a division

    Correct answer
    B

    Repeated squaring reduces modulo nnn at each step and avoids constructing the enormous full power

    Explanation

    Modular exponentiation computes only the needed residues, keeping intermediate values below the modulus rather than building a huge integer.

  99. 99

    What is the purpose of the Diffie–Hellman protocol?

    1. A

      To prove that a message was written by a particular sender

    2. B

      To factor a public modulus into two primes

    3. C

      To let two parties establish a shared secret over a public channel

    4. D

      To encrypt every message with a publicly known shift

    Correct answer
    C

    To let two parties establish a shared secret over a public channel

    Explanation

    Diffie–Hellman enables two parties to derive the same shared key even when an eavesdropper can observe their public exchanges.

  100. 100

    In Diffie–Hellman, why do Alice and Bob arrive at the same shared value?

    1. A

      Their public messages are multiplied without using private information

    2. B

      They use the same secret exponent selected before the exchange

    3. C

      Both compute the public base raised to the product of their private exponents

    4. D

      Both send their private exponents directly to each other

    Correct answer
    C

    Both compute the public base raised to the product of their private exponents

    Explanation

    Alice raises Bob's public power to her secret exponent, and Bob raises Alice's public power to his. Both obtain ak1k2a^{k_1k_2}ak1​k2​ modulo ppp.

  101. 101

    What mathematical problem makes it difficult for an eavesdropper to derive the Diffie–Hellman shared key?

    1. A

      Finding the remainder of the public base modulo the prime

    2. B

      Recovering a private exponent from a public modular power, the discrete logarithm problem

    3. C

      Adding the two public messages modulo the prime

    4. D

      Determining whether the agreed modulus is even

    Correct answer
    B

    Recovering a private exponent from a public modular power, the discrete logarithm problem

    Explanation

    The eavesdropper sees the public powers but would need to recover one of the secret exponents. For suitable large parameters, this is the discrete logarithm problem.

  102. 102

    What is the primary purpose of a digital signature?

    1. A

      To reduce the length of a message before transmission

    2. B

      To keep a message secret from everyone except its receiver

    3. C

      To guarantee that a message contains no errors

    4. D

      To provide evidence of who authored a message, rather than to hide its contents

    Correct answer
    D

    To provide evidence of who authored a message, rather than to hide its contents

    Explanation

    A digital signature is intended to authenticate authorship. Unlike encryption for confidentiality, a signature does not need to hide the message.

  103. 103

    How does the basic RSA signing process work in the example?

    1. A

      The sender publishes the prime factors, and recipients recompute the modulus

    2. B

      The sender encrypts with a shared secret, and recipients compare letter frequencies

    3. C

      The sender applies the private exponent, and recipients apply the public exponent to verify and recover the message

    4. D

      The sender applies the public exponent, and recipients use the sender's private exponent

    Correct answer
    C

    The sender applies the private exponent, and recipients apply the public exponent to verify and recover the message

    Explanation

    The signer uses the private key to transform message blocks. Anyone can apply the public transformation, which recovers the message and checks that the signer had the private key.

  104. 104

    Why is raw RSA signing of message blocks insecure in the teaching version?

    1. A

      The private exponent is necessarily printed with the message

    2. B

      Raw RSA makes all signed messages unreadable

    3. C

      The public key cannot be used to verify a signature

    4. D

      An attacker can choose a value as a signature and compute its public-key image as a matching message

    Correct answer
    D

    An attacker can choose a value as a signature and compute its public-key image as a matching message

    Explanation

    Because RSA's transformations can be applied in either direction in this simplified setting, an attacker can choose a signature first and calculate a message that passes the check. Real systems sign a hash instead.

  105. 105

    How does quantum computing affect the security assumptions discussed for RSA and discrete logarithms?

    1. A

      Quantum computing strengthens RSA because it makes prime multiplication slower

    2. B

      Shor's algorithm applies only to checking UPC digits

    3. C

      A sufficiently large quantum computer could use Shor's algorithm to solve factoring and discrete logarithm problems

    4. D

      Any quantum computer automatically makes modular arithmetic impossible

    Correct answer
    C

    A sufficiently large quantum computer could use Shor's algorithm to solve factoring and discrete logarithm problems

    Explanation

    The content notes that a large enough quantum computer could use Shor's algorithm to solve these problems, motivating research into cryptography designed to resist such attacks.

Question 1 of 105
Question 1 of 105

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent