A. where the modulus itself changes at every step of the solving process
B.
C.
D.
Correct Answer:
Explanation:
A linear congruence has the form , where , , and are integers and is the unknown. The variable appears to the first power only.
Incorrect! Try again.
2The linear congruence has a solution if and only if:
linear congruences
Easy
A. divides
B. divides
C. always
D. divides
Correct Answer: divides
Explanation:
The congruence is solvable exactly when divides . When solvable, there are incongruent solutions modulo .
Incorrect! Try again.
3An inverse of modulo is an integer such that:
linear congruences
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The multiplicative inverse of modulo satisfies . It exists precisely when .
Incorrect! Try again.
4An inverse of modulo exists if and only if:
linear congruences
Easy
A. is even
B.
C.
D. is prime
Correct Answer:
Explanation:
A multiplicative inverse of modulo exists if and only if and are relatively prime, i.e. .
Incorrect! Try again.
5How many incongruent solutions modulo does have when and ?
linear congruences
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
When divides , the congruence has exactly incongruent solutions modulo .
Incorrect! Try again.
6The Chinese Remainder Theorem guarantees a unique solution modulo when the moduli are:
The Chinese remainder theorem
Easy
A.pairwise relatively prime
B.all even
C.all prime
D.all equal
Correct Answer: pairwise relatively prime
Explanation:
The CRT states that a system of congruences with pairwise relatively prime moduli has a unique solution modulo the product of the moduli.
Incorrect! Try again.
7For the system and , the unique solution modulo is:
The Chinese remainder theorem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
We need and . Testing : and . So .
Incorrect! Try again.
8In the CRT, the value used in the construction of the solution equals:
The Chinese remainder theorem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
In the CRT, is the product of all the moduli, and the solution is unique modulo .
Incorrect! Try again.
9The Chinese Remainder Theorem is primarily used to solve:
The Chinese remainder theorem
Easy
A.a differential equation
B.a single quadratic equation
C.a system of linear inequalities
D.a system of simultaneous linear congruences
Correct Answer: a system of simultaneous linear congruences
Explanation:
The CRT provides a method to find a solution to a system of simultaneous linear congruences with pairwise relatively prime moduli.
Incorrect! Try again.
10In the CRT construction, is defined as:
The Chinese remainder theorem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Each is the product of all moduli except . Since the moduli are pairwise coprime, , so has an inverse modulo .
Incorrect! Try again.
11Representing a large integer by its residues modulo pairwise relatively prime moduli is useful because:
computer arithmetic with large integers
Easy
A.it removes the need for any modulus
B.arithmetic can be done independently and in parallel on each component
C.it converts the number to binary automatically
D.it always reduces the number to a single digit
Correct Answer: arithmetic can be done independently and in parallel on each component
Explanation:
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.
Incorrect! Try again.
12In computer arithmetic, representing large integers by residues modulo a set of moduli relies on which theorem for uniqueness?
computer arithmetic with large integers
Easy
A.The Chinese Remainder Theorem
B.Wilson's Theorem
C.The Binomial Theorem
D.Fermat's Little Theorem
Correct Answer: The Chinese Remainder Theorem
Explanation:
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.
Incorrect! Try again.
13A key advantage of modular (residue) arithmetic for large numbers on computers is that it:
computer arithmetic with large integers
Easy
A.eliminates the need for storing the moduli
B.avoids carries propagating across the whole number during addition and multiplication of the smaller residue components
C.only works for negative integers
D.requires floating-point hardware
Correct Answer: avoids carries propagating across the whole number during addition and multiplication of the smaller residue components
Explanation:
Since each residue is computed independently, there are no long carry chains across the full number, which speeds up arithmetic on very large integers.
Incorrect! Try again.
14If moduli are pairwise relatively prime, a residue representation uniquely represents integers in the range:
computer arithmetic with large integers
Easy
A. to
B. to
C. to
D. to
Correct Answer: to
Explanation:
By the CRT, the residue representation uniquely identifies every integer from to , where .
Incorrect! Try again.
15Fermat's Little Theorem states that if is prime and , then:
Fermat's little theorem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Fermat's Little Theorem asserts that for a prime not dividing , .
Incorrect! Try again.
16An equivalent form of Fermat's Little Theorem, valid for any integer and prime , is:
Fermat's little theorem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
For any integer and prime , . This form holds even when .
Incorrect! Try again.
17Using Fermat's Little Theorem, what is ?
Fermat's little theorem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Since is prime and , Fermat's Little Theorem gives .
Incorrect! Try again.
18Fermat's Little Theorem requires that the modulus be:
Fermat's little theorem
Easy
A.a prime number
B.an even number
C.a perfect square
D.a composite number
Correct Answer: a prime number
Explanation:
Fermat's Little Theorem holds specifically when the modulus is prime; for composite moduli, the generalization is given by Euler's theorem.
Incorrect! Try again.
19A common application of congruences in computer science is:
applications of congruences
Easy
A.sorting a list in ascending order
B.hashing functions that map keys using
C.drawing graphs of polynomials
D.computing derivatives of functions
Correct Answer: hashing functions that map keys using
Explanation:
Hash functions frequently use congruences of the form to map keys into a fixed range of table locations.
Incorrect! Try again.
20Check digit schemes, such as those used in ISBNs and credit card numbers, are examples of applications of:
applications of congruences
Easy
A.graph coloring
B.numerical integration
C.congruences
D.matrix inversion
Correct Answer: congruences
Explanation:
Check digits are computed using congruences (modular arithmetic) to detect errors in identification numbers such as ISBNs, UPCs, and credit card numbers.
Incorrect! Try again.
21Find the solution to the linear congruence .
linear congruences
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The inverse of modulo is since . Thus .
Incorrect! Try again.
22How many incongruent solutions modulo does have?
linear congruences
Medium
A.
B.
C.No solutions
D.
Correct Answer:
Explanation:
Here and , so a solution exists and there are exactly incongruent solutions modulo .
Incorrect! Try again.
23For which value of does the congruence have no solution?
linear congruences
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
A solution exists iff divides . Since , there is no solution, while are all divisible by .
Incorrect! Try again.
24What is the multiplicative inverse of modulo ?
linear congruences
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
We need . Testing, , so the inverse is .
Incorrect! Try again.
25Find the smallest positive integer satisfying , , and .
The Chinese remainder theorem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Checking : gives , gives , and gives . All conditions hold, and it is the least positive solution.
Incorrect! Try again.
26The system and is solved. Which statement is correct?
The Chinese remainder theorem
Medium
A.The unique solution modulo is
B.The solution is
C.No solution exists at all
D.No solution exists because does not divide ... actually it does, so solutions exist modulo
Correct Answer: The solution is
Explanation:
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 .
Incorrect! Try again.
27In the Chinese Remainder Theorem, for moduli to guarantee a unique solution modulo , the moduli must be:
The Chinese remainder theorem
Medium
A.All even
B.In increasing order
C.Pairwise coprime
D.All prime numbers
Correct Answer: Pairwise coprime
Explanation:
The classical CRT guarantees a unique solution modulo precisely when the moduli are pairwise relatively prime, meaning for all .
Incorrect! Try again.
28Solve and for the least positive .
The Chinese remainder theorem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Since , a unique solution exists modulo . Checking : and , so is the least positive solution.
Incorrect! Try again.
29To compute efficiently, which technique is most appropriate?
computer arithmetic with large integers
Medium
A.Computing fully then dividing
B.Newton's method for roots
C.Fast (modular) exponentiation by repeated squaring
D.Long division of decimal digits
Correct Answer: Fast (modular) exponentiation by repeated squaring
Explanation:
Modular exponentiation by repeated squaring reduces intermediate values modulo at each step, avoiding huge numbers and computing the result in multiplications.
Incorrect! Try again.
30Using CRT-based representation, an integer can be uniquely represented by its residues modulo which pair of moduli?
computer arithmetic with large integers
Medium
A. and
B. and
C. and
D. and
Correct Answer: and
Explanation:
The moduli must be coprime with product . Since and , residues mod and mod uniquely represent any with .
Incorrect! Try again.
31What is the value of , useful for tracking least significant digits in large integer arithmetic?
computer arithmetic with large integers
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
, and , capturing the last three decimal digits of the power.
Incorrect! Try again.
32In the repeated squaring method to compute , the exponent is processed using its representation in which base?
computer arithmetic with large integers
Medium
A.Base
B.Decimal (base 10)
C.Hexadecimal (base 16)
D.Binary (base 2)
Correct Answer: Binary (base 2)
Explanation:
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.
Incorrect! Try again.
33Using Fermat's Little Theorem, compute .
Fermat's little theorem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
By Fermat, . Since , we get .
Incorrect! Try again.
34Fermat's Little Theorem states that if is prime and , then which congruence holds?
Fermat's little theorem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Fermat's Little Theorem asserts that for a prime and integer not divisible by , .
Incorrect! Try again.
35What is ?
Fermat's little theorem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Since is prime and , Fermat's Little Theorem gives .
Incorrect! Try again.
36Compute using Fermat's Little Theorem.
Fermat's little theorem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Since and , we get .
Incorrect! Try again.
37In a hashing function , at which slot is the key stored?
applications of congruences
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Compute : since and , the key hashes to slot .
Incorrect! Try again.
38A pseudorandom number generator uses with seed . What is ?
applications of congruences
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Compute .
Incorrect! Try again.
39The check digit of an ISBN-10 is chosen so that . This is a direct application of which concept?
applications of congruences
Medium
A.Continued fractions used to encode data
B.Congruences used to detect errors
C.Modular exponentiation used to sign messages
D.Prime factorization used to compress digits
Correct Answer: Congruences used to detect errors
Explanation:
The ISBN-10 check condition is a congruence modulo ; it is an error-detecting application of congruences that catches single-digit and transposition errors.
Incorrect! Try again.
40Today is Thursday. Using congruences modulo to model days of the week, what day will it be after days?
applications of congruences
Medium
A.Saturday
B.Sunday
C.Monday
D.Friday
Correct Answer: Sunday
Explanation:
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.
Incorrect! Try again.
41How many incongruent solutions does the congruence have?
linear congruences
Hard
A.0
B.1
C.3
D.6
Correct Answer: 6
Explanation:
Since and , solutions exist and there are exactly incongruent solutions modulo .
Incorrect! Try again.
42Find the unique solution modulo of .
linear congruences
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The inverse of mod is since . Thus .
Incorrect! Try again.
43For the congruence to be solvable, the constant must be:
linear congruences
Hard
A.coprime to
B.a multiple of
C.a multiple of
D.a multiple of
Correct Answer: a multiple of
Explanation:
A solution exists iff . Here , so must be a multiple of .
Incorrect! Try again.
44Find the smallest positive integer satisfying , , and .
The Chinese remainder theorem
Hard
A.58
B.17
C.23
D.52
Correct Answer: 23
Explanation:
By CRT the solution is unique mod . Testing shows , , , so .
Incorrect! Try again.
45Solve the system , , .
The Chinese remainder theorem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Combining and gives . Since , the answer is .
Incorrect! Try again.
46Which of the following systems has no solution?
The Chinese remainder theorem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Here but , so the system is inconsistent. The others satisfy the compatibility condition on their gcds.
Incorrect! Try again.
47Solve and .
The Chinese remainder theorem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Since and , a solution exists mod . Checking : and .
Incorrect! Try again.
48Compute .
Fermat's little theorem
Hard
A.4
B.1
C.2
D.5
Correct Answer: 4
Explanation:
By Fermat, . Since , we get .
Incorrect! Try again.
49Compute .
Fermat's little theorem
Hard
A.2
B.16
C.8
D.1
Correct Answer: 1
Explanation:
By Fermat, . Since , the exponent is , so .
Incorrect! Try again.
50Using Fermat's little theorem, the multiplicative inverse of modulo the prime equals:
Fermat's little theorem
Hard
A.8
B.9
C.5
D.3
Correct Answer: 8
Explanation:
The inverse is . Since , . Check: .
Incorrect! Try again.
51The value of (where ) is:
Fermat's little theorem
Hard
A.1
B.2
C.170
D.0
Correct Answer: 1
Explanation:
Since and , both divide to give . By CRT, — showing is a Fermat pseudoprime to base .
Incorrect! Try again.
52Which of the following is a Carmichael number?
applications of congruences
Hard
A.563
B.561
C.533
D.571
Correct Answer: 561
Explanation:
is squarefree and for each prime factor, so for all coprime to . It is the smallest Carmichael number.
Incorrect! Try again.
53How many incongruent solutions does have?
applications of congruences
Hard
A.1
B.8
C.2
D.4
Correct Answer: 4
Explanation:
Since , there are square roots of mod and mod . By CRT the total is : namely .
Incorrect! Try again.
54Compute .
Fermat's little theorem
Hard
A.3
B.9
C.7
D.5
Correct Answer: 5
Explanation:
By Fermat, . Since , .
Incorrect! Try again.
55Multiplying two -digit integers using the Karatsuba algorithm has time complexity:
computer arithmetic with large integers
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Karatsuba reduces one multiplication to three of half size, giving the recurrence , which solves to , beating the schoolbook .
Incorrect! Try again.
56Computing by fast modular exponentiation (repeated squaring) uses how many modular multiplications?
computer arithmetic with large integers
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Repeated squaring processes the bits of the exponent, performing at most two modular multiplications per bit, so the cost is multiplications.
Incorrect! Try again.
57How many -bit words are needed to store an unsigned -bit integer?
computer arithmetic with large integers
Hard
A.16
B.32
C.128
D.64
Correct Answer: 32
Explanation:
Each word holds bits, so words are required to store all bits of the integer.
Incorrect! Try again.
58The smallest positive solution of is:
linear congruences
Hard
A.3
B.2
C.9
D.4
Correct Answer: 4
Explanation:
Since , divide to get . The inverse of mod is , so ; the smallest positive solution is .
Incorrect! Try again.
59Using CRT with , the value of is:
The Chinese remainder theorem
Hard
A.64
B.12
C.23
D.1
Correct Answer: 64
Explanation:
(since ) and . Solving gives .
Incorrect! Try again.
60The Fermat primality test declares 'probably prime' to base but composite to base . What property explains why the base- test fails?
applications of congruences
Hard
A. is a perfect square, invalidating the test
B. is a Fermat pseudoprime to base since
C. is prime and the test is inconsistent
D. is coprime to but not to
Correct Answer: is a Fermat pseudoprime to base since
Explanation:
is composite, yet , making it a pseudoprime to base . A different base such as exposes its compositeness.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. 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.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →