Number Theory and Cryptography
- 128Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
128 questions
- 1For integers a and b, with a nonzero, a divides b when b can be written as a times an_____.
Hint
Use the definition of divisibility.
Answer
integer
- 2If a divides b, then a is a factor or divisor of b, and b is a_____of a.
Hint
This is the complementary term describing b in relation to a.
Answer
multiple
- 3If a divides both b and c, then a also divides their_____.
Hint
Apply the divisibility theorem involving addition.
Answer
sum
- 4If a divides b, then a divides b times any integer_____.
Hint
The divisibility theorem allows multiplication by an arbitrary integer.
Answer
c
- 5If a divides b and b divides c, then a divides_____.
Hint
Divisibility is transitive.
Answer
c
- 6A sum of multiples of b and c, such as m times b plus n times c, is called a_____combination of b and c.
Hint
This standard term describes a sum formed with integer coefficients.
Answer
linear
- 7The division algorithm states that dividing an integer by a positive integer gives a_____quotient and remainder.
Hint
The theorem guarantees that only one pair of values works.
Answer
unique
- 8In the division algorithm, the remainder must be at least zero and strictly less than the_____.
Hint
The upper bound is the positive number being divided by.
Answer
divisor
- 9In the division algorithm, the number being divided is the dividend, and the number dividing it is the_____.
Hint
This is the number that determines the allowed range of the remainder.
Answer
divisor
- 10The notation a div d gives the quotient, while a mod d gives the_____.
Hint
It is what is left after taking out as many whole divisors as possible.
Answer
remainder
- 11Two integers are congruent modulo m exactly when m divides their_____.
Hint
Subtract one of the integers from the other.
Answer
difference
- 12Two integers are congruent modulo m if and only if they leave the same_____when divided by m.
Hint
Think of the remainder as identifying a number's bucket modulo m.
Answer
remainder
- 13On a twelve-hour clock, three o'clock and fifteen o'clock are congruent modulo twelve because their difference is a multiple of the_____.
Hint
The clock's cycle length supplies this number.
Answer
modulus
- 14The statement that a is congruent to b modulo m is a relation, whereas a mod m is a function returning a_____.
Hint
Distinguish whether mod relates two numbers or computes an output.
Answer
remainder
- 15Congruences are preserved under addition and multiplication, but dividing both sides by a number is not always_____.
Hint
A true congruence can become false after division unless an additional condition holds.
Answer
safe
- 16The set of integers from zero through m minus one is denoted Z sub m, and arithmetic modulo m always returns results inside this_____.
Hint
Closure means operations do not leave this collection.
Answer
set
- 17In base ten, each place represents a power of ten; more generally, a base b expansion uses digits from zero through b minus_____.
Hint
The largest allowed digit is one less than the base.
Answer
one
- 18For every positive integer and base greater than one, the base expansion is_____.
Hint
There is only one valid choice of digits for a given number and base.
Answer
unique
- 19In a base b expansion, the leading digit cannot be_____.
Hint
A leading zero would make the written numeral unnecessarily longer.
Answer
zero
- 20Binary, octal, and hexadecimal use bases two, eight, and_____respectively.
Hint
Hexadecimal uses the digits zero through nine and six additional symbols.
Answer
sixteen
- 21The ancient Maya used base twenty, while the ancient Babylonians used base_____.
Hint
This historical base is reflected in the number of minutes in an hour.
Answer
sixty
- 22A binary digit is called a bit, and each position moving left represents a power of two that is twice the value of the position to its_____.
Hint
Binary place values double as you move across the numeral.
Answer
right
- 23Octal uses the digits zero through seven, so the symbols eight and nine are not valid octal_____.
Hint
A base-eight numeral has exactly eight possible symbols for each place.
Answer
digits
- 24In hexadecimal, the letters A through F represent the values ten through_____.
Hint
Hexadecimal needs six extra values beyond the digits zero through nine.
Answer
fifteen
- 25To convert a positive integer to base b by repeated division, record each remainder and read the remainders from_____to top.
Hint
The first remainder is the rightmost digit, so the final reading reverses the order in which remainders appear.
Answer
bottom
- 26Because eight is two cubed, each octal digit corresponds to a group of_____binary bits.
Hint
Group binary digits according to the exponent in two cubed.
Answer
three
- 27Because sixteen is two to the fourth power, each hexadecimal digit corresponds to a group of_____binary bits.
Hint
The group size follows the exponent in two to the fourth power.
Answer
four
- 28Binary addition processes positions from right to left and carries the part of each bit sum that is at least_____.
Hint
A carry occurs when a binary column's sum reaches the base of binary.
Answer
two
- 29Adding two n-bit integers requires big O of n bit additions because the algorithm performs a fixed amount of work at each of the n bit_____.
Hint
The same small operation is repeated once across each place in the numbers.
Answer
positions
- 30Binary multiplication forms shifted partial products; shifting left by j places is equivalent to multiplying by two to the power of_____.
Hint
The shift distance determines the exponent.
Answer
j
- 31Multiplying two n-bit integers by adding shifted partial products takes big O of n squared bit_____.
Hint
There are n partial products, and each addition takes about n bit operations.
Answer
additions
- 32Repeated squaring builds successive powers by squaring the previous value, allowing exponentiation to use about log n multiplications rather than n_____.
Hint
The method is faster than repeatedly multiplying by the base.
Answer
multiplications
- 33In modular exponentiation, reducing after each multiplication keeps intermediate values below the_____.
Hint
Taking a remainder prevents numbers from growing without bound.
Answer
modulus
- 34A prime is a positive integer greater than one whose only positive factors are one and_____.
Hint
A prime has no other positive divisors.
Answer
itself
- 35A positive integer greater than one that is not prime is called_____.
Hint
It can be factored into smaller positive integers.
Answer
composite
- 36The number one is neither prime nor_____.
Hint
It is deliberately excluded from both classifications.
Answer
composite
- 37The theorem stating that every integer greater than one has a unique prime factorization is called the Fundamental Theorem of_____.
Hint
Its name describes the basic structure of whole-number factorization.
Answer
Arithmetic
- 38The Sieve of Eratosthenes finds primes by repeatedly crossing out multiples of primes while keeping the primes themselves_____.
Hint
The method filters out composite numbers from a list.
Answer
standing
- 39If n is composite, it has a prime divisor no greater than the_____of n.
Hint
If both factors exceeded this threshold, their product would exceed n.
Answer
square root
- 40Trial division can establish that n is prime by checking that no integer from two through the square root of n_____it.
Hint
A composite number would have a factor in this range.
Answer
divides
- 41Euclid proved that there are_____many primes.
Hint
His contradiction proof constructs a number from any proposed finite list.
Answer
infinitely
- 42In Euclid's proof, one multiplies all primes in a supposed complete list and adds_____to construct a number that disrupts the list.
Hint
The resulting number leaves remainder one when divided by any listed prime.
Answer
one
- 43A prime of the form two to a prime power p, minus one, is called a_____prime.
Hint
This special family is named after a French monk.
Answer
Mersenne
- 44The prime number theorem estimates the number of primes up to x as approximately x divided by the natural_____of x.
Hint
The estimate uses the natural log function.
Answer
logarithm
- 45The approximate probability that a randomly chosen integer near n is prime is one divided by the natural logarithm of_____.
Hint
The chance decreases slowly as the size of the numbers grows.
Answer
n
- 46A polynomial with whole-number coefficients cannot produce a prime for every input if it is_____.
Hint
A constant polynomial that always equals two is an exception to a careless version of the claim.
Answer
nonconstant
- 47Goldbach's conjecture claims that every even integer greater than two is the sum of two_____.
Hint
For example, ten can be expressed as three plus seven.
Answer
primes
- 48Twin primes are pairs of primes whose difference is_____.
Hint
Examples include three and five, or eleven and thirteen.
Answer
two
- 49The greatest common divisor of two integers is the largest positive integer that divides_____of them.
Hint
A common divisor must divide each number in the pair.
Answer
both
- 50Two integers whose greatest common divisor is one are called_____relatively.
Hint
They share no common factor other than one.
Answer
prime
- 51A list is pairwise relatively prime when every pair of distinct members has greatest common divisor_____.
Hint
One failing pair is enough to disqualify the entire list.
Answer
one
- 52To compute a greatest common divisor from prime factorizations, take the smaller exponent of each prime appearing in the_____.
Hint
Compare the exponent of each prime in both numbers.
Answer
factorizations
- 53To compute a least common multiple from prime factorizations, take the larger exponent of each prime appearing in the_____.
Hint
The lcm must include enough copies to cover both numbers.
Answer
factorizations
- 54For positive integers a and b, their product equals their greatest common divisor times their least common_____.
Hint
This identity links the gcd and the lcm.
Answer
multiple
- 55The Euclidean algorithm replaces the pair a and b with b and the remainder after dividing a by b, without changing the_____.
Hint
The pair shrinks, but the quantity being computed stays the same.
Answer
greatest common divisor
- 56The Euclidean algorithm stops when a remainder becomes_____.
Hint
At that point the previous nonzero remainder is the answer.
Answer
zero
- 57The greatest common divisor found by the Euclidean algorithm is the last_____remainder.
Hint
It is the divisor immediately before the zero remainder.
Answer
nonzero
- 58The Euclidean algorithm is efficient because it uses repeated division and has running time big O of the logarithm of the smaller_____.
Hint
The analysis measures its growth relative to the input size.
Answer
number
- 59Bézout's identity states that the greatest common divisor of a and b can be written as an integer_____of a and b.
Hint
The expression uses integer coefficients multiplying the two original numbers.
Answer
linear combination
- 60The integers multiplying a and b in Bézout's identity are called Bézout_____.
Hint
They are the integer multipliers in the linear combination.
Answer
coefficients
- 61The extended Euclidean algorithm finds Bézout coefficients while running the divisions, avoiding a separate_____pass.
Hint
The ordinary method can recover coefficients by retracing the division steps.
Answer
backward
- 62If a and b are relatively prime and a divides b times c, then a must divide_____.
Hint
Bézout's identity can isolate c from the product.
Answer
c
- 63If a prime divides a product of several factors, it must divide at least one factor_____.
Hint
A prime divisor cannot be distributed across multiple factors without dividing one of them.
Answer
individually
- 64The uniqueness proof for prime factorization uses Euclid's lemma to show that a prime on one side of two equal factorizations must also occur on the_____side.
Hint
The prime divides the product represented by the other factorization.
Answer
other
- 65A linear congruence has the form a times x congruent to b modulo m, where x is the_____to be found.
Hint
It is the value that must make the congruence true.
Answer
unknown
- 66If x solves a congruence modulo m, then x plus any whole-number multiple of m is also a_____.
Hint
Solutions occur in complete congruence classes.
Answer
solution
- 67An inverse of a modulo m is a number that, when multiplied by a, is congruent to_____modulo m.
Hint
It plays the role of a multiplicative reciprocal in modular arithmetic.
Answer
one
- 68For modulus greater than one, an inverse of a modulo m exists exactly when a and m are_____.
Hint
The condition is equivalent to their greatest common divisor being one.
Answer
relatively prime
- 69Bézout's identity constructs an inverse modulo m by reducing an equation for the greatest common divisor of a and m, which must equal_____.
Hint
The coefficient of a in the identity becomes the inverse.
Answer
one
- 70To solve a linear congruence when the coefficient has an inverse, multiply both sides by that_____.
Hint
This operation cancels the coefficient without unsafe division.
Answer
inverse
- 71Cancellation from a times c congruent to b times c modulo m is valid when c and m are_____.
Hint
The common divisor of the cancellable factor and modulus must be one.
Answer
relatively prime
- 72The Chinese Remainder Theorem requires the moduli to be_____relatively prime.
Hint
Every two distinct moduli must share no common factor other than one.
Answer
pairwise
- 73Under the Chinese Remainder Theorem, a system's solution is unique modulo the_____of all the moduli.
Hint
The theorem combines the moduli into one overall cycle length.
Answer
product
- 74In the constructive Chinese Remainder Theorem method, each modulus is omitted in turn when forming a partial product, and an inverse of that partial product is found modulo the omitted_____.
Hint
Pairwise relative primality guarantees this inverse exists.
Answer
modulus
- 75Back substitution for a system of congruences begins by rewriting a congruence as an ordinary equation using a multiple of its_____.
Hint
The equation expresses all integers in the first congruence class.
Answer
modulus
- 76Fermat's little theorem says that if p is prime and a is not divisible by p, then a to the power p minus one is congruent to_____modulo p.
Hint
The theorem reduces a large power to the multiplicative identity.
Answer
one
- 77A second form of Fermat's little theorem, valid for every integer a, says that a to the power p is congruent to_____modulo prime p.
Hint
This version has no requirement that a be nonzero modulo p.
Answer
a
- 78To reduce a huge exponent using Fermat's little theorem, divide it into multiples of p minus one and a_____.
Hint
The multiples contribute powers congruent to one.
Answer
remainder
- 79A composite number that passes the prime-like test for a chosen base is called a_____to that base.
Hint
The term means that the number falsely appears prime under that test.
Answer
pseudoprime
- 80If the Fermat congruence test fails for n, then n is certainly_____.
Hint
A prime must pass the theorem's guaranteed condition.
Answer
composite
- 81A primitive root modulo a prime p has powers that reach every nonzero residue before any value_____.
Hint
Its powers sweep through all nonzero values exactly once in a cycle.
Answer
repeats
- 82For a primitive root r modulo p, the exponent that produces a nonzero target a is called the discrete_____of a to base r.
Hint
It reverses modular exponentiation in a way analogous to an ordinary logarithm.
Answer
logarithm
- 83Modular exponentiation is efficient, but finding the exponent from its result is the discrete logarithm problem, for which no fast method is known on an ordinary_____.
Hint
The difficulty concerns the usual classical computing model.
Answer
computer
- 84A hashing function maps a record's key to a memory_____.
Hint
Its purpose is to determine where a record should be stored.
Answer
location
- 85The common hash function that takes a key modulo the number of locations maps keys into values from zero through one less than the number of_____.
Hint
The remainder is always smaller than the modulus.
Answer
locations
- 86When two different keys map to the same memory location, the event is called a_____.
Hint
More possible keys than table slots make this unavoidable.
Answer
collision
- 87Linear probing handles a collision by trying successive locations using the hash value plus an increasing offset, all modulo the table_____.
Hint
The modular reduction makes the search wrap from the end back to the beginning.
Answer
size
- 88A computer-generated sequence that follows a fixed recipe but appears random is called_____.
Hint
The name means false random.
Answer
pseudorandom
- 89A linear congruential generator uses a modulus, multiplier, increment, and starting value called the_____.
Hint
This initial value begins the sequence.
Answer
seed
- 90In a linear congruential generator, taking each result modulo m ensures every output lies between zero and one less than_____.
Hint
The modulus bounds the possible remainders.
Answer
m
- 91In a pure multiplicative generator, a zero seed causes every later value to remain_____.
Hint
Multiplying this starting value by the multiplier cannot change it.
Answer
zero
- 92The number of generated values before a sequence begins repeating is called its_____.
Hint
A longer value is desirable in a pseudorandom generator.
Answer
period
- 93A check digit is chosen so that a specified weighted sum of the digits is congruent to zero modulo a chosen_____.
Hint
A mistyped digit changes the sum's remainder.
Answer
modulus
- 94In the Universal Product Code, odd-position digits are multiplied by three, even-position digits are used as they are, and the total is checked modulo_____.
Hint
The check digit is chosen to make the weighted total a multiple of this number.
Answer
ten
- 95The UPC's alternating weights help detect a transposition, which occurs when two neighboring digits are_____.
Hint
This is a common typing error involving reversed order.
Answer
swapped
- 96The ISBN-10 check digit uses position weights and a modulus of eleven; if the check digit equals ten, it is written as the letter_____.
Hint
The symbol represents the value ten in this check-digit system.
Answer
X
- 97The ISBN-10 modulus helps detect single-digit errors and transpositions because eleven is_____.
Hint
Modulo a prime, a product is zero only if one of its factors is zero.
Answer
prime
- 98Cryptography transforms a plain message so that only the intended recipient can read it; hiding the message is called_____, while recovering it is decryption.
Hint
It is the process that creates a concealed message.
Answer
encryption
- 99The Caesar cipher encrypts letters by shifting each one three places forward, wrapping from the end of the alphabet to the_____.
Hint
The alphabet is treated as a cycle.
Answer
start
- 100In the numerical Caesar cipher, letters are represented by values zero through twenty-five, and encryption adds three modulo_____.
Hint
This is the number of letters in the alphabet.
Answer
twenty-six
- 101Caesar decryption reverses encryption by subtracting three and taking the result modulo_____.
Hint
The same alphabet cycle is used in both directions.
Answer
twenty-six
- 102A shift cipher generalizes Caesar by using any shift amount k, which is the secret_____.
Hint
The recipient needs this value to encrypt or decrypt.
Answer
key
- 103A shift cipher has only twenty-six possible keys, making it vulnerable to trying every key, a method called_____search.
Hint
The attacker checks all possibilities one by one.
Answer
exhaustive
- 104An affine cipher transforms a letter value by multiplying by a and adding b modulo twenty-six; it is usable only if the transformation is a_____.
Hint
Every plaintext letter must map to a distinct ciphertext letter.
Answer
bijection
- 105An affine cipher is a bijection exactly when a and twenty-six are_____.
Hint
This condition guarantees that a has a modular inverse.
Answer
relatively prime
- 106To decrypt an affine cipher, multiply the ciphertext minus b by the modular_____of a.
Hint
This value cancels the multiplier used during encryption.
Answer
inverse
- 107Cryptanalysis of a shift cipher can exploit English letter frequencies because shifting preserves the overall frequency_____.
Hint
The letters change, but their relative counts are merely moved to different symbols.
Answer
pattern
- 108A cipher that always replaces each plaintext letter with the same ciphertext letter is called_____.
Hint
Its name describes using one fixed alphabet mapping.
Answer
monoalphabetic
- 109A transposition cipher encrypts by rearranging letter positions according to a_____, without changing the letters themselves.
Hint
This is a one-to-one rearrangement of the positions in a block.
Answer
permutation
- 110To decrypt a transposition cipher, apply the_____permutation, which undoes the rearrangement.
Hint
Applying this mapping reverses the original position changes.
Answer
inverse
- 111A cryptosystem is described by plaintexts, ciphertexts, a keyspace, encryption functions, and decryption_____.
Hint
The final component reverses the encryption for a chosen key.
Answer
functions
- 112A defining requirement of a cryptosystem is that decrypting an encrypted plaintext with the matching key returns the original_____.
Hint
Locking and then correctly unlocking must restore the input.
Answer
plaintext
- 113Private-key ciphers require the communicating parties to share and protect the same_____material.
Hint
Both parties need information that an eavesdropper must not learn.
Answer
secret
- 114In public-key cryptography, the encryption key may be public, while the matching_____key remains secret.
Hint
Only the receiver should be able to open messages encrypted for them.
Answer
decryption
- 115The RSA modulus n is formed by multiplying two different large_____numbers.
Hint
The security relies on difficulty reversing this multiplication.
Answer
prime
- 116In RSA, the public exponent e is chosen to be relatively prime to the product of p minus one and q minus_____.
Hint
This condition ensures that e has an inverse for decryption.
Answer
one
- 117RSA encryption transforms a message block M into C by raising M to the public exponent and reducing modulo the_____.
Hint
The public key includes this number, formed from the two primes.
Answer
modulus
- 118RSA decryption uses a private exponent d that is the inverse of e modulo the product of p minus one and q minus_____.
Hint
The product is the same quantity used when selecting the public exponent.
Answer
one
- 119The central RSA security assumption is that multiplying large primes is easy, but factoring their product is computationally_____.
Hint
The asymmetry between these tasks protects the private key.
Answer
hard
- 120RSA message blocks must be smaller than the modulus so that each block remains within the allowed_____.
Hint
A message block cannot exceed the number used for modular reduction.
Answer
range
- 121RSA implementations use repeated squaring and reduce modulo n during encryption so they never need to construct the enormous full_____.
Hint
The exponentiation itself would otherwise create very large intermediate integers.
Answer
power
- 122A digital signature primarily proves the_____of a message rather than hiding its contents.
Hint
The signature helps verify who created or sent the message.
Answer
authorship
- 123In the basic RSA signing demonstration, the signer applies the private exponent, and anyone verifies by applying the signer's public_____.
Hint
The public RSA operation reverses the private-key operation.
Answer
exponent
- 124Raw RSA signatures are vulnerable because an attacker can choose a number as a signature and compute its public-key image as a matching_____.
Hint
The attacker constructs both sides of a pair that passes the basic check.
Answer
message
- 125The Diffie-Hellman protocol lets two parties establish a shared secret even when an eavesdropper can hear every public_____.
Hint
The parties exchange modular powers, not their secret exponents.
Answer
message
- 126In Diffie-Hellman, the public prime and primitive root are agreed upon openly, while each participant keeps their exponent_____.
Hint
The exchanged powers do not reveal these values efficiently.
Answer
secret
- 127An eavesdropper trying to recover a Diffie-Hellman secret exponent from a public power faces the discrete_____problem.
Hint
This problem reverses exponentiation modulo a prime.
Answer
logarithm
- 128Alice and Bob obtain the same Diffie-Hellman key because raising a to one secret power and then the other gives a power whose exponent is the_____of their secrets.
Hint
Exponentiation of a power multiplies the exponents.
Answer
product

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