Modular Arithmetic
- 61Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
61 questions
- 1The familiar rule that adding an even number and an odd number gives an odd number is an example of arithmetic modulo_____.
Hint
The rule tracks whether the remainder is 0 or 1.
Answer
2
- 2In modular arithmetic, two integers a and b are congruent modulo n exactly when their difference is_____.
Hint
Their difference must be divisible by the modulus.
Answer
a multiple of n
- 3The notation a≡b(modn) is read as “a is_____modulo n.”
Hint
This is the standard spoken form of the congruence notation.
Answer
congruent to b
- 4For a positive divisor n, the division algorithm gives unique integers q and r such that a=qn+r, with the remainder in the range_____.
Hint
The remainder can be zero, but it cannot reach the divisor.
Answer
0≤r<n
- 5Two integers are congruent modulo n if and only if they have the same_____when divided by n.
Hint
The quotient may differ, but the leftover amount must match.
Answer
remainder
- 6If a=qn+r and b=q′n+r, subtracting the equations shows that a−b is an integer_____of n.
Hint
The matching remainder terms cancel.
Answer
multiple
- 7If a and b are congruent modulo n, and their remainders are r and r′, then r−r′ is an integer strictly between_____and n.
Hint
Each remainder is between 0 and n−1, so compare the smallest and largest possible differences.
Answer
−n
- 8The clock-math picture for modulo 7 uses the remainders_____as positions around the clock.
Hint
These are all the possible remainders when dividing by 7.
Answer
0 to 6
- 9On a modulo-7 clock, 12 and 5 are equivalent because both land on the same position; in symbols, 12 is congruent to_____modulo 7.
Hint
Going around once adds 7 without changing the clock position.
Answer
5
- 10In clock math, numbers that land on the same position are members of the same_____class.
Hint
The term describes numbers treated as equivalent under a relation.
Answer
equivalence
- 11When multiplying or adding in modular arithmetic, one can first use ordinary arithmetic and then subtract multiples of the modulus until the result is in the range_____.
Hint
Reduce the result to one of the possible remainders modulo n.
Answer
0 to n−1
- 12Modulo 7, the product 10⋅12 is congruent to_____.
Hint
The factors have remainders 3 and 5; reduce their product modulo 7.
Answer
1
- 13The modular addition table for modulo 7 gives a remainder of_____when 4 is added to 4.
Hint
Add first, then remove a multiple of 7.
Answer
1
- 14The modular multiplication table for modulo 7 gives a remainder of_____for 3⋅3.
Hint
The ordinary product is 9; reduce it modulo 7.
Answer
2
- 15Modular addition remains associative: grouping a+b first or b+c first gives the same result because_____.
Hint
The grouping of three addends does not affect their sum.
Answer
addition is associative
- 16Modular addition remains commutative, so changing the order of a and b does not change the result because_____.
Hint
The order of addends does not affect their sum.
Answer
addition is commutative
- 17The modular distributive property states that multiplying a by the sum b+c is equivalent to_____.
Hint
Multiply a by each term in the sum.
Answer
ab+ac
- 18The largest integer that divides both a and b is called their_____.
Hint
This quantity is commonly abbreviated GCD.
Answer
Greatest Common Divisor
- 19A slow way to compute the GCD of two positive integers is to test every possible divisor from 1 up to the_____integer.
Hint
No common divisor can be larger than the smaller input.
Answer
smaller
- 20If b≥a, the first GCD reduction says that $\gcd(a,b)=\gcd(a,\_____).$
Hint
Subtract one copy of the smaller number from the larger.
Answer
b−a
- 21If an integer k divides both a and b, then it also divides_____.
Hint
A difference of two multiples of the same integer is still a multiple of it.
Answer
b−a
- 22To prove the reverse direction of the GCD reduction, if k divides a and b−a, then it also divides_____.
Hint
Write the target integer as the sum of the two quantities already divisible by k.
Answer
b
- 23Writing b=qa+r by the division algorithm lets us strengthen the GCD reduction to $\gcd(a,b)=\gcd(a,\_____)$.
Hint
Repeated subtraction of a leaves the remainder from dividing b by a.
Answer
r
- 24The Euclidean algorithm repeatedly divides one number by the other and replaces the larger number with the_____.
Hint
This is the leftover from the division step.
Answer
remainder
- 25For the example gcd(360,46), the first remainder when 360 is divided by 46 is_____.
Hint
Since 46⋅7=322, subtract this from 360.
Answer
38
- 26Continuing the Euclidean algorithm for 360 and 46 gives the remainder sequence 38, 8, 6, 2, and finally_____.
Hint
The algorithm stops when a division has no remainder.
Answer
0
- 27The Euclidean algorithm gives $\gcd(360,46)=\_____.$
Hint
The GCD is the last nonzero remainder.
Answer
2
- 28The identity 46s+360t=2 certifies that no common divisor of 46 and 360 can be_____than 2.
Hint
Any common divisor must divide every integer combination of the inputs.
Answer
larger
- 29A multiplicative inverse of 4 modulo 7 is 2 because their product is congruent to_____modulo 7.
Hint
An inverse multiplies the original number to the multiplicative identity.
Answer
1
- 30Modulo 7, the multiplicative inverse of 5 is_____.
Hint
Check which remainder multiplied by 5 gives a product with remainder 1.
Answer
3
- 31The number 0 does not have a multiplicative inverse because no product with 0 can be congruent to_____.
Hint
Multiplication by zero always gives zero.
Answer
1
- 32Modulo a prime p, every_____element has a multiplicative inverse.
Hint
The zero element is excluded from this property.
Answer
non-zero
- 33For a modulus that is not prime, an integer has a multiplicative inverse modulo that modulus when its GCD with the modulus is_____.
Hint
The two numbers must share no common factor other than 1.
Answer
1
- 34The number 5 has an inverse modulo 6 because $\gcd(5,6)=\_____.$
Hint
The modulus need not be prime if the number is relatively prime to it.
Answer
1
- 35If bs+pt=1, then modulo p the term pt vanishes, showing that_____is an inverse of b.
Hint
Reduce the identity modulo p.
Answer
s
- 36To compute an inverse of a nonzero number modulo a prime, apply the_____Euclidean algorithm to the number and the prime.
Hint
This version finds the coefficients in an integer combination equal to the GCD.
Answer
extended
- 37In the treasure riddle, the coin count must leave remainder 4 modulo 5 and remainder 1 modulo 7; the smallest such count is_____.
Hint
Check that the number is one more than a multiple of 7 and four more than a multiple of 5.
Answer
29
- 38Two integers are relatively prime when their_____is 1.
Hint
They share no common factor besides 1.
Answer
GCD
- 39The Chinese remainder theorem assumes that the moduli a and b are_____.
Hint
Their only common positive divisor must be 1.
Answer
relatively prime
- 40For relatively prime moduli a and b, the Chinese remainder theorem considers a solution n in the range from 0 to_____.
Hint
There are ab possible integers in the stated range.
Answer
ab−1
- 41When a and b are relatively prime, specifying n modulo a and modulo b determines exactly_____value of n between 0 and ab−1.
Hint
The theorem guarantees uniqueness in that interval.
Answer
one
- 42The Chinese remainder theorem establishes a bijection between the ab possible values of n and the possible pairs of_____modulo a and b.
Hint
Each integer is represented by its residue under both moduli.
Answer
remainders
- 43If two integers x and y have the same remainder modulo a, then_____divides their difference.
Hint
Equal remainders mean the integers differ by a multiple of the modulus.
Answer
a
- 44If a and b are relatively prime and both divide x−y, then their product_____divides x−y.
Hint
Coprimality makes the two divisibility conditions combine into divisibility by the product.
Answer
ab
- 45If distinct integers x and y both lie between 0 and ab−1, they cannot differ by a nonzero multiple of_____.
Hint
The largest possible difference within the interval is less than the product.
Answer
ab
- 46To construct a solution to n≡t(modb), write n in the form $n=kb+\_____.$
Hint
The remainder after division by b is specified by the congruence.
Answer
t
- 47In the construction n=kb+t, the other congruence gives kb≡s−t(moda), so one solves for k by multiplying by the inverse of_____modulo a.
Hint
The coefficient of the unknown k must be made equal to 1 modulo a.
Answer
b
- 48In the card demonstration, each participant receives one red card and one_____card.
Hint
The cards use two colors, with three red cards total and two of the other color.
Answer
black
- 49A participant who likes the movie places their red card closest to the center card and their black card on the_____.
Hint
The participant's arrangement puts the red card nearest the middle.
Answer
outside
- 50A participant who does not like the movie places their_____card closest to the center red card.
Hint
This arrangement is the reverse of the placement used for a yes response.
Answer
black
- 51After the cards are stacked, cutting the deck creates a random_____shift.
Hint
The order wraps around, like positions on a clock.
Answer
cyclic
- 52In the card demonstration, if both participants like the movie, the combined cards contain_____red cards in a row cyclically.
Hint
The center card is red, and both yes responses place red cards beside it.
Answer
three
- 53If either participant does not like the movie, the demonstration does not produce three red cards in a row; instead, it has_____red cards in a row.
Hint
A no response puts a black card beside the center red card.
Answer
two
- 54The random cyclic shift lets a participant who liked the movie maintain plausible_____about their answer.
Hint
They can avoid publicly revealing their private preference.
Answer
deniability
- 55A major application of modular arithmetic in computer science is_____.
Hint
This field protects information and includes cryptographic schemes.
Answer
cryptography
- 56The lecture also identifies privately computing functions and executing cryptographic schemes as applications of modular arithmetic and_____.
Hint
The card demonstration illustrates a way to prove something while preserving private information.
Answer
zero-knowledge proofs
- 57In the simplified streaming example, the contents of a large file are represented as one gigantic_____.
Hint
The file is encoded as a number that can be reduced modulo chosen values.
Answer
integer
- 58A broadcast snippet specifies a modulus and the_____of the file integer when divided by that modulus.
Hint
This is the information needed to state a congruence for the file.
Answer
remainder
- 59In the streaming example, receiving snippets for moduli whose product is larger than the file integer allows reconstruction using the_____.
Hint
This theorem reconstructs an integer from its residues under relatively prime moduli.
Answer
Chinese remainder theorem
- 60Fountain codes let a broadcaster send snippets continuously so that recipients can collect enough information at different times and_____the file.
Hint
They do not need to receive precisely the same selected set of snippets.
Answer
reconstruct
- 61The streaming-code discussion is explicitly a simplified version because practical systems must also account for_____in messages.
Hint
Transmitted data may not always arrive perfectly.
Answer
errors

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