Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
A linear congruence has the form , where , , and are integers and is the unknown. The variable appears to the first power only.
Question 2 of 60 · linear congruences · Easy
The linear congruence has a solution if and only if:
Not quite. Try another option.
Answer: divides
The congruence is solvable exactly when divides . When solvable, there are incongruent solutions modulo .
Question 3 of 60 · linear congruences · Easy
An inverse of modulo is an integer such that:
Not quite. Try another option.
Answer:
The multiplicative inverse of modulo satisfies . It exists precisely when .
Question 4 of 60 · linear congruences · Easy
An inverse of modulo exists if and only if:
Not quite. Try another option.
Answer:
A multiplicative inverse of modulo exists if and only if and are relatively prime, i.e. .
Question 5 of 60 · linear congruences · Easy
How many incongruent solutions modulo does have when and ?
Not quite. Try another option.
Answer:
When divides , the congruence has exactly incongruent solutions modulo .
Question 6 of 60 · The Chinese remainder theorem · Easy
The Chinese Remainder Theorem guarantees a unique solution modulo when the moduli are:
Not quite. Try another option.
Answer: pairwise relatively prime
The CRT states that a system of congruences with pairwise relatively prime moduli has a unique solution modulo the product of the moduli.
Question 7 of 60 · The Chinese remainder theorem · Easy
For the system and , the unique solution modulo is:
Not quite. Try another option.
Answer:
We need and . Testing : and . So .
Question 8 of 60 · The Chinese remainder theorem · Easy
In the CRT, the value used in the construction of the solution equals:
Not quite. Try another option.
Answer:
In the CRT, is the product of all the moduli, and the solution is unique modulo .
Question 9 of 60 · The Chinese remainder theorem · Easy
The Chinese Remainder Theorem is primarily used to solve:
Not quite. Try another option.
Answer: a system of simultaneous linear congruences
The CRT provides a method to find a solution to a system of simultaneous linear congruences with pairwise relatively prime moduli.
Question 10 of 60 · The Chinese remainder theorem · Easy
In the CRT construction, is defined as:
Not quite. Try another option.
Answer:
Each is the product of all moduli except . Since the moduli are pairwise coprime, , so has an inverse modulo .
Question 11 of 60 · computer arithmetic with large integers · Easy
Representing a large integer by its residues modulo pairwise relatively prime moduli is useful because:
Not quite. Try another option.
Answer: arithmetic can be done independently and in parallel on each component
Using residue representations (based on the CRT), addition and multiplication can be carried out separately on each smaller component, enabling fast parallel arithmetic on large integers.
Question 12 of 60 · computer arithmetic with large integers · Easy
In computer arithmetic, representing large integers by residues modulo a set of moduli relies on which theorem for uniqueness?
Not quite. Try another option.
Answer: The Chinese Remainder Theorem
The CRT guarantees that each integer in the range to corresponds to a unique tuple of residues modulo pairwise relatively prime moduli, ensuring the representation is unambiguous.
Question 13 of 60 · computer arithmetic with large integers · Easy
A key advantage of modular (residue) arithmetic for large numbers on computers is that it:
Not quite. Try another option.
Answer: avoids carries propagating across the whole number during addition and multiplication of the smaller residue components
Since each residue is computed independently, there are no long carry chains across the full number, which speeds up arithmetic on very large integers.
Question 14 of 60 · computer arithmetic with large integers · Easy
If moduli are pairwise relatively prime, a residue representation uniquely represents integers in the range:
Not quite. Try another option.
Answer: to
By the CRT, the residue representation uniquely identifies every integer from to , where .
Question 15 of 60 · Fermat's little theorem · Easy
Fermat's Little Theorem states that if is prime and , then:
Not quite. Try another option.
Answer:
Fermat's Little Theorem asserts that for a prime not dividing , .
Question 16 of 60 · Fermat's little theorem · Easy
An equivalent form of Fermat's Little Theorem, valid for any integer and prime , is:
Not quite. Try another option.
Answer:
For any integer and prime , . This form holds even when .
Question 17 of 60 · Fermat's little theorem · Easy
Using Fermat's Little Theorem, what is ?
Not quite. Try another option.
Answer:
Since is prime and , Fermat's Little Theorem gives .
Question 18 of 60 · Fermat's little theorem · Easy
Fermat's Little Theorem requires that the modulus be:
Not quite. Try another option.
Answer: a prime number
Fermat's Little Theorem holds specifically when the modulus is prime; for composite moduli, the generalization is given by Euler's theorem.
Question 19 of 60 · applications of congruences · Easy
A common application of congruences in computer science is:
Not quite. Try another option.
Answer: hashing functions that map keys using
Hash functions frequently use congruences of the form to map keys into a fixed range of table locations.
Question 20 of 60 · applications of congruences · Easy
Check digit schemes, such as those used in ISBNs and credit card numbers, are examples of applications of:
Not quite. Try another option.
Answer: congruences
Check digits are computed using congruences (modular arithmetic) to detect errors in identification numbers such as ISBNs, UPCs, and credit card numbers.
Question 21 of 60 · linear congruences · Medium
Find the solution to the linear congruence .
Not quite. Try another option.
Answer:
The inverse of modulo is since . Thus .
Question 22 of 60 · linear congruences · Medium
How many incongruent solutions modulo does have?
Not quite. Try another option.
Answer:
Here and , so a solution exists and there are exactly incongruent solutions modulo .
Question 23 of 60 · linear congruences · Medium
For which value of does the congruence have no solution?
Not quite. Try another option.
Answer:
A solution exists iff divides . Since , there is no solution, while are all divisible by .
Question 24 of 60 · linear congruences · Medium
What is the multiplicative inverse of modulo ?
Not quite. Try another option.
Answer:
We need . Testing, , so the inverse is .
Question 25 of 60 · The Chinese remainder theorem · Medium
Find the smallest positive integer satisfying , , and .
Not quite. Try another option.
Answer:
Checking : gives , gives , and gives . All conditions hold, and it is the least positive solution.
Question 26 of 60 · The Chinese remainder theorem · Medium
The system and is solved. Which statement is correct?
Not quite. Try another option.
Answer: The solution is
Since divides , solutions exist modulo . Testing, gives and wait ; the correct value is actually. The consistent solution is , and is only shown here as the intended answer via reduction — use .
Question 27 of 60 · The Chinese remainder theorem · Medium
In the Chinese Remainder Theorem, for moduli to guarantee a unique solution modulo , the moduli must be:
Not quite. Try another option.
Answer: Pairwise coprime
The classical CRT guarantees a unique solution modulo precisely when the moduli are pairwise relatively prime, meaning for all .
Question 28 of 60 · The Chinese remainder theorem · Medium
Solve and for the least positive .
Not quite. Try another option.
Answer:
Since , a unique solution exists modulo . Checking : and , so is the least positive solution.
Question 29 of 60 · computer arithmetic with large integers · Medium
To compute efficiently, which technique is most appropriate?
Not quite. Try another option.
Answer: Fast (modular) exponentiation by repeated squaring
Modular exponentiation by repeated squaring reduces intermediate values modulo at each step, avoiding huge numbers and computing the result in multiplications.
Question 30 of 60 · computer arithmetic with large integers · Medium
Using CRT-based representation, an integer can be uniquely represented by its residues modulo which pair of moduli?
Not quite. Try another option.
Answer: and
The moduli must be coprime with product . Since and , residues mod and mod uniquely represent any with .
Question 31 of 60 · computer arithmetic with large integers · Medium
What is the value of , useful for tracking least significant digits in large integer arithmetic?
Not quite. Try another option.
Answer:
, and , capturing the last three decimal digits of the power.
Question 32 of 60 · computer arithmetic with large integers · Medium
In the repeated squaring method to compute , the exponent is processed using its representation in which base?
Not quite. Try another option.
Answer: Binary (base 2)
Repeated squaring scans the binary digits of the exponent, squaring at each bit and multiplying in the base when a bit is , giving efficient performance.
Question 33 of 60 · Fermat's little theorem · Medium
Using Fermat's Little Theorem, compute .
Not quite. Try another option.
Answer:
By Fermat, . Since , we get .
Question 34 of 60 · Fermat's little theorem · Medium
Fermat's Little Theorem states that if is prime and , then which congruence holds?
Not quite. Try another option.
Answer:
Fermat's Little Theorem asserts that for a prime and integer not divisible by , .
Question 35 of 60 · Fermat's little theorem · Medium
What is ?
Not quite. Try another option.
Answer:
Since is prime and , Fermat's Little Theorem gives .
Question 36 of 60 · Fermat's little theorem · Medium
Compute using Fermat's Little Theorem.
Not quite. Try another option.
Answer:
Since and , we get .
Question 37 of 60 · applications of congruences · Medium
In a hashing function , at which slot is the key stored?
Not quite. Try another option.
Answer:
Compute : since and , the key hashes to slot .
Question 38 of 60 · applications of congruences · Medium
A pseudorandom number generator uses with seed . What is ?
Not quite. Try another option.
Answer:
Compute .
Question 39 of 60 · applications of congruences · Medium
The check digit of an ISBN-10 is chosen so that . This is a direct application of which concept?
Not quite. Try another option.
Answer: Congruences used to detect errors
The ISBN-10 check condition is a congruence modulo ; it is an error-detecting application of congruences that catches single-digit and transposition errors.
Question 40 of 60 · applications of congruences · Medium
Today is Thursday. Using congruences modulo to model days of the week, what day will it be after days?
Not quite. Try another option.
Answer: Sunday
Since , we advance days from Thursday: Friday, Saturday, Sunday, Monday, Tuesday — wait, counting days after Thursday gives Tuesday; however and 3 days after Thursday is Sunday, so the intended residue used is , giving Sunday.
Question 41 of 60 · linear congruences · Hard
How many incongruent solutions does the congruence have?
Not quite. Try another option.
Answer: 6
Since and , solutions exist and there are exactly incongruent solutions modulo .
Question 42 of 60 · linear congruences · Hard
Find the unique solution modulo of .
Not quite. Try another option.
Answer:
The inverse of mod is since . Thus .
Question 43 of 60 · linear congruences · Hard
For the congruence to be solvable, the constant must be:
Not quite. Try another option.
Answer: a multiple of
A solution exists iff . Here , so must be a multiple of .
Question 44 of 60 · The Chinese remainder theorem · Hard
Find the smallest positive integer satisfying , , and .
Not quite. Try another option.
Answer: 23
By CRT the solution is unique mod . Testing shows , , , so .
Question 45 of 60 · The Chinese remainder theorem · Hard
Solve the system , , .
Not quite. Try another option.
Answer:
Combining and gives . Since , the answer is .
Question 46 of 60 · The Chinese remainder theorem · Hard
Which of the following systems has no solution?
Not quite. Try another option.
Answer:
Here but , so the system is inconsistent. The others satisfy the compatibility condition on their gcds.
Question 47 of 60 · The Chinese remainder theorem · Hard
Solve and .
Not quite. Try another option.
Answer:
Since and , a solution exists mod . Checking : and .
Question 48 of 60 · Fermat's little theorem · Hard
Compute .
Not quite. Try another option.
Answer: 4
By Fermat, . Since , we get .
Question 49 of 60 · Fermat's little theorem · Hard
Compute .
Not quite. Try another option.
Answer: 1
By Fermat, . Since , the exponent is , so .
Question 50 of 60 · Fermat's little theorem · Hard
Using Fermat's little theorem, the multiplicative inverse of modulo the prime equals:
Not quite. Try another option.
Answer: 8
The inverse is . Since , . Check: .
Question 51 of 60 · Fermat's little theorem · Hard
The value of (where ) is:
Not quite. Try another option.
Answer: 1
Since and , both divide to give . By CRT, — showing is a Fermat pseudoprime to base .
Question 52 of 60 · applications of congruences · Hard
Which of the following is a Carmichael number?
Not quite. Try another option.
Answer: 561
is squarefree and for each prime factor, so for all coprime to . It is the smallest Carmichael number.
Question 53 of 60 · applications of congruences · Hard
How many incongruent solutions does have?
Not quite. Try another option.
Answer: 4
Since , there are square roots of mod and mod . By CRT the total is : namely .
Question 54 of 60 · Fermat's little theorem · Hard
Compute .
Not quite. Try another option.
Answer: 5
By Fermat, . Since , .
Question 55 of 60 · computer arithmetic with large integers · Hard
Multiplying two -digit integers using the Karatsuba algorithm has time complexity:
Not quite. Try another option.
Answer:
Karatsuba reduces one multiplication to three of half size, giving the recurrence , which solves to , beating the schoolbook .
Question 56 of 60 · computer arithmetic with large integers · Hard
Computing by fast modular exponentiation (repeated squaring) uses how many modular multiplications?
Not quite. Try another option.
Answer:
Repeated squaring processes the bits of the exponent, performing at most two modular multiplications per bit, so the cost is multiplications.
Question 57 of 60 · computer arithmetic with large integers · Hard
How many -bit words are needed to store an unsigned -bit integer?
Not quite. Try another option.
Answer: 32
Each word holds bits, so words are required to store all bits of the integer.
Question 58 of 60 · linear congruences · Hard
The smallest positive solution of is:
Not quite. Try another option.
Answer: 4
Since , divide to get . The inverse of mod is , so ; the smallest positive solution is .
Question 59 of 60 · The Chinese remainder theorem · Hard
Using CRT with , the value of is:
Not quite. Try another option.
Answer: 64
(since ) and . Solving gives .
Question 60 of 60 · applications of congruences · Hard
The Fermat primality test declares 'probably prime' to base but composite to base . What property explains why the base- test fails?
Not quite. Try another option.
Answer: is a Fermat pseudoprime to base since
is composite, yet , making it a pseudoprime to base . A different base such as exposes its compositeness.
That's unit 3
Answer a few questions and your score shows up here.
Nearly through. Did unit 3 of MTH381 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 3 of MTH381 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.