Number Theory and Cryptography
- 105Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
When does an integer a divide an integer b?
When does an integer a divide an integer b?
105 questions
- 1
When does an integer a divide an integer b?
- A
When the quotient of b divided by a is always positive
- B
When a can be written as b times a positive integer
- C
When subtracting a from b gives a positive result
- D
When b can be written as a times an integer
Correct answer
DWhen b can be written as a times an integer
Explanation
By definition, a divides b if there is an integer c such that b=ac. Equivalently, division leaves no remainder.
- A
- 2
If a divides both b and c, which conclusion must hold?
- A
a divides bc only when c is a positive integer
- B
a divides b−c only when b and c are positive
- C
a divides b+c and every integer linear combination of b and c
- D
a divides b+c only when b and c are equal
Correct answer
Ca divides b+c and every integer linear combination of b and c
Explanation
Writing b=as and c=at shows that b+c=a(s+t). The divisibility rules also imply that a divides mb+nc for integers m,n.
- A
- 3
If a divides b and b divides c, what follows?
- A
b must be the greatest common divisor of a and c
- B
a and c must be equal
- C
c divides a
- D
a divides c
Correct answer
Da divides c
Explanation
If b=as and c=bt, then c=a(st), so c is an integer multiple of a.
- A
- 4
What does the division algorithm guarantee for an integer dividend a and positive divisor d?
- A
A unique quotient q and remainder r with a=dq+r and 0≤r<d
- B
A quotient and remainder with a=qd+r and −d<r<d
- C
A quotient and remainder with a=dr+q and 0≤q<d
- D
A unique quotient and positive remainder with a=dq+r and 0<r≤d
Correct answer
AA unique quotient q and remainder r with a=dq+r and 0≤r<d
Explanation
The quotient and remainder are unique, and the remainder must be nonnegative and smaller than the positive divisor.
- A
- 5
What quotient and remainder result when −11 is divided by 3 under the division algorithm?
- A
Quotient −3 and remainder −2
- B
Quotient −4 and remainder −1
- C
Quotient −4 and remainder 1
- D
Quotient −3 and remainder 2
Correct answer
CQuotient −4 and remainder 1
Explanation
The required remainder is nonnegative and less than 3. Since −11=3(−4)+1, the quotient is −4 and the remainder is 1.
- A
- 6
What is the defining test for a to be congruent to b modulo a positive integer m?
- A
a−b is positive and smaller than m
- B
a divides the difference b−m
- C
a and b are both smaller than m
- D
m divides the difference a−b
Correct answer
Dm divides the difference a−b
Explanation
Congruence modulo m means that a−b is an integer multiple of m.
- A
- 7
Which statement captures the remainder interpretation of congruence?
- A
Two integers are congruent modulo m whenever their sum is divisible by $m
- B
Two integers are congruent modulo m exactly when their quotients upon division by m are equal
- C
Two integers are congruent modulo m exactly when they have the same remainder upon division by $m
- D
Two integers are congruent modulo m whenever both are smaller than m
Correct answer
CTwo integers are congruent modulo m exactly when they have the same remainder upon division by $m
Explanation
The difference of two integers is divisible by m exactly when their remainders after division by m agree.
- A
- 8
How does the relation “congruent modulo m” differ from the function “mod m”?
- A
The relation returns a remainder; the function tests whether two numbers are equivalent
- B
The relation tests whether two numbers are equivalent; the function returns a remainder
- C
Both are relations that compare two quotients
- D
Both are functions that return the quotient of a division
Correct answer
BThe 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 m gives its remainder.
- A
- 9
If a is congruent to b modulo m and c is congruent to d modulo m, which operations preserve the congruence?
- A
Replacing either side by any unrelated integer
- B
Dividing corresponding sides and taking square roots
- C
Comparing the quotients and subtracting the moduli
- D
Adding corresponding sides and multiplying corresponding sides
Correct answer
DAdding corresponding sides and multiplying corresponding sides
Explanation
Congruences are preserved under addition and multiplication: the sums are congruent, and the products are congruent.
- A
- 10
Why is it generally unsafe to divide both sides of a congruence by the same integer?
- A
Division always changes the modulus to zero
- B
The quotients may be negative, which is never allowed in modular arithmetic
- C
Congruences permit multiplication but forbid every form of subtraction
- D
The divisor may share a factor with the modulus, so the resulting congruence need not hold
Correct answer
DThe divisor may share a factor with the modulus, so the resulting congruence need not hold
Explanation
For example, 14 is congruent to 8 modulo 6, but dividing both by 2 gives 7 and 4, which are not congruent modulo 6.
- A
- 11
Which statement correctly describes arithmetic modulo m on the set of remainders from 0 to m−1?
- A
Addition is allowed, but multiplication can produce answers outside the set permanently
- B
The set excludes zero so that addition has an identity
- C
Every nonzero element must have a multiplicative inverse
- D
Addition and multiplication reduce the result modulo m, so answers remain in the set
Correct answer
DAddition and multiplication reduce the result modulo m, so answers remain in the set
Explanation
After ordinary addition or multiplication, reducing modulo m returns the result to the set of remainders. Multiplicative inverses do not always exist; for instance, 2 has no inverse modulo 6.
- A
- 12
How can large sums or products modulo m be computed without first forming the full large result?
- A
Round each input down to the nearest multiple of m before operating
- B
Divide each input by m and multiply the quotients
- C
Add or multiply the inputs, then discard the remainder
- D
Reduce each input modulo m, perform the operation on the remainders, then reduce again
Correct answer
DReduce each input modulo m, 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.
- A
- 13
Why can any integer greater than one be represented uniquely in base b, where b>1?
- A
Its expansion uses one digit for each factor in its prime factorization
- B
It has a unique expansion using digits from 0 to b−1 as coefficients of powers of b, with a nonzero leading digit
- C
Its digits must be powers of b rather than coefficients of powers of b
- D
It can be represented only if every digit is smaller than the leading digit
Correct answer
BIt has a unique expansion using digits from 0 to b−1 as coefficients of powers of b, with a nonzero leading digit
Explanation
A base-b expansion expresses a number as a sum of digits times powers of b. The digits range from 0 through b−1, and the representation is unique.
- A
- 14
What does the decimal numeral 965 represent in positional notation?
- A
9 tens, 6 hundreds, and 5 thousands
- B
9 hundreds, 6 tens, and 5 ones
- C
9 ones, 6 tens, and 5 hundreds
- D
9 powers of 5, 6 powers of 10, and 5 powers of 2
Correct answer
B9 hundreds, 6 tens, and 5 ones
Explanation
In base ten, the digits represent coefficients of descending powers of ten: 9⋅102+6⋅10+5.
- A
- 15
Why are binary digits particularly suitable for computer hardware?
- A
They ensure that every integer is prime or a power of two
- B
They allow every number to be stored without using place values
- C
They make every arithmetic operation require only one bit
- D
They correspond naturally to two states, such as a wire being on or off
Correct answer
DThey correspond naturally to two states, such as a wire being on or off
Explanation
Binary uses only 0 and 1, which can represent two distinguishable hardware states such as off and on.
- A
- 16
Which digit set is used in hexadecimal notation?
- A
The symbols 0 through 9, followed by A through Z
- B
The symbols 0 through 7, followed by A through H
- C
The symbols 0 and 1 only
- D
The symbols 0 through 9, followed by A through F
Correct answer
DThe symbols 0 through 9, followed by A through F
Explanation
Base sixteen needs sixteen digit values: 0 through 9 represent zero through nine, and A through F represent ten through fifteen.
- A
- 17
Which description correctly distinguishes octal from binary notation?
- A
Octal uses digits 0 through 7 and powers of eight; binary uses 0 and 1 and powers of two
- B
Octal uses digits 0 through 8 and powers of eight; binary uses 0 through 2 and powers of two
- C
Octal uses powers of two; binary uses powers of eight
- D
Octal and binary use the same digits but assign them different names
Correct answer
AOctal uses digits 0 through 7 and powers of eight; binary uses 0 and 1 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.
- A
- 18
Why can binary be converted to octal or hexadecimal by regrouping bits rather than performing arithmetic?
- A
Both bases use the same digit symbols as binary
- B
Every binary number has exactly three octal digits and four hexadecimal digits
- C
Each octal digit corresponds to four bits, and each hexadecimal digit corresponds to three bits
- D
Each octal digit corresponds to three bits, and each hexadecimal digit corresponds to four bits
Correct answer
DEach octal digit corresponds to three bits, and each hexadecimal digit corresponds to four bits
Explanation
Since 8=23 and 16=24, binary bits can be grouped in threes for octal or fours for hexadecimal. Padding zeros on the left may be needed.
- A
- 19
What is the standard repeated-division method for converting a positive integer to base b?
- A
Repeatedly multiply by b, record each quotient, and read the quotients in reverse order
- B
Repeatedly subtract b and use the number of subtractions as the digits
- C
Divide once by b and use the quotient as the entire base-b representation
- D
Repeatedly divide by b, record each remainder, and read the remainders in reverse order
Correct answer
DRepeatedly divide by b, 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.
- A
- 20
In binary addition, what does the carry at a bit position represent?
- A
The remainder after dividing the two input numbers by two
- B
The final result of the entire addition before the bits are written
- C
The portion of the sum that contributes to the next higher bit position
- D
The number of zero bits to the right of the current position
Correct answer
CThe 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.
- A
- 21
Why does adding two n-bit integers take O(n) bit operations?
- A
The number of carries is always exactly one
- B
The algorithm performs n2 additions, each on a single bit
- C
The algorithm's work depends only on the numerical value, not the number of bits
- D
The algorithm performs a bounded amount of work at each of the n bit positions
Correct answer
DThe algorithm performs a bounded amount of work at each of the n 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.
- A
- 22
How does the shifted-partial-products method multiply binary integers?
- A
It converts both factors to decimal and multiplies their digits independently
- B
It adds the two factors repeatedly until their bits are exhausted
- C
For each 0 bit of one factor, it multiplies the other factor by the bit position
- D
For each 1 bit of one factor, it adds a shifted copy of the other factor
Correct answer
DFor each 1 bit of one factor, it adds a shifted copy of the other factor
Explanation
A bit at position j contributes either zero or a copy of the other factor shifted left by j places, equivalent to multiplying it by 2j.
- A
- 23
Why does the described multiplication algorithm take O(n2) bit operations for two n-bit integers?
- A
It uses n additions, each of which takes n2 bit operations
- B
It performs one operation for each possible integer below the product
- C
It forms about n partial products and combines them using about n work per product
- D
It must test all 2n possible bit strings
Correct answer
CIt forms about n partial products and combines them using about n work per product
Explanation
There are n partial products, and adding each costs on the order of n bit operations, giving an overall cost on the order of n2.
- A
- 24
What is the central idea behind repeated squaring for computing a large power?
- A
Repeatedly divide the exponent by the base until the quotient is zero
- B
Build successive powers by squaring and multiply only those matching the exponent's 1 bits
- C
Convert the base to binary and add its digits
- D
Multiply the base by itself once for every integer up to the exponent
Correct answer
BBuild successive powers by squaring and multiply only those matching the exponent's 1 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.
- A
- 25
Why is modular repeated squaring useful in cryptography?
- A
It requires exactly one operation regardless of the exponent's size
- B
It reduces intermediate values modulo m while requiring only a number of stages proportional to the exponent's bit length
- C
It guarantees that every result is prime
- D
It avoids multiplication entirely by replacing each power with a remainder
Correct answer
BIt reduces intermediate values modulo m 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.
- A
- 26
Which definition distinguishes a prime from a composite positive integer?
- A
A prime greater than one has only 1 and itself as positive divisors; a composite greater than one does not
- B
A prime has an even number of positive divisors; a composite has an odd number
- C
A prime is divisible by every smaller integer; a composite is divisible only by one
- D
A prime is any positive integer, including one, with no negative factors
Correct answer
AA prime greater than one has only 1 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.
- A
- 27
What does the Fundamental Theorem of Arithmetic assert about integers greater than one?
- A
Each has exactly one prime factor
- B
Each has a prime factorization that is unique up to the order of the factors
- C
Each can be factored into smaller integers in exactly one order
- D
Each is either prime or has two different prime factorizations
Correct answer
BEach 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.
- A
- 28
Why is it sufficient to test prime divisors up to n when checking whether n is composite?
- A
A factor greater than n cannot be an integer
- B
All primes greater than n divide n evenly
- C
Every composite number has exactly one prime divisor below n
- D
If n is a product of two factors, at least one factor must be no greater than n
Correct answer
DIf n is a product of two factors, at least one factor must be no greater than n
Explanation
If both factors were greater than n, their product would exceed n. Thus a composite n must have a factor, and therefore a prime divisor, no greater than its square root.
- A
- 29
How does the Sieve of Eratosthenes identify primes up to a chosen limit?
- A
Keep each smallest uncrossed number and cross out its larger multiples
- B
Keep only numbers that are divisible by two or three
- C
List all products of pairs of numbers and keep the products
- D
Cross out every number that has no factor larger than its square root
Correct answer
AKeep 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.
- A
- 30
What is the limitation of trial division as a primality test for very large integers?
- A
It works only for even integers
- B
It can prove that a number is composite but never that it is prime
- C
It may require testing an enormous number of candidates up to the square root
- D
It requires the number to have a known prime factorization first
Correct answer
CIt 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.
- A
- 31
What is the key contradiction in Euclid's proof that there are infinitely many primes?
- A
A number formed as the product of all listed primes plus one is divisible by none of them
- B
The sum of all listed primes is always prime
- C
A finite list of primes must contain every composite integer
- D
Every listed prime must divide the next integer after the list
Correct answer
AA 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.
- A
- 32
Which statement about Mersenne primes is correct?
- A
Every number of the form 2p−1 is prime whenever p is prime
- B
A number of the form 2p−1 can be prime only when p is composite
- C
A Mersenne prime has the form 2p−1 for a prime p, and a prime exponent does not guarantee the result is prime
- D
A Mersenne prime has the form p2−1 for any integer p
Correct answer
CA Mersenne prime has the form 2p−1 for a prime p, and a prime exponent does not guarantee the result is prime
Explanation
Mersenne primes are primes of the form 2p−1 with prime exponent p. For example, 211−1=2047 is composite despite 11 being prime.
- A
- 33
What does the prime number theorem say about the number of primes up to a large x?
- A
The count is exactly x/2 for every even x
- B
The count remains constant after the first million integers
- C
The count is approximately ln(x)/x, with the estimate worsening as x grows
- D
The count is approximately x/ln(x), with the estimate improving as x grows
Correct answer
DThe count is approximately x/ln(x), with the estimate improving as x grows
Explanation
The prime number theorem estimates the number of primes up to x by x/ln(x). Equivalently, a randomly selected integer near n has an approximate prime probability of 1/ln(n).
- A
- 34
What is the status of Goldbach's conjecture?
- A
It claims there are only finitely many pairs of twin primes
- B
It claims every prime is the sum of two even numbers, and it is a theorem
- C
It claims every odd integer is a sum of three squares, and it has been disproved
- D
It claims every even integer greater than two is a sum of two primes, but it remains unproved
Correct answer
DIt 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.
- A
- 35
Which description correctly characterizes the twin prime conjecture?
- A
It predicts that every prime has another prime exactly two places later, and this is proven
- B
It predicts infinitely many primes that are squares
- C
It states that any two primes are relatively prime only when they differ by two
- D
It predicts infinitely many prime pairs differing by two, but no proof is known
Correct answer
DIt predicts infinitely many prime pairs differing by two, but no proof is known
Explanation
Twin primes are pairs such as 3 and 5 or 11 and 13. The conjecture that infinitely many such pairs exist remains unproved.
- A
- 36
What does the example n2−n+41 illustrate?
- A
Every nonconstant polynomial with integer coefficients produces only primes
- B
The value of a polynomial cannot be composite when its input is prime
- C
A run of forty prime outputs proves that a polynomial always gives primes
- D
A formula can produce many primes in a row and still fail for a later input
Correct answer
DA formula can produce many primes in a row and still fail for a later input
Explanation
The expression is prime for inputs from 1 through 40, but at n=41 it equals 412, which is composite. Evidence from many cases is not proof.
- A
- 37
What is the greatest common divisor of two integers?
- A
The largest integer that divides at least one of them
- B
The product of their distinct prime factors
- C
The largest positive integer that divides both of them
- D
The smallest positive integer that is a multiple of both
Correct answer
CThe 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.
- A
- 38
What does it mean for two integers to be relatively prime?
- A
Both integers are prime
- B
Their least common multiple is one
- C
They have no prime divisors in either factorization
- D
Their greatest common divisor is one
Correct answer
DTheir greatest common divisor is one
Explanation
Relatively prime integers share no positive divisor other than one; neither number needs to be prime itself.
- A
- 39
When is a list of integers pairwise relatively prime?
- A
When every pair in the list has greatest common divisor one
- B
When every entry in the list is prime
- C
When the greatest common divisor of the entire list is one
- D
When at least one pair in the list has greatest common divisor one
Correct answer
AWhen 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.
- A
- 40
How is a greatest common divisor obtained from prime factorizations?
- A
Add the exponents of every prime in both factorizations
- B
For each prime, use the smaller exponent appearing in the two factorizations
- C
Use only the primes that occur in exactly one factorization
- D
For each prime, use the larger exponent appearing in the two factorizations
Correct answer
BFor 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.
- A
- 41
How is the least common multiple obtained from prime factorizations?
- A
For each prime, use the larger exponent appearing in the two factorizations
- B
Use only primes that occur in both factorizations with equal exponents
- C
For each prime, use the smaller exponent appearing in the two factorizations
- D
Subtract the exponents in the smaller factorization from those in the larger
Correct answer
AFor 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.
- A
- 42
Which identity links two positive integers, their greatest common divisor, and their least common multiple?
- A
Their product equals their greatest common divisor times their least common multiple
- B
Their product equals the square of their greatest common divisor
- C
Their sum equals their greatest common divisor times their least common multiple
- D
Their difference equals their greatest common divisor plus their least common multiple
Correct answer
ATheir product equals their greatest common divisor times their least common multiple
Explanation
For positive integers a and b, ab=gcd(a,b)lcm(a,b). For each prime, the smaller and larger exponents together reproduce the exponents in the product.
- A
- 43
Why is prime factorization usually not the preferred way to find the greatest common divisor of very large integers?
- A
The formula requires the numbers to be relatively prime already
- B
Finding the prime factorizations can be difficult, even though the gcd formula itself is simple
- C
Prime factorizations do not contain enough information to determine a gcd
- D
A greatest common divisor cannot have any prime factors
Correct answer
BFinding 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.
- A
- 44
What is the key replacement rule in the Euclidean algorithm?
- A
Replace the pair (a,b) by (a−b,a+b) until both values are prime
- B
Replace the larger number by the quotient and keep the smaller number unchanged
- C
Replace the pair (a,b) by (b,r), where r is the remainder when a is divided by b
- D
Replace each number by its prime factors and discard common ones
Correct answer
CReplace the pair (a,b) by (b,r), where r is the remainder when a is divided by b
Explanation
If a=bq+r, then gcd(a,b)=gcd(b,r). Repeating this replacement preserves the gcd while making the numbers smaller.
- A
- 45
Why must the Euclidean algorithm eventually stop?
- A
The gcd becomes zero after the first division
- B
Each remainder is a nonnegative integer smaller than the preceding divisor
- C
Each quotient is a prime number smaller than the preceding quotient
- D
The remainders alternate between positive and negative values
Correct answer
BEach 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.
- A
- 46
What is the gcd at the end of a Euclidean algorithm run?
- A
The last nonzero remainder
- B
The sum of all remainders
- C
The first quotient
- D
The final zero remainder
Correct answer
AThe 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.
- A
- 47
What does Bézout's identity guarantee for positive integers a and b?
- A
The least common multiple of a and b is always a linear combination with positive coefficients
- B
There are positive integers s and t such that a=sb+ta
- C
The gcd of a and b is always their sum
- D
There are integers s and t such that gcd(a,b)=sa+tb
Correct answer
DThere are integers s and t such that gcd(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.
- A
- 48
How does the extended Euclidean algorithm differ from the basic Euclidean algorithm?
- A
It finds the least common multiple but not the greatest common divisor
- B
It continues after the remainder becomes zero to find more prime factors
- C
It avoids division and uses only prime factorization
- D
It tracks Bézout coefficients during the divisions instead of recovering them afterward
Correct answer
DIt 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.
- A
- 49
If gcd(a,b)=1 and a divides bc, what must follow?
- A
c divides a
- B
a divides b
- C
b divides c
- D
a divides c
Correct answer
Da divides c
Explanation
Bézout's identity gives integers s,t with sa+tb=1. Multiplying by c shows that both terms on the left are divisible by a, so their sum c is divisible by a.
- A
- 50
If a prime divides a product of several integers, what must be true?
- A
It divides every factor individually
- B
It divides exactly two of the factors
- C
It divides at least one factor individually
- D
It divides the sum of all the factors
Correct answer
CIt 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.
- A
- 51
When does a multiplicative inverse of a modulo m exist?
- A
When a and m are both even
- B
When a is a multiple of m
- C
When a and m are relatively prime
- D
Whenever m is greater than one, regardless of a
Correct answer
CWhen a and m are relatively prime
Explanation
An inverse is an integer whose product with a is congruent to one modulo m. Bézout's identity guarantees one when gcd(a,m)=1.
- A
- 52
What is an inverse of a modulo m?
- A
A number u such that a−u is equal to m
- B
A number u such that ua is congruent to 1 modulo m
- C
A number u such that u divides both a and m
- D
A number u such that u+a is divisible by m
Correct answer
BA number u such that ua is congruent to 1 modulo m
Explanation
The defining property is ua≡1(modm). It acts like a reciprocal within modular arithmetic.
- A
- 53
Why does Bézout's identity produce an inverse of a modulo m when gcd(a,m)=1?
- A
It shows that m divides a and therefore a can be canceled
- B
It gives s+t=a, so s must be the reciprocal of a
- C
It gives integers s,t with sa+tm=1, so reducing modulo m leaves sa≡1
- D
It guarantees that a and m have the same remainder
Correct answer
CIt gives integers s,t with sa+tm=1, so reducing modulo m leaves sa≡1
Explanation
The term tm is divisible by m and becomes zero modulo m, leaving sa≡1(modm). Thus s is an inverse.
- A
- 54
How can an inverse of 3 modulo 7 be found from the equation 7=2⋅3+1?
- A
Use the quotient 2 directly, so 2 is an inverse
- B
Rearrange to 1=7−2⋅3, so −2 is an inverse and its least nonnegative representative is 5
- C
Rearrange to 1=2⋅7−3, so 2 is an inverse
- D
Use the remainder 1 as the inverse, so 1 is an inverse
Correct answer
BRearrange to 1=7−2⋅3, so −2 is an inverse and its least nonnegative representative is 5
Explanation
The rearrangement gives (−2)3≡1(mod7). Since −2 is congruent to 5 modulo 7, both represent the inverse.
- A
- 55
What is the correct first step in solving a linear congruence such as ax≡b(modm) when a has an inverse?
- A
Multiply both sides by the inverse of a modulo m
- B
Add m to the unknown until the coefficient disappears
- C
Replace the modulus with the coefficient a
- D
Divide both sides by a as an ordinary fraction
Correct answer
AMultiply both sides by the inverse of a modulo m
Explanation
Multiplication by the modular inverse is safe and changes the left side to x. Ordinary division may not preserve a congruence.
- A
- 56
What does the congruence 2x≡3(mod6) illustrate?
- A
A linear congruence can have no solution when the parity requirements conflict
- B
Every linear congruence has exactly one solution class
- C
The modulus can be ignored whenever the coefficient is even
- D
A coefficient with no inverse always gives every possible residue as a solution
Correct answer
AA 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.
- A
- 57
What does 2x≡2(mod6) show about the solution set of a linear congruence?
- A
It can have more than one solution class, here x≡1 or x≡4(mod6)
- B
It must have no solutions because 2 has no inverse modulo 6
- C
It has every integer as a solution because the right side is divisible by 2
- D
It has exactly one solution class because both sides are even
Correct answer
AIt can have more than one solution class, here x≡1 or x≡4(mod6)
Explanation
Both residue classes 1 and 4 make 2x congruent to 2 modulo 6. Thus not every solvable linear congruence has a unique class.
- A
- 58
When is cancellation valid in a congruence ac≡bc(modm)?
- A
When c and m are relatively prime
- B
Whenever c is positive
- C
Only when c=m
- D
Whenever a and b are relatively prime
Correct answer
AWhen c and m are relatively prime
Explanation
If gcd(c,m)=1, the factor c has an inverse modulo m and can be canceled. If it shares a factor with the modulus, cancellation can fail.
- A
- 59
What does the Chinese Remainder Theorem guarantee when the moduli are pairwise relatively prime?
- A
Every congruence in the system has the same remainder
- B
The system has no solutions unless all moduli are prime
- C
The system has exactly one integer solution in all of the integers
- D
A system with specified remainders has a unique solution modulo the product of the moduli
Correct answer
DA 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.
- A
- 60
In the constructive proof of the Chinese Remainder Theorem, why does each term other than the selected one vanish modulo a chosen modulus mk?
- A
Each other term is multiplied by an inverse of mk
- B
The target remainders are all zero
- C
Pairwise relative primality makes every modulus equal to zero
- D
Each other term contains the product of all moduli except its own, which includes mk
Correct answer
DEach other term contains the product of all moduli except its own, which includes mk
Explanation
For an index other than k, the corresponding product contains mk as a factor, so that term is congruent to zero modulo mk. The selected term is arranged to equal the desired remainder.
- A
- 61
What is the main idea of solving a system of congruences by back substitution?
- A
Solve each congruence independently and choose the smallest answer
- B
Turn one congruence into an equation with a parameter, substitute into the next, and continue
- C
Multiply all congruences together and discard every modulus
- D
Replace each unknown with its own modulus until the system becomes linear
Correct answer
BTurn one congruence into an equation with a parameter, substitute into the next, and continue
Explanation
A congruence such as x≡a(modm) can be written as x=mt+a. Substituting this expression into the next congruence reduces the system one condition at a time.
- A
- 62
What does Fermat's Little Theorem state when p is prime and p does not divide a?
- A
ap+1 is congruent to a−1 modulo p
- B
ap is congruent to 0 modulo p
- C
ap−1 is congruent to 1 modulo p
- D
ap−1 is divisible by every integer smaller than p
Correct answer
Cap−1 is congruent to 1 modulo p
Explanation
For prime p and a not divisible by p, Fermat's Little Theorem gives ap−1≡1(modp). Another form, valid for every integer a, is ap≡a(modp).
- A
- 63
How can Fermat's Little Theorem simplify a large exponent modulo a prime?
- A
Divide the base by the exponent until the exponent is smaller than the modulus
- B
Assume every power is congruent to zero once the exponent exceeds p
- C
Replace groups of p−1 in the exponent by factors congruent to one, then reduce the remaining power
- D
Replace the base by the prime and leave the exponent unchanged
Correct answer
CReplace groups of p−1 in the exponent by factors congruent to one, then reduce the remaining power
Explanation
When p does not divide a, the factor ap−1 is congruent to one. Writing the exponent as a multiple of p−1 plus a remainder reduces the calculation to the smaller remaining power.
- A
- 64
What is a pseudoprime to base b?
- A
An integer that is congruent to a prime modulo every modulus
- B
A composite integer that passes the Fermat-style test bn−1≡1(modn)
- C
A prime integer that fails every modular exponentiation test
- D
A composite integer that has no prime factors
Correct answer
BA composite integer that passes the Fermat-style test bn−1≡1(modn)
Explanation
A pseudoprime to base b is composite but satisfies the congruence that Fermat's Little Theorem guarantees for primes not dividing the base.
- A
- 65
What can be concluded when a number fails a Fermat-style primality test?
- A
It is composite; passing the test, however, does not prove it is prime
- B
It is prime, but its factors are hidden
- C
It must be a pseudoprime to every possible base
- D
It is either prime or composite with certainty equally divided
Correct answer
AIt 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.
- A
- 66
What is a primitive root modulo a prime p?
- A
A prime that divides every nonzero residue modulo p
- B
A number whose successive powers modulo p reach every nonzero residue before repeating
- C
A number whose multiples modulo p reach every residue, including zero, exactly once
- D
A number whose square is congruent to one modulo p
Correct answer
BA number whose successive powers modulo p 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.
- A
- 67
What is the discrete logarithm of a to base r modulo p?
- A
The remainder when a is divided by r
- B
The quotient obtained by dividing p by ra
- C
The exponent e such that re is congruent to a modulo p
- D
The exponent that makes ae divisible by p
Correct answer
CThe exponent e such that re is congruent to a modulo p
Explanation
For a primitive root r, each nonzero residue a corresponds to one exponent in the cycle, and that exponent is its discrete logarithm.
- A
- 68
Why is the discrete logarithm problem useful in cryptography?
- A
Both computing powers and recovering exponents are impossible for ordinary computers
- B
The problem guarantees that every public key is impossible to copy
- C
Computing a modular power is efficient, while recovering its exponent is believed to be difficult for suitable large parameters
- D
Recovering the exponent is faster than computing the modular power
Correct answer
CComputing 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.
- A
- 69
What does a hashing function such as h(k)=kmodm do?
- A
Maps a record key to one of the memory locations numbered from zero to m−1
- B
Stores the full key in a location equal to the key's quotient by m
- C
Guarantees that different keys receive different memory locations
- D
Encrypts a record so that only a prime key can be read
Correct answer
AMaps a record key to one of the memory locations numbered from zero to m−1
Explanation
Taking the remainder modulo the number of locations maps any key into the available range of location indices.
- A
- 70
Why are collisions unavoidable in a hash table with far fewer locations than possible keys?
- A
Different keys must map to the same location when many more keys than locations are possible
- B
A hash function is required to map every key to a different location
- C
The modulo operation cannot produce every location
- D
Every key is assigned to the first location in the table
Correct answer
ADifferent 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.
- A
- 71
How does linear probing handle a collision?
- A
Try successive locations obtained by adding offsets to the hash value, reducing modulo the table size
- B
Move every existing record one position toward the start of memory
- C
Increase the table modulus until the collision disappears
- D
Replace the collided key with the sum of the two keys
Correct answer
ATry 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.
- A
- 72
Why are computer-generated numbers from a fixed linear congruential rule called pseudorandom?
- A
The rule generates only prime numbers in a random order
- B
The sequence is truly random because the computer has no fixed instructions
- C
The sequence is produced deterministically by a rule but is intended to look random
- D
The sequence cannot repeat under any choice of parameters
Correct answer
CThe 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.
- A
- 73
In a linear congruential generator, what roles do the seed and modulus play?
- A
The seed is the starting value, and the modulus keeps outputs between zero and m−1
- B
The seed is the multiplier, and the modulus determines the starting value
- C
The seed determines the period exactly, and the modulus is added after every step
- D
The seed is the final output, and the modulus prevents the sequence from repeating
Correct answer
AThe seed is the starting value, and the modulus keeps outputs between zero and m−1
Explanation
A generator starts from the seed and repeatedly applies the recurrence modulo m, so every output is in the range from zero through m−1.
- A
- 74
What is the period of a pseudorandom sequence?
- A
The largest value the generator can output
- B
The number of parameters used to define the generator
- C
The number of terms produced before the sequence begins repeating
- D
The number of terms that are guaranteed to be prime
Correct answer
CThe 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.
- A
- 75
Why does a pure multiplicative generator with a zero seed remain at zero forever?
- A
With no increment, multiplying the current value zero by the multiplier still gives zero modulo the modulus
- B
Every pure multiplicative generator has a period of one for every seed
- C
The modulus in a multiplicative generator must equal zero
- D
A zero seed is automatically changed to one after the first step
Correct answer
AWith 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.
- A
- 76
How does a check digit detect many data-entry errors?
- A
It duplicates the first digit so the computer can compare the two
- B
It guarantees that every valid code is prime
- C
It records the exact identity of the person who entered the code
- D
It is chosen so a weighted sum satisfies a modular condition, which a mistyped digit often disrupts
Correct answer
DIt 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.
- A
- 77
What is the Universal Product Code check-digit rule described in the content?
- A
Add the odd-position digits, multiply the even-position digits by three, and require a prime total
- B
Multiply digits in odd positions by three, add the even-position digits, and require the total to be divisible by ten
- C
Multiply the first digit by ten and require the final digit to equal the remainder
- D
Multiply every digit by its position and require the total to be divisible by eleven
Correct answer
BMultiply 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.
- A
- 78
Why can the ISBN-10 check digit be represented by the letter X?
- A
The modulo-eleven calculation can produce the value ten, which is written as X
- B
The letter X represents the remainder zero modulo eleven
- C
The check digit is a letter whenever the ISBN begins with zero
- D
The final character is not part of the numerical check
Correct answer
AThe 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.
- A
- 79
Why does the ISBN-10 rule detect any single-digit error and any transposition of two different digits?
- A
The weighted sum is compared directly with the title's publication year
- B
Every digit in an ISBN is itself prime
- C
Modulo eleven is prime, so nonzero changes cannot be canceled by the position weights in these error patterns
- D
The check digit stores the original order of all ten characters
Correct answer
CModulo 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.
- A
- 80
How does a Caesar cipher encrypt a letter represented by a number p from zero to twenty-five?
- A
Add twenty-six and divide by three
- B
Subtract three and reduce modulo twenty-six
- C
Add three and reduce modulo twenty-six
- D
Multiply by three and reduce modulo twenty-five
Correct answer
CAdd 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.
- A
- 81
How is a Caesar cipher decrypted?
- A
Shift each encoded letter forward by three positions a second time
- B
Reverse the order of all encoded letters
- C
Shift each encoded letter backward by three positions, wrapping around the alphabet
- D
Multiply each letter number by the inverse of three modulo twenty-six
Correct answer
CShift each encoded letter backward by three positions, wrapping around the alphabet
Explanation
Decryption reverses the encryption shift by subtracting three modulo twenty-six.
- A
- 82
What is the key weakness of a general shift cipher?
- A
It changes every letter into a different number of letters
- B
There are only twenty-six possible shifts, so an attacker can try them all
- C
It has no decryption procedure
- D
Its key must be a prime larger than the alphabet
Correct answer
BThere 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.
- A
- 83
What condition makes an affine cipher f(p)=ap+b modulo twenty-six decryptable?
- A
b must be relatively prime to twenty-six
- B
a must be even and b must be odd
- C
a must be relatively prime to twenty-six
- D
Both a and b must be prime numbers
Correct answer
Ca must be relatively prime to twenty-six
Explanation
The affine map is a bijection exactly when a has an inverse modulo twenty-six, which occurs when gcd(a,26)=1.
- A
- 84
How is an affine cipher decrypted once the inverse of a modulo twenty-six is known?
- A
Raise the cipher number to the power a modulo twenty-six
- B
Compute the inverse of a times the cipher number minus b, modulo twenty-six
- C
Subtract the cipher number from twenty-six and divide by b
- D
Multiply the cipher number by a and add b, modulo twenty-six
Correct answer
BCompute the inverse of a times the cipher number minus b, modulo twenty-six
Explanation
From c≡ap+b(mod26), subtract b and multiply by the inverse of a to recover p.
- A
- 85
Why can letter-frequency analysis help break a shift cipher?
- A
The cipher reveals the key in the most frequent letter
- B
Letter frequencies are unchanged only when the message contains no repeated letters
- C
A shift moves the frequency pattern without changing its relative shape, so common cipher letters can be matched to common English letters
- D
A shift makes every plaintext letter occur equally often
Correct answer
CA 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.
- A
- 86
What distinguishes a transposition cipher from a substitution cipher?
- A
A transposition rearranges letter positions without changing the letters themselves
- B
A transposition replaces each letter with a fixed different letter
- C
A transposition changes the alphabet size for each block
- D
A transposition encrypts only the most frequent letters
Correct answer
AA 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.
- A
- 87
How is a transposition cipher decrypted?
- A
Apply the inverse permutation to undo the rearrangement
- B
Subtract the permutation key from each letter number
- C
Apply the same permutation repeatedly until the letters return
- D
Replace each letter with its position in the block
Correct answer
AApply the inverse permutation to undo the rearrangement
Explanation
The inverse permutation reverses the original movement of each position, restoring the plaintext block.
- A
- 88
What five components make up the general cryptosystem described in the content?
- A
Plaintext set, ciphertext set, keyspace, encryption functions, and decryption functions
- B
Prime numbers, factors, modulus, quotient, and remainder
- C
Alphabet, block size, frequency table, hash, and check digit
- D
Message, sender, receiver, network, and password
Correct answer
APlaintext set, ciphertext set, keyspace, encryption functions, and decryption functions
Explanation
A cryptosystem is described by its plaintexts, ciphertexts, keys, encryption functions, and decryption functions.
- A
- 89
What requirement must matching encryption and decryption functions satisfy?
- A
Decryption must reveal the key used for encryption
- B
Encryption must produce the same ciphertext for every plaintext
- C
Every ciphertext must correspond to several different plaintexts
- D
Decrypting an encrypted plaintext with the matching key must recover the original plaintext
Correct answer
DDecrypting 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.
- A
- 90
What is the central difference between private-key and public-key cryptography?
- A
Private-key systems encrypt messages, while public-key systems only verify them
- B
Public-key systems require the sender and receiver to share a secret in advance
- 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
- D
Private-key systems use numbers, while public-key systems use letters
Correct answer
CPrivate-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.
- A
- 91
What information forms the RSA public key?
- A
The product (p−1)(q−1) and the factorization of n
- B
The modulus n=pq and an exponent e relatively prime to (p−1)(q−1)
- C
The modulus n and an exponent divisible by (p−1)(q−1)
- D
The two primes p,q and the private exponent d
Correct answer
BThe modulus n=pq and an exponent e relatively prime to (p−1)(q−1)
Explanation
RSA's public key consists of n=pq and e, chosen so that e is relatively prime to (p−1)(q−1). The primes are distinct and kept secret.
- A
- 92
Why is the RSA exponent e chosen to be relatively prime to (p−1)(q−1)?
- A
It prevents the public exponent from being used in encryption
- B
It makes the modulus n a prime number
- C
It ensures that every plaintext block is larger than n
- D
That condition guarantees an inverse exponent can be chosen for decryption
Correct answer
DThat condition guarantees an inverse exponent can be chosen for decryption
Explanation
The decryption exponent is an inverse of e modulo (p−1)(q−1). Relative primality guarantees that this inverse exists.
- A
- 93
What is the intended security basis of RSA?
- A
Modular exponentiation cannot be performed by an eavesdropper
- B
Multiplying two large primes is easy, while factoring their large product is believed to be difficult
- C
The public modulus is secret, but the prime factors are public
- D
Finding large primes is impossible, while multiplying them is difficult
Correct answer
BMultiplying 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.
- A
- 94
Why must RSA plaintext blocks be smaller than the modulus?
- A
The decryption exponent works only on prime plaintext blocks
- B
A block equal to the modulus would reveal the private key
- C
The encryption operates modulo the modulus, so each block must be represented as a value below it
- D
Larger blocks cannot be converted into digits
Correct answer
CThe 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 n ensures they are valid representatives in the intended range.
- A
- 95
How does RSA encrypt a plaintext block M using public exponent e and modulus n?
- A
Compute M+e modulo n
- B
Compute Me modulo n
- C
Compute eM modulo n
- D
Divide M by n and multiply the quotient by e
Correct answer
BCompute Me modulo n
Explanation
RSA encryption applies modular exponentiation: the ciphertext is Memodn. Repeated squaring makes this calculation practical without forming the full power.
- A
- 96
How is the RSA decryption exponent d used?
- A
Compute dC modulo n to recover the public key
- B
Multiply the ciphertext by d and divide by the modulus
- C
Add d to the ciphertext until it is less than n
- D
Compute Cd modulo n to recover each plaintext block
Correct answer
DCompute Cd modulo n to recover each plaintext block
Explanation
The private exponent d is an inverse of e modulo (p−1)(q−1), and decryption computes Cdmodn.
- A
- 97
Why does publishing the RSA public key not normally reveal the decryption key?
- A
Computing the private exponent requires information about the secret prime factors of the modulus
- B
The modulus is encrypted using the private exponent
- C
The decryption key is identical to the public modulus
- D
The public exponent is not used in encryption
Correct answer
AComputing the private exponent requires information about the secret prime factors of the modulus
Explanation
To calculate d, one needs (p−1)(q−1), which requires knowing p and q. Recovering those factors from the public modulus is the hard factoring problem.
- A
- 98
Why does RSA use repeated squaring rather than directly calculating a huge power such as Me?
- A
The full power is always prime and therefore cannot be stored
- B
Repeated squaring reduces modulo n at each step and avoids constructing the enormous full power
- C
The exponent is too small for ordinary multiplication
- D
Repeated squaring replaces every multiplication with a division
Correct answer
BRepeated squaring reduces modulo n 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.
- A
- 99
What is the purpose of the Diffie–Hellman protocol?
- A
To prove that a message was written by a particular sender
- B
To factor a public modulus into two primes
- C
To let two parties establish a shared secret over a public channel
- D
To encrypt every message with a publicly known shift
Correct answer
CTo 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.
- A
- 100
In Diffie–Hellman, why do Alice and Bob arrive at the same shared value?
- A
Their public messages are multiplied without using private information
- B
They use the same secret exponent selected before the exchange
- C
Both compute the public base raised to the product of their private exponents
- D
Both send their private exponents directly to each other
Correct answer
CBoth 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 ak1k2 modulo p.
- A
- 101
What mathematical problem makes it difficult for an eavesdropper to derive the Diffie–Hellman shared key?
- A
Finding the remainder of the public base modulo the prime
- B
Recovering a private exponent from a public modular power, the discrete logarithm problem
- C
Adding the two public messages modulo the prime
- D
Determining whether the agreed modulus is even
Correct answer
BRecovering 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.
- A
- 102
What is the primary purpose of a digital signature?
- A
To reduce the length of a message before transmission
- B
To keep a message secret from everyone except its receiver
- C
To guarantee that a message contains no errors
- D
To provide evidence of who authored a message, rather than to hide its contents
Correct answer
DTo 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.
- A
- 103
How does the basic RSA signing process work in the example?
- A
The sender publishes the prime factors, and recipients recompute the modulus
- B
The sender encrypts with a shared secret, and recipients compare letter frequencies
- C
The sender applies the private exponent, and recipients apply the public exponent to verify and recover the message
- D
The sender applies the public exponent, and recipients use the sender's private exponent
Correct answer
CThe 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.
- A
- 104
Why is raw RSA signing of message blocks insecure in the teaching version?
- A
The private exponent is necessarily printed with the message
- B
Raw RSA makes all signed messages unreadable
- C
The public key cannot be used to verify a signature
- D
An attacker can choose a value as a signature and compute its public-key image as a matching message
Correct answer
DAn 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.
- A
- 105
How does quantum computing affect the security assumptions discussed for RSA and discrete logarithms?
- A
Quantum computing strengthens RSA because it makes prime multiplication slower
- B
Shor's algorithm applies only to checking UPC digits
- C
A sufficiently large quantum computer could use Shor's algorithm to solve factoring and discrete logarithm problems
- D
Any quantum computer automatically makes modular arithmetic impossible
Correct answer
CA 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.
- A

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