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.

Unit 3 MCQs GCD and Primality testing

CSE329 — Prelude To Competitive Coding 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Basic Euclidean algorithm Easy

    The Euclidean algorithm is primarily used to compute which of the following?

  2. Question 2 of 60 Basic Euclidean algorithm Easy

    In the Euclidean algorithm, is equal to which of the following?

  3. Question 3 of 60 Basic Euclidean algorithm Easy

    What is the terminating condition of the Euclidean algorithm using modulo?

  4. Question 4 of 60 Basic Euclidean algorithm Easy

    What is using the Euclidean algorithm?

  5. Question 5 of 60 Extended Euclidean algorithm Easy

    The Extended Euclidean algorithm finds integers and satisfying which equation?

  6. Question 6 of 60 Extended Euclidean algorithm Easy

    The Extended Euclidean algorithm is commonly used to compute which of the following?

  7. Question 7 of 60 Total number of divisors of a number Easy

    If , the total number of divisors of is given by which expression?

  8. Question 8 of 60 Total number of divisors of a number Easy

    How many divisors does the number have?

  9. Question 9 of 60 Finding all prime factors of a number Easy

    What are all the distinct prime factors of ?

  10. 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?

  11. 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:

  12. 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 ?

  13. Question 13 of 60 K-jagged numbers Easy

    A K-jagged number is a number whose all prime factors are:

  14. Question 14 of 60 Stormer numbers Easy

    A Störmer number is a positive integer for which the greatest prime factor of is:

  15. Question 15 of 60 Frugal number Easy

    A frugal number is a number that has:

  16. Question 16 of 60 P-smooth numbers in given ranges Easy

    A number is called -smooth if:

  17. Question 17 of 60 P-smooth numbers in given ranges Easy

    Which of the following numbers is -smooth?

  18. Question 18 of 60 Lemoine's Conjecture Easy

    Lemoine's Conjecture states that every odd integer greater than can be expressed as:

  19. 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:

  20. 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:

  21. 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 ?

  22. 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 ?

  23. Question 23 of 60 Extended Euclidean algorithm Medium

    The extended Euclidean algorithm finds integers such that . For and , which pair is a valid solution?

  24. 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:

  25. 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 ?

  26. Question 26 of 60 Total number of divisors of a number Medium

    A number has exactly positive divisors. What must be true about ?

  27. Question 27 of 60 Finding all prime factors of a number Medium

    What is the complete set of distinct prime factors of ?

  28. 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?

  29. 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:

  30. 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?

  31. 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?

  32. Question 32 of 60 K-jagged numbers Medium

    For , which property must every -jagged number greater than satisfy?

  33. 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?

  34. Question 34 of 60 Stormer numbers Medium

    To test whether is a Størmer number, which quantity must be computed and compared against ?

  35. 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?

  36. Question 36 of 60 Frugal number Medium

    When counting digits of a prime factorization for classifying a frugal number, an exponent of is:

  37. 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 )?

  38. Question 38 of 60 P-smooth numbers in given ranges Medium

    Which of the following numbers is -smooth?

  39. Question 39 of 60 Lemoine's Conjecture Medium

    Lemoine's Conjecture states that every odd integer greater than can be expressed as:

  40. Question 40 of 60 Problems based on GCD and primality testing Medium

    Two integers and satisfy and . What is the value of ?

  41. 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 ?

  42. 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.

  43. Question 43 of 60 Total number of divisors of a number Hard

    Let . How many divisors of are perfect squares?

  44. Question 44 of 60 Total number of divisors of a number Hard

    Let . How many divisors of are perfect squares?

  45. 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 ?

  46. 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?

  47. 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?

  48. Question 48 of 60 K-jagged numbers Hard

    How many -jagged numbers (numbers whose smallest prime factor is , including ) exist in the range ?

  49. 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?

  50. 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 .

  51. 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?

  52. 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).

  53. Question 53 of 60 P-smooth numbers in given ranges Hard

    How many -smooth numbers (numbers of the form ) exist in the range ?

  54. Question 54 of 60 P-smooth numbers in given ranges Hard

    Which of the following numbers is -smooth but NOT -smooth?

  55. 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 ?

  56. Question 56 of 60 Lemoine's Conjecture Hard

    For the odd number , how many distinct Lemoine representations (with prime, ordered pairs) exist?

  57. Question 57 of 60 Problems based on GCD and primality testing Hard

    Given and , if and and , what is ?

  58. 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 ?

  59. Question 59 of 60 Extended Euclidean algorithm Hard

    The modular inverse of modulo computed via the Extended Euclidean algorithm is:

  60. 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.