Unit 6: Number Theory and Its Application in Cryptography - Practice Quiz

MTH401 — Discrete Mathematics 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the remainder when is divided by ?

Divisibility and modular arithmetic Easy
A.
B.
C.
D.

2 Which congruence is true?

Divisibility and modular arithmetic Easy
A.
B.
C.
D.

3 Which statement correctly defines a prime number?

Primes Easy
A. It has exactly two positive divisors.
B. It has no positive divisors.
C. It has exactly three positive divisors.
D. It has exactly one positive divisor.

4 Which of the following numbers is prime?

Primes Easy
A.
B.
C.
D.

5 What is ?

Greatest common divisors and least common multiples Easy
A.
B.
C.
D.

6 What is ?

Greatest common divisors and least common multiples Easy
A.
B.
C.
D.

7 Which equation is the correct first step of the Euclidean algorithm for finding ?

Euclidean algorithm Easy
A.
B.
C.
D.

8 Using the Euclidean algorithm, what is ?

Euclidean algorithm Easy
A.
B.
C.
D.

9 Which equation expresses as a linear combination of and ?

Bezout's lemma Easy
A.
B.
C.
D.

10 If , what does Bezout's lemma guarantee?

Bezout's lemma Easy
A. There are positives such that .
B. There are integers such that .
C. There are primes such that .
D. There are integers such that .

11 Which value of solves ?

Linear congruence Easy
A.
B.
C.
D.

12 Which pair gives all solutions in to ?

Linear congruence Easy
A.
B.
C.
D.

13 What is the multiplicative inverse of modulo ?

Inverse of a modulo m Easy
A.
B.
C.
D.

14 When does an integer have a multiplicative inverse modulo ?

Inverse of a modulo m Easy
A. When
B. When divides
C. When
D. When

15 Which number satisfies both and ?

Chinese remainder theorem Easy
A.
B.
C.
D.

16 If and are coprime, what does the Chinese remainder theorem say about the system and ?

Chinese remainder theorem Easy
A. It has no solution unless .
B. It has a unique solution modulo .
C. It has a unique solution modulo .
D. It has exactly two solutions modulo .

17 Using a Caesar cipher with a shift of , what is the decryption of KHOOR?

Encryption and decryption by Caesar cipher and affine transformation Easy
A. KHOOR
B. NKRRU
C. HELLO
D. IFMMP

18 In an affine cipher, letters are numbered . Using , which letter encrypts B?

Encryption and decryption by Caesar cipher and affine transformation Easy
A. I
B. M
C. N
D. P

19 If is prime and does not divide , which congruence is given by Fermat's little theorem?

Fermat's little theorem Easy
A.
B.
C.
D.

20 Using Fermat's little theorem, what is ?

Fermat's little theorem Easy
A.
B.
C.
D.

21 What is the remainder when is divided by ?

Divisibility and modular arithmetic Medium
A.
B.
C.
D.

22 Find the least nonnegative residue of modulo .

Divisibility and modular arithmetic Medium
A.
B.
C.
D.

23 Given the prime factorization , how many positive divisors does have?

Primes Medium
A.
B.
C.
D.

24 Which of the following numbers is prime?

Primes Medium
A.
B.
C.
D.

25 What is ?

Greatest common divisors and least common multiples Medium
A.
B.
C.
D.

26 Use the Euclidean algorithm to determine .

Euclidean algorithm Medium
A.
B.
C.
D.

27 Which pair satisfies the Bezout identity ?

Bezout's lemma Medium
A.
B.
C.
D.

28 What is the smallest positive integer that can be written as for some integers and ?

Bezout's lemma Medium
A.
B.
C.
D.

29 Which set contains all incongruent solutions modulo of ?

Linear congruence Medium
A.
B.
C.
D.

30 Which set contains all incongruent solutions modulo of ?

Linear congruence Medium
A.
B.
C.
D.

31 What is the multiplicative inverse of modulo ?

Inverse of a modulo m Medium
A.
B.
C.
D.

32 Which integer has a multiplicative inverse modulo ?

Inverse of a modulo m Medium
A.
B.
C.
D.

33 Find the least positive solution of the system , , and .

Chinese remainder theorem Medium
A.
B.
C.
D.

34 Find the least nonnegative solution of and .

Chinese remainder theorem Medium
A.
B.
C.
D.

35 Using a Caesar cipher with encryption rule and the mapping , what is the ciphertext of MATH?

Encryption and decryption by Caesar cipher and affine transformation Medium
A. QEXL
B. RFZN
C. RFYM
D. SGZN

36 A message was encrypted using a Caesar shift of . What plaintext corresponds to the ciphertext KHOOR?

Encryption and decryption by Caesar cipher and affine transformation Medium
A. JGNNQ
B. KELLO
C. HELLO
D. IFMMP

37 Using the affine cipher with , what is the encryption of CRYPTO?

Encryption and decryption by Caesar cipher and affine transformation Medium
A. RQXEYZ
B. SPZFYA
C. SPYFZA
D. TQYGAB

38 An affine cipher uses with . Which plaintext letter encrypts to Z?

Encryption and decryption by Caesar cipher and affine transformation Medium
A. R
B. T
C. Q
D. S

39 Using Fermat's little theorem, find the least nonnegative residue of modulo .

Fermat's little theorem Medium
A.
B.
C.
D.

40 What is the remainder when is divided by ?

Fermat's little theorem Medium
A.
B.
C.
D.

41 What is the remainder when is divided by ?

Divisibility and modular arithmetic Hard
A.
B.
C.
D.

42 Determine all integers for which divides .

Divisibility and modular arithmetic Hard
A.
B.
C.
D.

43 A prime satisfies . Which value must have?

Primes Hard
A.
B.
C.
D.

44 What is the greatest positive integer such that for every prime ?

Primes Hard
A.
B.
C.
D.

45 How many pairs of positive integers with satisfy and ?

Greatest common divisors and least common multiples Hard
A.
B.
C.
D.

46 Evaluate .

Greatest common divisors and least common multiples Hard
A.
B.
C.
D.

47 When the Euclidean algorithm is applied to and , what is the complete sequence of quotients, including the final exact division?

Euclidean algorithm Hard
A.
B.
C.
D.

48 Suppose the Euclidean algorithm for positive integers has quotient sequence , where the last quotient corresponds to an exact division, and the last nonzero remainder is . What is ?

Euclidean algorithm Hard
A.
B.
C.
D.

49 Which family gives all integer solutions of ?

Bezout's lemma Hard
A.
B.
C.
D.

50 Among all integer pairs satisfying , which pair minimizes ?

Bezout's lemma Hard
A.
B.
C.
D.

51 What is the complete set of incongruent solutions modulo to ?

Linear congruence Hard
A.
B.
C.
D.

52 For which condition on the integer does have exactly six incongruent solutions modulo ?

Linear congruence Hard
A.
B.
C.
D.

53 What is the multiplicative inverse of modulo ?

Inverse of a modulo m Hard
A.
B.
C.
D.

54 Find the multiplicative inverse of modulo .

Inverse of a modulo m Hard
A.
B.
C.
D.

55 Find the complete solution to the non-coprime system and .

Chinese remainder theorem Hard
A.
B.
C.
D.

56 What is the least nonnegative solution of the system , , and ?

Chinese remainder theorem Hard
A.
B.
C.
D.

57 Using , a Caesar cipher encrypts by . What plaintext corresponds to the ciphertext XLEP?

Encryption and decryption by Caesar cipher and affine transformation Hard
A. LATE
B. MATH
C. NAME
D. MATE

58 An affine cipher uses . If plaintext C encrypts to L and plaintext H encrypts to U, what does plaintext M encrypt to?

Encryption and decryption by Caesar cipher and affine transformation Hard
A. D
B. F
C. P
D. J

59 What is the remainder when is divided by ?

Fermat's little theorem Hard
A.
B.
C.
D.

60 What is the remainder modulo of ?

Fermat's little theorem Hard
A.
B.
C.
D.