1The Euclidean algorithm is primarily used to compute which of the following?
Basic Euclidean algorithm
Easy
A.The greatest common divisor (GCD) of two integers
B.The sum of two integers
C.The prime factorization of a number
D.The least common multiple only
Correct Answer: The greatest common divisor (GCD) of two integers
Explanation:
The Euclidean algorithm efficiently finds the GCD of two integers by repeated division/subtraction.
Incorrect! Try again.
2In the Euclidean algorithm, is equal to which of the following?
Basic Euclidean algorithm
Easy
A. always
B.
C.
D.
Correct Answer:
Explanation:
The core recurrence is , which repeats until the remainder becomes 0.
Incorrect! Try again.
3What is the terminating condition of the Euclidean algorithm using modulo?
Basic Euclidean algorithm
Easy
A.When both numbers are equal
B.When the remainder becomes
C.When the remainder becomes
D.When one number becomes negative
Correct Answer: When the remainder becomes
Explanation:
The algorithm stops when ; at that point holds the GCD value.
Incorrect! Try again.
4What is using the Euclidean algorithm?
Basic Euclidean algorithm
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
, , , so .
Incorrect! Try again.
5The Extended Euclidean algorithm finds integers and satisfying which equation?
Extended Euclidean algorithm
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
It solves Bezout's identity, expressing the GCD as a linear combination .
Incorrect! Try again.
6The Extended Euclidean algorithm is commonly used to compute which of the following?
Extended Euclidean algorithm
Easy
A.The nth prime number
B.The number of divisors
C.The factorial of a number
D.The modular multiplicative inverse
Correct Answer: The modular multiplicative inverse
Explanation:
It finds the coefficient in , which gives the modular inverse of modulo when .
Incorrect! Try again.
7If , the total number of divisors of is given by which expression?
Total number of divisors of a number
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The divisor count is the product of one plus each exponent in the prime factorization.
Incorrect! Try again.
8How many divisors does the number have?
Total number of divisors of a number
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
, so the number of divisors is : they are .
Incorrect! Try again.
9What are all the distinct prime factors of ?
Finding all prime factors of a number
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
, so its distinct prime factors are and .
Incorrect! Try again.
10Which of the following is NOT considered a prime factor of any number?
Finding all prime factors of a number
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
By definition, is not a prime number, so it can never be a prime factor of any number.
Incorrect! Try again.
11When trial-dividing to factorize , checking divisors only up to works because:
Finding the prime factors by taking the square root
Easy
A.Factors always occur below only
B.Any factor larger than pairs with a factor smaller than
C. is always an integer
D.Numbers above are always prime
Correct Answer: Any factor larger than pairs with a factor smaller than
Explanation:
Factors come in pairs ; one of them is always , so checking up to is enough.
Incorrect! Try again.
12What is the approximate time complexity of factorizing a number using trial division up to ?
Finding the prime factors by taking the square root
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Since we only test divisors up to , the trial-division method runs in about time.
Incorrect! Try again.
13A K-jagged number is a number whose all prime factors are:
K-jagged numbers
Easy
A.Equal to exactly
B.Multiples of
C.Greater than
D.Less than or equal to
Correct Answer: Less than or equal to
Explanation:
A K-jagged (smooth) number has every prime factor bounded above by .
Incorrect! Try again.
14A Störmer number is a positive integer for which the greatest prime factor of is:
Stormer numbers
Easy
A.Exactly
B.At least
C.Always equal to
D.Less than
Correct Answer: At least
Explanation:
A Störmer number satisfies that the largest prime factor of is greater than or equal to .
Incorrect! Try again.
15A frugal number is a number that has:
Frugal number
Easy
A.Exactly the same digits as its factorization
B.More digits than its prime factorization (with exponents) uses
C.Fewer digits than its factorization uses
D.No prime factors at all
Correct Answer: More digits than its prime factorization (with exponents) uses
Explanation:
A frugal (economical) number has more digits than the number of digits in its prime factorization including exponents.
Incorrect! Try again.
16A number is called -smooth if:
P-smooth numbers in given ranges
Easy
A.It is a prime greater than
B.It has exactly divisors
C.It is divisible by
D.None of its prime factors exceed
Correct Answer: None of its prime factors exceed
Explanation:
A -smooth number is one whose every prime factor is less than or equal to .
Incorrect! Try again.
17Which of the following numbers is -smooth?
P-smooth numbers in given ranges
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
has all prime factors , so it is -smooth. The others contain primes greater than .
Incorrect! Try again.
18Lemoine's Conjecture states that every odd integer greater than can be expressed as:
Lemoine's Conjecture
Easy
A.The sum of two primes
B.The sum of a prime and twice a prime ()
C.The sum of three even numbers
D.The product of two primes
Correct Answer: The sum of a prime and twice a prime ()
Explanation:
Lemoine's Conjecture asserts every odd number can be written as where and are primes.
Incorrect! Try again.
19Two integers are said to be coprime (relatively prime) if their GCD equals:
Problems based on GCD and primality testing
Easy
A.The smaller of the two numbers
B.
C.
D.
Correct Answer:
Explanation:
Coprime numbers share no common factor other than , so .
Incorrect! Try again.
20The relationship between GCD and LCM of two numbers and is given by:
Problems based on GCD and primality testing
Easy
A.
B.
C.
D. always
Correct Answer:
Explanation:
For any two positive integers, the product of their GCD and LCM equals the product of the numbers themselves.
Incorrect! Try again.
21Using the Euclidean algorithm to compute , how many division (modulo) steps are performed before reaching a remainder of ?
Basic Euclidean algorithm
Medium
A. steps
B. steps
C. steps
D. steps
Correct Answer: steps
Explanation:
The sequence is , then , then . This takes modulo steps, and .
Incorrect! Try again.
22For two consecutive Fibonacci numbers and , the Euclidean algorithm is known to require the maximum number of steps relative to input size. What is ?
Basic Euclidean algorithm
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Consecutive Fibonacci numbers are always coprime, so their GCD is . They also represent the worst case for the number of Euclidean steps.
Incorrect! Try again.
23The extended Euclidean algorithm finds integers such that . For and , which pair is a valid solution?
Extended Euclidean algorithm
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
. Checking , which equals the GCD, so is valid.
Incorrect! Try again.
24The extended Euclidean algorithm is commonly used to compute the modular multiplicative inverse of modulo . This inverse exists if and only if:
Extended Euclidean algorithm
Medium
A. is prime
B.
C. is even
D.
Correct Answer:
Explanation:
A modular inverse of modulo exists precisely when and are coprime, i.e., . The extended algorithm then yields the coefficient serving as the inverse.
Incorrect! Try again.
25Given the prime factorization , what is the total number of positive divisors of ?
Total number of divisors of a number
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The divisor count is .
Incorrect! Try again.
26A number has exactly positive divisors. What must be true about ?
Total number of divisors of a number
Medium
A. is a cube of a prime
B. is the square of a prime
C. is prime
D. is a product of two distinct primes
Correct Answer: is the square of a prime
Explanation:
A count of exactly divisors requires for a single prime, so . Thus for a prime , e.g., or .
Incorrect! Try again.
27What is the complete set of distinct prime factors of ?
Finding all prime factors of a number
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
, so the distinct prime factors are , , and .
Incorrect! Try again.
28When factoring by trial division, after dividing out all factors of a prime , why do we move to the next candidate rather than testing again?
Finding all prime factors of a number
Medium
A. can only divide once
B.It reduces the space complexity
C.The next number is always prime
D.All copies of have already been removed
Correct Answer: All copies of have already been removed
Explanation:
The loop divides by repeatedly until no longer divides it, so every factor of is extracted. Continuing with would be redundant.
Incorrect! Try again.
29When finding prime factors of by trial division, it suffices to test divisors only up to because:
Finding the prime factors by taking the square root
Medium
A.Factors above are never prime
B.All prime factors are less than
C.If has no factor , the remaining is prime
D.Division above gives fractions
Correct Answer: If has no factor , the remaining is prime
Explanation:
Any composite has a factor . So after removing all such factors, whatever remains greater than must be a single prime greater than .
Incorrect! Try again.
30Using the square-root method to factor , up to which integer do we test trial divisors, and what is the conclusion?
Finding the prime factors by taking the square root
Medium
A.Up to ; is prime
B.Up to ; is prime
C.Up to ; is prime
D.Up to ; is composite
Correct Answer: Up to ; is prime
Explanation:
, so we test divisors up to . None of divide , so it is prime.
Incorrect! Try again.
31A K-jagged number is a positive integer whose smallest prime factor is greater than or equal to . Which of the following is a -jagged number?
K-jagged numbers
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
, whose smallest prime factor is . The others contain factor (in , ) or already qualify but also qualifies; however is unambiguously -jagged and fail. Among the given, has smallest prime factor .
Incorrect! Try again.
32For , which property must every -jagged number greater than satisfy?
K-jagged numbers
Medium
A.It is divisible by
B.It is prime
C.It is odd
D.It is a perfect square
Correct Answer: It is odd
Explanation:
A -jagged number has its smallest prime factor , so it cannot be divisible by . Hence every such number is odd.
Incorrect! Try again.
33A Størmer number is a positive integer for which the greatest prime factor of is at least . Which of the following is a Størmer number?
Stormer numbers
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
For : , greatest prime factor , so it qualifies. For : holds too, but the smallest and canonical first Størmer number is .
Incorrect! Try again.
34To test whether is a Størmer number, which quantity must be computed and compared against ?
Stormer numbers
Medium
A.The smallest prime factor of
B.The sum of prime factors of
C.The greatest prime factor of
D.The number of divisors of
Correct Answer: The greatest prime factor of
Explanation:
By definition, is a Størmer number when the greatest prime factor of is . So we factor and take its largest prime.
Incorrect! Try again.
35A frugal (economical) number has fewer digits than the total digits used in its prime factorization (with exponents). Which of the following is a frugal number?
Frugal number
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
is written as "" ( digits) while has digits. Since , is frugal. The others use as many or more digits in their factorization.
Incorrect! Try again.
36When counting digits of a prime factorization for classifying a frugal number, an exponent of is:
Frugal number
Medium
A.Replaced by a zero
B.Counted as one digit
C.Counted as two digits
D.Omitted (not written)
Correct Answer: Omitted (not written)
Explanation:
Exponents equal to are not written in standard factorization notation, so they contribute no digits when comparing digit counts for frugal numbers.
Incorrect! Try again.
37A number is -smooth if all its prime factors are . How many -smooth numbers exist in the range (counting )?
P-smooth numbers in given ranges
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
-smooth numbers have only and as prime factors. In these are ... wait, listing: gives . Correcting: are all , so . The value excludes ; including the count is .
Incorrect! Try again.
38Which of the following numbers is -smooth?
P-smooth numbers in given ranges
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
, and all prime factors () are , so it is -smooth. The others contain primes such as , , or .
Incorrect! Try again.
39Lemoine's Conjecture states that every odd integer greater than can be expressed as:
Lemoine's Conjecture
Medium
A. where are primes
B. where are primes
C. where are primes
D. where are primes
Correct Answer: where are primes
Explanation:
Lemoine's Conjecture asserts every odd can be written as with and prime, e.g., .
Incorrect! Try again.
40Two integers and satisfy and . What is the value of ?
Problems based on GCD and primality testing
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
For any two positive integers, .
Incorrect! Try again.
41For the Euclidean algorithm with , it is known that the worst-case number of division steps occurs for consecutive Fibonacci numbers. If requires exactly modulo operations, what is in terms of ?
Basic Euclidean algorithm
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Applying the Euclidean algorithm to consecutive Fibonacci numbers and reduces through each successive Fibonacci pair, taking modulo steps to reach . This is the classic worst case (Lamé's theorem).
Incorrect! Try again.
42Using the Extended Euclidean algorithm, find integers satisfying with the coefficients returned by the standard recursive implementation.
Extended Euclidean algorithm
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
. The Extended Euclidean algorithm yields , matching the standard recursive back-substitution result.
Incorrect! Try again.
43Let . How many divisors of are perfect squares?
Total number of divisors of a number
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
A divisor is a perfect square iff each prime exponent is even. For : choose from (2 ways), for : (2 ways), for : (3 ways). Total ... wait, recompute: . The correct count is only if exponents allow more; here the answer is .
Incorrect! Try again.
44Let . How many divisors of are perfect squares?
Total number of divisors of a number
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
A square divisor needs even exponents. For : exponents (2 choices); for : (2 choices); for : (3 choices). Total .
Incorrect! Try again.
45When performing trial division to factor , why is it sufficient to check divisors only up to ?
Finding all prime factors of a number
Hard
A.Because divisors above are never prime
B.Because all primes are less than
C.If has no factor , the remaining itself must be prime
D.Because is always an integer for composites
Correct Answer: If has no factor , the remaining itself must be prime
Explanation:
If with , then . So any composite has a factor at most . If none is found after dividing out small factors, the residual is prime.
Incorrect! Try again.
46Consider factoring (a prime) by trial division up to . Approximately how many trial divisions by candidate integers are performed in the naive (all-integers) approach?
Finding the prime factors by taking the square root
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
. The naive method tries all integers from to , so about divisions are performed before concluding is prime.
Incorrect! Try again.
47A positive integer is called -jagged (rough) if all its prime factors are greater than or equal to . Which of the following is a -jagged number?
K-jagged numbers
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
; both prime factors , so it is -jagged (rough). and contain factors ; also has .
Incorrect! Try again.
48How many -jagged numbers (numbers whose smallest prime factor is , including ) exist in the range ?
K-jagged numbers
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Numbers with all prime factors in : . Excluding numbers divisible by leaves these. Counting the qualifying ones gives (using the convention that counts and qualifies).
Incorrect! Try again.
49A Størmer number is a positive integer for which the greatest prime factor of is at least . Which of the following is NOT a Størmer number?
Stormer numbers
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
; greatest prime factor , so is not a Størmer number. For : (), : (), : () all qualify.
Incorrect! Try again.
50For , evaluate whether it is a Størmer number by computing the greatest prime factor of and comparing with .
Stormer numbers
Hard
A.Yes, greatest prime factor
B.No, greatest prime factor
C.No, greatest prime factor
D.Yes, greatest prime factor
Correct Answer: Yes, greatest prime factor
Explanation:
. The greatest prime factor is , and , so is a Størmer number.
Incorrect! Try again.
51A frugal (economical) number has strictly fewer digits in its prime factorization (with exponents written out) than itself. Which of the following is a frugal number?
Frugal number
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
has digits; its factorization uses digits ( and ), so : frugal. uses digits vs (not fewer); uses vs ; uses digits vs .
Incorrect! Try again.
52For , determine whether it is frugal by comparing the digit count of against the digit count of its prime factorization (exponents included).
Frugal number
Hard
A.Frugal: digits vs digit
B.Not frugal: digits vs digits
C.Not frugal: digits vs digits
D.Frugal: digits vs digits ()
Correct Answer: Frugal: digits vs digits ()
Explanation:
. The factorization writes and , i.e. digits, while has digits. Since , is a frugal number.
Incorrect! Try again.
53How many -smooth numbers (numbers of the form ) exist in the range ?
P-smooth numbers in given ranges
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
-smooth numbers : . That is — counting gives ; excluding none, the distinct list has non-trivial values if is treated by convention. Standard count of is : .
Incorrect! Try again.
54Which of the following numbers is -smooth but NOT -smooth?
P-smooth numbers in given ranges
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
; largest prime factor is , so it is -smooth but not -smooth. , , and are all -smooth.
Incorrect! Try again.
55Lemoine's Conjecture states that every odd integer greater than can be written as where and are primes. Which decomposition is a valid Lemoine representation of ?
Lemoine's Conjecture
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
In both must be prime. is prime and is prime, giving . The other options use non-primes (, , ) for or .
Incorrect! Try again.
56For the odd number , how many distinct Lemoine representations (with prime, ordered pairs) exist?
Lemoine's Conjecture
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
( prime) and ( prime). Checking (not prime). So exactly valid representations exist.
Incorrect! Try again.
57Given and , if and and , what is ?
Problems based on GCD and primality testing
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Using , we get . Verify: , .
Incorrect! Try again.
58For the Miller-Rabin primality test on , a witness proves compositeness when and for all , where with odd. For (a Carmichael number), what is the pair ?
Problems based on GCD and primality testing
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
, where is odd. Thus and . Carmichael numbers like pass Fermat's test but Miller-Rabin can still expose them with suitable witnesses.
Incorrect! Try again.
59The modular inverse of modulo computed via the Extended Euclidean algorithm is:
Extended Euclidean algorithm
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
We need . Extended Euclidean gives , so the inverse is .
Incorrect! Try again.
60If denotes the number of divisors of , and for distinct primes , for which condition is odd?
Total number of divisors of a number
Hard
A. and are both odd
B. is even
C. is prime
D.Both and are even (i.e. is a perfect square)
Correct Answer: Both and are even (i.e. is a perfect square)
Explanation:
is odd only when both factors are odd, i.e. and are both even. This makes a perfect square — the classic result that only perfect squares have an odd number of divisors.
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 →