Prime Density and the Chinese Remainder Theorem
- 46Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
For a system of congruences with pairwise coprime moduli, what does the Chinese remainder theorem guarantee?
For a system of congruences with pairwise coprime moduli, what does the Chinese remainder theorem guarantee?
46 questions
- 1
For a system of congruences with pairwise coprime moduli, what does the Chinese remainder theorem guarantee?
- A
A unique integer solution without any modular ambiguity
- B
A unique solution modulo the product of the moduli
- C
A solution only when all the moduli are prime
- D
A solution only when all the equations have the same remainder
Correct answer
BA unique solution modulo the product of the moduli
Explanation
When the moduli are mutually coprime, the Chinese remainder theorem guarantees a solution that is unique modulo their product.
- A
- 2
What is the sum of all the binomial coefficients in the expansion of (1+1)2n?
- A
(2n)!
- B
2n
- C
4n
- D
(2n+1)4n
Correct answer
C4n
Explanation
By the binomial theorem, the sum of the coefficients is (1+1)2n=22n=4n.
- A
- 3
Why is the middle coefficient inom{2n}{n} at least the average of the 2n+1 coefficients in the expansion of (1+1)2n?
- A
The sum of the coefficients equals the middle coefficient.
- B
It is the smallest coefficient, and the smallest value in a list is at least its average.
- C
It is the largest coefficient, and the largest value in a list is at least its average.
- D
All coefficients in the expansion have the same value.
Correct answer
CIt is the largest coefficient, and the largest value in a list is at least its average.
Explanation
The binomial coefficients increase toward the middle and then decrease, so inom{2n}{n} is largest. A largest value must be at least the average of the values.
- A
- 4
Which lower bound for the central binomial coefficient follows from its being the largest of 2n+1 coefficients whose sum is 4n?
- A
inom{2n}{n} �\ge \frac{4^n}{2n+1}
- B
inom{2n}{n} �\ge \frac{2n+1}{4^n}
- C
inom{2n}{n} �\le 4^n(2n+1)
- D
inom{2n}{n} �\le \frac{4^n}{2n+1}
Correct answer
Ainom{2n}{n} �\ge \frac{4^n}{2n+1}
Explanation
The largest of 2n+1 nonnegative terms summing to 4n is at least their average, so inom{2n}{n}�\ge \frac{4^n}{2n+1}.
- A
- 5
What upper bound does the second lemma give for any prime power that divides inom{2n}{n}?
- A
It is at most n.
- B
It is at most 4n.
- C
It is at most 2n.
- D
It is at most inom{2n}{n} divided by n.
Correct answer
CIt is at most 2n.
Explanation
The lemma states that every prime power dividing the central binomial coefficient is no greater than 2n.
- A
- 6
In the lecture's explanation of the prime-power bound, why can a prime power appearing in the denominator of inom{2n}{n} also be canceled by a numerator factor?
- A
A multiple of that prime power can be found in the numerator range from n+1 to 2n.
- B
The numerator contains only prime numbers, so it automatically cancels all prime powers.
- C
The denominator is always larger than the numerator before cancellation.
- D
Every prime power in the denominator is also a factor of n! in the numerator.
Correct answer
AA multiple of that prime power can be found in the numerator range from n+1 to 2n.
Explanation
If a prime power divides some denominator factor x with 1≤x≤n, adding that prime power to x produces a multiple in the range from n+1 to 2n. This supports the cancellation intuition used in the lemma's sketch.
- A
- 7
What does the third lemma bound?
- A
The largest prime at most n by 4n
- B
The sum of all primes at most n by n4
- C
The number of primes at most n by 4n
- D
The product of all primes at most n by 4n
Correct answer
DThe product of all primes at most n by 4n
Explanation
The lemma says that the product of the primes up to n is at most 4n.
- A
- 8
For odd n=2m+1, how does the induction proof divide the primes up to n?
- A
Into primes below 2m and primes equal to 2m+1
- B
Into primes at most 2m and primes greater than 2m+1
- C
Into primes at most m+1 and primes greater than m+1
- D
Into primes at most m and primes greater than 2m+1
Correct answer
CInto primes at most m+1 and primes greater than m+1
Explanation
The proof separates the product into primes at most m+1 and primes in the remaining range above m+1 through 2m+1.
- A
- 9
Why can the product of primes greater than m+1 and at most 2m+1 be bounded by inom{2m+1}{m}?
- A
Each such prime appears in m! and therefore cancels from the binomial coefficient.
- B
Each such prime divides the numerator product from m+1 to 2m+1 but not the denominator m!.
- C
Their product is exactly the sum of all binomial coefficients of order 2m+1.
- D
Every prime in that range is at most m, so their product is bounded by m!.
Correct answer
BEach such prime divides the numerator product from m+1 to 2m+1 but not the denominator m!.
Explanation
A prime greater than m+1 in the indicated range does not divide m!, but it divides a factor in the numerator product. Thus it divides inom{2m+1}{m}, and the product of these distinct primes is bounded by that binomial coefficient.
- A
- 10
Why is inom{2m+1}{m}�\le 4^m?
- A
It is the only nonzero term in the binomial expansion of (1+1)2m+1.
- B
It equals the sum of all terms in the expansion divided by 2m+1.
- C
It is smaller than every term in the binomial expansion of (1+1)2m+1.
- D
It is one of two equal largest terms whose sum is at most 22m+1.
Correct answer
DIt is one of two equal largest terms whose sum is at most 22m+1.
Explanation
The two equal largest coefficients are inom{2m+1}{m} and inom{2m+1}{m+1}. Their sum is at most the total 22m+1, so either coefficient is at most 22m=4m.
- A
- 11
How does the induction argument handle even n=2m when n>2?
- A
It replaces the product for 2m with the sum of primes up to 2m−1.
- B
It adds a new prime factor of 2m to the product for 2m−1.
- C
It doubles the product for 2m−1 because every even number is prime.
- D
The primes at most 2m are the same as those at most 2m−1, so the odd case applies.
Correct answer
DThe primes at most 2m are the same as those at most 2m−1, so the odd case applies.
Explanation
For even n>2, the number 2m is composite, so including it adds no prime to the product. The product is therefore the same as for 2m−1, which is covered by the induction argument.
- A
- 12
According to the stated estimate, how is the density of primes up to x measured?
- A
By the ratio �π(x)x
- B
By the difference x−�π(x)
- C
By the ratio �xπ(x)
- D
By the product x�π(x)
Correct answer
CBy the ratio �xπ(x)
Explanation
The density is defined in the content as the fraction of numbers up to x that are prime, namely �xπ(x).
- A
- 13
What approximate bounds for prime density are stated, using logarithms to base 2?
- A
�log2x1 and �log2x5 as lower and upper estimates
- B
�x1 and �x5 as lower and upper estimates
- C
�xlog2x and �x5log2x as lower and upper estimates
- D
�5log2x1 and �log2x1 as lower and upper estimates
Correct answer
A�log2x1 and �log2x5 as lower and upper estimates
Explanation
The content gives the approximate density range from 1/log2x to 5/log2x.
- A
- 14
What is the corresponding stated upper bound on the number of primes up to x?
- A
π(x)≤0˘000x5log2x
- B
π(x)≥0˘000log2x5x
- C
π(x)≤5xlog2x
- D
π(x)≤0˘000log2x5x
Correct answer
Dπ(x)≤0˘000log2x5x
Explanation
Multiplying the stated upper density estimate by x gives �π(x)≤log2x5x.
- A
- 15
What historical role did Gauss play in the prime-density estimate described in the content?
- A
He established the estimate by analyzing ciphertext frequencies.
- B
He proved the estimate using the Chinese remainder theorem.
- C
He conjectured the approximate density by examining manually tabulated prime counts.
- D
He derived the estimate from Bertrand's postulate.
Correct answer
CHe conjectured the approximate density by examining manually tabulated prime counts.
Explanation
The content says Gauss conjectured the expression after manually tabulating prime counts and observing their pattern.
- A
- 16
In the upper-bound argument, why are primes greater than �x considered separately?
- A
Their product is always equal to the product of all primes up to x.
- B
There are exactly �x such primes, and each is at most x.
- C
They are the only primes that divide �(n2n).
- D
There are �π(x)−π(x) such primes, and each is greater than �x.
Correct answer
DThere are �π(x)−π(x) such primes, and each is greater than �x.
Explanation
The number of primes in the range above �x and at most x is �π(x)−π(x). Each factor in their product exceeds �x.
- A
- 17
Which two estimates are combined to bound the product of primes greater than �x and at most x?
- A
A lower bound of 4x and an upper bound of �(x)π(x)
- B
A lower bound of �π(x)x and an upper bound of x!
- C
A lower bound of xπ(x) and an upper bound of 2x
- D
A lower bound of �(x)π(x)−π(x) and an upper bound of 4x
Correct answer
DA lower bound of �(x)π(x)−π(x) and an upper bound of 4x
Explanation
Each of the �π(x)−π(x) large primes is greater than �x, while Lemma 3 bounds the product of all primes up to x by 4x.
- A
- 18
After taking base-2 logarithms in that product estimate, what bound results for the number of primes above �x?
- A
�π(x)−π(x)≤log2x2x
- B
�π(x)−π(x)≤log2x4x
- C
�π(x)−π(x)≥log2x4x
- D
�π(x)−π(x)≤4xlog2x
Correct answer
B�π(x)−π(x)≤log2x4x
Explanation
The logarithm of �x is �21log2x, and the logarithm of 4x is 2x. Dividing gives the stated bound of �log2x4x.
- A
- 19
How does the upper-bound proof estimate �π(x)?
- A
By the identity �π(x)=log2x
- B
By the estimate �π(x)≥x
- C
By the lemma bound �π(x)≤4x
- D
By the trivial bound �π(x)≤x
Correct answer
DBy the trivial bound �π(x)≤x
Explanation
There cannot be more primes in a range than there are integers in that range, so the proof uses �π(x)≤x.
- A
- 20
How does the lower-bound argument use Lemma 2 when factoring �(n2n) into prime powers?
- A
It shows that every prime up to 2n must appear exactly once.
- B
It bounds each prime-power factor by 4n and the number of factors by n.
- C
It bounds each prime-power factor by 2n and the number of distinct factors by �π(2n).
- D
It shows that only primes greater than n can appear in the factorization.
Correct answer
CIt bounds each prime-power factor by 2n and the number of distinct factors by �π(2n).
Explanation
Lemma 2 bounds each prime power dividing the central binomial coefficient by 2n. There are at most �π(2n) distinct prime divisors, so the coefficient is at most (2n)π(2n).
- A
- 21
What broad practical conclusion does the content draw from the prime-count estimates?
- A
The estimates are adequate for many computational applications, including cryptography and coding theory.
- B
The estimates provide a method for correcting transmission errors.
- C
The estimates prove that prime gaps have a fixed maximum size.
- D
The estimates make it unnecessary to distinguish primes from composite numbers.
Correct answer
AThe estimates are adequate for many computational applications, including cryptography and coding theory.
Explanation
The content says the estimates are sufficient for computational applications such as cryptography and coding theory.
- A
- 22
What prime-interval conclusion is presented as a corollary of the density estimates?
- A
There is a prime between x and 6x.
- B
There is a prime between every x and x+10.
- C
There is a prime between x2 and x2+1.
- D
There is a prime between every pair of consecutive integers.
Correct answer
AThere is a prime between x and 6x.
Explanation
The content presents the existence of a prime between a number and six times that number as a corollary of the density estimate.
- A
- 23
How is the number of primes in the interval from x to 6x expressed using the prime-counting function?
- A
π(6x)+π(x)
- B
6π(x)−π(6x)
- C
π(6x)π(x)
- D
π(6x)−π(x)
Correct answer
Dπ(6x)−π(x)
Explanation
Subtracting the number of primes up to x from the number up to 6x counts the primes in the interval above x through 6x.
- A
- 24
Why do the density estimates not imply that every interval from x to x+10 contains a prime?
- A
Every interval of length 10 contains exactly ten composite numbers.
- B
The prime-counting function is undefined for intervals shorter than 10.
- C
Prime-free gaps can occur, so a fixed short interval need not always contain a prime.
- D
The density estimates apply only to intervals whose endpoints are primes.
Correct answer
CPrime-free gaps can occur, so a fixed short interval need not always contain a prime.
Explanation
The content emphasizes that fixed additive intervals are not guaranteed to contain primes; prime-free gaps can occur.
- A
- 25
What does Bertrand's postulate state, as described in the content?
- A
For every positive integer n, there is a prime between n2 and (n+1)2.
- B
For every suitable positive integer n, there is a prime between n and 2n.
- C
For every real number x, there are exactly two primes between x and 2x.
- D
For every prime p, the next prime is less than p+2.
Correct answer
BFor every suitable positive integer n, there is a prime between n and 2n.
Explanation
Bertrand's postulate says that there is a prime between an integer and twice that integer; the content notes that Chebyshev proved it.
- A
- 26
Why does Bertrand's postulate not settle the conjecture that every interval between consecutive squares contains a prime?
- A
Consecutive squares are always less than one unit apart.
- B
The interval between consecutive squares is much shorter than an interval from x to 2x.
- C
Bertrand's postulate applies only when the endpoints are prime numbers.
- D
Bertrand's postulate concerns composite numbers rather than primes.
Correct answer
BThe interval between consecutive squares is much shorter than an interval from x to 2x.
Explanation
An interval between consecutive squares near x has length on the order of �x, much smaller than the interval from x to 2x. Thus, Bertrand's result does not guarantee a prime in every such shorter interval.
- A
- 27
What is the status of the conjecture that there is a prime between every pair of consecutive squares?
- A
It is a theorem that follows immediately from Bertrand's postulate.
- B
It remains an unproven conjecture described as having no known counterexample.
- C
It is equivalent to the Chinese remainder theorem.
- D
It has been disproved by a prime-free interval between two squares.
Correct answer
BIt remains an unproven conjecture described as having no known counterexample.
Explanation
The content describes the claim as an open conjecture: primes have been observed in the intervals, but the general statement is not known to be proved.
- A
- 28
What is the central communication problem that cryptography addresses in the content?
- A
Preventing a communication channel from introducing any transmission errors
- B
Increasing the physical speed at which signals travel through a channel
- C
Allowing parties to communicate over a channel monitored by adversaries without revealing the message to them
- D
Ensuring that every message has the same length and format
Correct answer
CAllowing parties to communicate over a channel monitored by adversaries without revealing the message to them
Explanation
Cryptography aims to let communicating parties transmit messages over an insecure, observed channel while preventing adversaries from understanding the messages.
- A
- 29
Which two concerns does the content distinguish when transmitting information?
- A
Increasing message length and reducing the number of recipients
- B
Correcting errors introduced by the channel and protecting the message from an adversary
- C
Compressing the message and proving the sender's identity
- D
Choosing an alphabet and determining the physical channel material
Correct answer
BCorrecting errors introduced by the channel and protecting the message from an adversary
Explanation
The two concerns identified are error correction, which addresses corrupted data, and security, which prevents an adversary from understanding the message.
- A
- 30
What problem do error-correcting codes address?
- A
They help recover or make sense of information corrupted by errors.
- B
They create a shared secret between the sender and receiver.
- C
They hide the message from an adversary who reads every transmitted bit.
- D
They replace the need for an encryption and decryption algorithm.
Correct answer
AThey help recover or make sense of information corrupted by errors.
Explanation
Error-correcting codes address errors introduced during transmission or storage, helping make corrupted data usable or recoverable.
- A
- 31
In the communication model, what do Alice, Bob, and Eve represent?
- A
Alice and Eve share the secret, while Bob monitors the channel.
- B
Alice corrects errors, Bob introduces errors, and Eve stores the message.
- C
Alice sends a message, Bob receives it, and Eve is the adversary.
- D
Alice is the adversary, Bob encrypts the message, and Eve receives it.
Correct answer
CAlice sends a message, Bob receives it, and Eve is the adversary.
Explanation
The content uses Alice for the sender, Bob for the intended recipient, and Eve for the adversary observing the communication.
- A
- 32
Why is an early shared secret useful to Alice and Bob?
- A
It gives them information Eve does not have to support secure communication.
- B
It guarantees that the channel cannot introduce transmission errors.
- C
It prevents Eve from observing the transmitted bits.
- D
It makes encryption unnecessary because the message is already public.
Correct answer
AIt gives them information Eve does not have to support secure communication.
Explanation
If Alice and Bob share a secret before communicating, they can use information unavailable to Eve to protect their messages, even if Eve observes the channel.
- A
- 33
How does the content represent a message m for cryptographic purposes?
- A
As a physical channel that cannot be represented digitally
- B
As a single prime number that must exceed the key
- C
As a finite string of symbols, often encoded as bits
- D
As a permutation that is identical to the secret key
Correct answer
CAs a finite string of symbols, often encoded as bits
Explanation
A message may represent text, but it can be modeled as a string; the content describes binary symbols 0 and 1 as an alphabet for encoding it.
- A
- 34
In the binary message model, what do the alphabet and n represent?
- A
The alphabet is �{0,1}, and n is the message length in bits.
- B
The alphabet is the English alphabet, and n is the number of ciphertexts.
- C
The alphabet is �{0,1}, and n is the number of recipients.
- D
The alphabet is the set of primes, and n is the number of encryption keys.
Correct answer
AThe alphabet is �{0,1}, and n is the message length in bits.
Explanation
The message is modeled using the binary alphabet �{0,1}, and n denotes its length.
- A
- 35
What is the difference between plaintext and ciphertext?
- A
Plaintext is the secret key, while ciphertext is the original message.
- B
Plaintext is the channel, while ciphertext is the adversary's estimate of the key.
- C
Plaintext is the original message, while ciphertext is the encoded form sent over the channel.
- D
Plaintext is the decryption algorithm, while ciphertext is the encryption algorithm.
Correct answer
CPlaintext is the original message, while ciphertext is the encoded form sent over the channel.
Explanation
The content calls the original message plaintext and the result of encryption ciphertext.
- A
- 36
What are the inputs and output of the encryption algorithm described in the content?
- A
It uses plaintext M and ciphertext C to produce the adversary's key.
- B
It uses secret S and message M to produce ciphertext C.
- C
It uses secret S and ciphertext C to produce a new channel.
- D
It uses ciphertext C and message M to produce secret S.
Correct answer
BIt uses secret S and message M to produce ciphertext C.
Explanation
The encryption algorithm takes the shared secret and plaintext message as inputs and computes the ciphertext.
- A
- 37
What must the decryption algorithm do for the communication to be useful?
- A
Use the ciphertext alone to prevent the receiver from identifying the message.
- B
Use the secret to introduce errors that only the sender can detect.
- C
Use the secret and ciphertext to recover the original message uniquely.
- D
Use the plaintext and ciphertext to generate a different secret each time.
Correct answer
CUse the secret and ciphertext to recover the original message uniquely.
Explanation
The intended receiver must be able to recover the original message uniquely from the ciphertext using the secret; otherwise the transmitted information could be ambiguous.
- A
- 38
How does a simple substitution cipher transform letters?
- A
It replaces every letter with the same fixed digit.
- B
It removes repeated letters and inserts random symbols.
- C
It maps each letter according to a permutation of the alphabet.
- D
It rearranges the words but leaves every letter unchanged.
Correct answer
CIt maps each letter according to a permutation of the alphabet.
Explanation
A substitution cipher uses a permutation of the alphabet, assigning each letter a corresponding encrypted letter.
- A
- 39
Under a cyclic forward shift in which A maps to B, what does the sequence ABC become?
- A
BCD
- B
ABC
- C
CDE
- D
ZAB
Correct answer
ABCD
Explanation
A one-letter forward shift maps A to B, B to C, and C to D, so ABC becomes BCD.
- A
- 40
How does decryption reverse a substitution cipher?
- A
By applying the inverse permutation to the ciphertext
- B
By sorting the ciphertext letters by frequency
- C
By replacing every ciphertext letter with the most common English letter
- D
By applying the same permutation a second time in every case
Correct answer
ABy applying the inverse permutation to the ciphertext
Explanation
The decryption operation applies the inverse of the encryption permutation, recovering the original letters.
- A
- 41
What acts as the secret key in the substitution-cipher model?
- A
The frequency ranking of letters in English
- B
The order in which the message's words are read
- C
The number of characters in the ciphertext
- D
The permutation that maps plaintext letters to ciphertext letters
Correct answer
DThe permutation that maps plaintext letters to ciphertext letters
Explanation
The secret is the chosen permutation of the alphabet; encryption applies it and decryption applies its inverse.
- A
- 42
How many possible permutations are there for a substitution cipher on the 26-letter English alphabet?
- A
262
- B
226
- C
26+26
- D
26!
Correct answer
D26!
Explanation
A permutation can arrange 26 distinct letters in 26! different ways.
- A
- 43
Why can a substitution cipher be vulnerable even when it has many possible keys?
- A
The cipher necessarily reveals the secret key in its first character.
- B
Natural-language letter frequencies and patterns can reveal likely substitutions.
- C
The inverse of every permutation is impossible to compute.
- D
Every ciphertext letter is always identical to its plaintext letter.
Correct answer
BNatural-language letter frequencies and patterns can reveal likely substitutions.
Explanation
Messages in natural languages are not arbitrary strings: some letters and patterns occur more often than others. Frequency analysis can use these patterns to infer the substitution.
- A
- 44
How can examining several meaningful ciphertext messages help an attacker break a substitution cipher?
- A
Each message automatically reveals one complete copy of the secret permutation.
- B
The attacker can identify the key only by observing transmission errors.
- C
Repeated frequency patterns provide evidence about which ciphertext letters correspond to common language letters.
- D
The messages cancel one another, leaving the plaintext visible.
Correct answer
CRepeated frequency patterns provide evidence about which ciphertext letters correspond to common language letters.
Explanation
With multiple meaningful messages, recurring letter frequencies and patterns give the attacker more evidence for mapping ciphertext letters back to likely plaintext letters.
- A
- 45
What distinction does the content draw between a cipher's key space and its practical security?
- A
Practical security depends only on whether the alphabet has more than 26 symbols.
- B
A large key space guarantees that no statistical attack can work.
- C
A large key space alone does not ensure practical security if message statistics enable an attack.
- D
Key-space size is irrelevant because encryption always uses the inverse permutation.
Correct answer
CA large key space alone does not ensure practical security if message statistics enable an attack.
Explanation
Although a substitution cipher has many possible permutations, language statistics can allow an attacker to infer the mapping without testing every key.
- A
- 46
What conclusion does the content reach about the simple substitution cipher?
- A
It is broken in practice because frequency analysis can expose its mapping.
- B
It is secure as long as the permutation has more than 26 possible values.
- C
It corrects errors while also hiding the message.
- D
It cannot be decrypted even by someone who knows the permutation.
Correct answer
AIt is broken in practice because frequency analysis can expose its mapping.
Explanation
The content concludes that simple substitution is not secure in practice because an attacker can use language statistics and frequency analysis to recover the permutation.
- A

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