Unit 3 MCQs GCD and Primality testing
CSE329 — Prelude To Competitive Coding 60 questions. Pick an option to check it.
0 of 60 answered 0 right 0 wrong , 60 left
Unit mastery 0% no weak questions yet
-
Question 1 of 60 Basic Euclidean algorithm Easy
The Euclidean algorithm is primarily used to compute which of the following?
-
Question 2 of 60 Basic Euclidean algorithm Easy
In the Euclidean algorithm, is equal to which of the following?
-
Question 3 of 60 Basic Euclidean algorithm Easy
What is the terminating condition of the Euclidean algorithm using modulo?
-
Question 4 of 60 Basic Euclidean algorithm Easy
What is using the Euclidean algorithm?
-
Question 5 of 60 Extended Euclidean algorithm Easy
The Extended Euclidean algorithm finds integers and satisfying which equation?
-
-
Question 6 of 60 Extended Euclidean algorithm Easy
The Extended Euclidean algorithm is commonly used to compute which of the following?
-
Question 7 of 60 Total number of divisors of a number Easy
If , the total number of divisors of is given by which expression?
-
Question 8 of 60 Total number of divisors of a number Easy
How many divisors does the number have?
-
Question 9 of 60 Finding all prime factors of a number Easy
What are all the distinct prime factors of ?
-
Question 10 of 60 Finding all prime factors of a number Easy
Which of the following is NOT considered a prime factor of any number?
-
Question 11 of 60 Finding the prime factors by taking the square root Easy
When trial-dividing to factorize , checking divisors only up to works because:
-
Question 12 of 60 Finding the prime factors by taking the square root Easy
What is the approximate time complexity of factorizing a number using trial division up to ?
-
Question 13 of 60 K-jagged numbers Easy
A K-jagged number is a number whose all prime factors are:
-
Question 14 of 60 Stormer numbers Easy
A Störmer number is a positive integer for which the greatest prime factor of is:
-
Question 15 of 60 Frugal number Easy
A frugal number is a number that has:
-
Question 16 of 60 P-smooth numbers in given ranges Easy
A number is called -smooth if:
-
Question 17 of 60 P-smooth numbers in given ranges Easy
Which of the following numbers is -smooth?
-
Question 18 of 60 Lemoine's Conjecture Easy
Lemoine's Conjecture states that every odd integer greater than can be expressed as:
-
Question 19 of 60 Problems based on GCD and primality testing Easy
Two integers are said to be coprime (relatively prime) if their GCD equals:
-
Question 20 of 60 Problems based on GCD and primality testing Easy
The relationship between GCD and LCM of two numbers and is given by:
-
Question 21 of 60 Basic Euclidean algorithm Medium
Using the Euclidean algorithm to compute , how many division (modulo) steps are performed before reaching a remainder of ?
-
Question 22 of 60 Basic Euclidean algorithm Medium
For two consecutive Fibonacci numbers and , the Euclidean algorithm is known to require the maximum number of steps relative to input size. What is ?
-
Question 23 of 60 Extended Euclidean algorithm Medium
The extended Euclidean algorithm finds integers such that . For and , which pair is a valid solution?
-
Question 24 of 60 Extended Euclidean algorithm Medium
The extended Euclidean algorithm is commonly used to compute the modular multiplicative inverse of modulo . This inverse exists if and only if:
-
Question 25 of 60 Total number of divisors of a number Medium
Given the prime factorization , what is the total number of positive divisors of ?
-
Question 26 of 60 Total number of divisors of a number Medium
A number has exactly positive divisors. What must be true about ?
-
Question 27 of 60 Finding all prime factors of a number Medium
What is the complete set of distinct prime factors of ?
-
Question 28 of 60 Finding all prime factors of a number Medium
When factoring by trial division, after dividing out all factors of a prime , why do we move to the next candidate rather than testing again?
-
Question 29 of 60 Finding the prime factors by taking the square root Medium
When finding prime factors of by trial division, it suffices to test divisors only up to because:
-
Question 30 of 60 Finding the prime factors by taking the square root Medium
Using the square-root method to factor , up to which integer do we test trial divisors, and what is the conclusion?
-
Question 31 of 60 K-jagged numbers Medium
A 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?
-
Question 32 of 60 K-jagged numbers Medium
For , which property must every -jagged number greater than satisfy?
-
Question 33 of 60 Stormer numbers Medium
A 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?
-
Question 34 of 60 Stormer numbers Medium
To test whether is a Størmer number, which quantity must be computed and compared against ?
-
Question 35 of 60 Frugal number Medium
A 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?
-
Question 36 of 60 Frugal number Medium
When counting digits of a prime factorization for classifying a frugal number, an exponent of is:
-
Question 37 of 60 P-smooth numbers in given ranges Medium
A number is -smooth if all its prime factors are . How many -smooth numbers exist in the range (counting )?
-
Question 38 of 60 P-smooth numbers in given ranges Medium
Which of the following numbers is -smooth?
-
Question 39 of 60 Lemoine's Conjecture Medium
Lemoine's Conjecture states that every odd integer greater than can be expressed as:
-
Question 40 of 60 Problems based on GCD and primality testing Medium
Two integers and satisfy and . What is the value of ?
-
Question 41 of 60 Basic Euclidean algorithm Hard
For 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 ?
-
Question 42 of 60 Extended Euclidean algorithm Hard
Using the Extended Euclidean algorithm, find integers satisfying with the coefficients returned by the standard recursive implementation.
-
Question 43 of 60 Total number of divisors of a number Hard
Let . How many divisors of are perfect squares?
-
Question 44 of 60 Total number of divisors of a number Hard
Let . How many divisors of are perfect squares?
-
Question 45 of 60 Finding all prime factors of a number Hard
When performing trial division to factor , why is it sufficient to check divisors only up to ?
-
Question 46 of 60 Finding the prime factors by taking the square root Hard
Consider factoring (a prime) by trial division up to . Approximately how many trial divisions by candidate integers are performed in the naive (all-integers) approach?
-
Question 47 of 60 K-jagged numbers Hard
A 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?
-
Question 48 of 60 K-jagged numbers Hard
How many -jagged numbers (numbers whose smallest prime factor is , including ) exist in the range ?
-
Question 49 of 60 Stormer numbers Hard
A 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?
-
Question 50 of 60 Stormer numbers Hard
For , evaluate whether it is a Størmer number by computing the greatest prime factor of and comparing with .
-
Question 51 of 60 Frugal number Hard
A 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?
-
Question 52 of 60 Frugal number Hard
For , determine whether it is frugal by comparing the digit count of against the digit count of its prime factorization (exponents included).
-
Question 53 of 60 P-smooth numbers in given ranges Hard
How many -smooth numbers (numbers of the form ) exist in the range ?
-
Question 54 of 60 P-smooth numbers in given ranges Hard
Which of the following numbers is -smooth but NOT -smooth?
-
Question 55 of 60 Lemoine's Conjecture Hard
Lemoine'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 ?
-
Question 56 of 60 Lemoine's Conjecture Hard
For the odd number , how many distinct Lemoine representations (with prime, ordered pairs) exist?
-
Question 57 of 60 Problems based on GCD and primality testing Hard
Given and , if and and , what is ?
-
Question 58 of 60 Problems based on GCD and primality testing Hard
For 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 ?
-
Question 59 of 60 Extended Euclidean algorithm Hard
The modular inverse of modulo computed via the Extended Euclidean algorithm is:
-
Question 60 of 60 Total number of divisors of a number Hard
If denotes the number of divisors of , and for distinct primes , for which condition is odd?
That's unit 3
Answer a few questions and your score shows up here.
Nearly through. Did unit 3 of CSE329 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 3 of CSE329 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.
Nothing here is ever locked, and nothing unlocks.