What this quiz covers
This quiz focuses on Modular Exponentiation, giving you a quick way to practice the rules, question types, and explanations that matter most for Discrete Math.
In RSA decryption, to compute cdmodn where d=157 and n=323=17×19, a student decides to use Euler's theorem to reduce the exponent first. What is the reduced exponent that should be used?
Discrete Math Quiz
Practice Modular Exponentiation in Discrete Math with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.
This quiz focuses on Modular Exponentiation, giving you a quick way to practice the rules, question types, and explanations that matter most for Discrete Math.
Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.
In RSA decryption, to compute cdmodn where d=157 and n=323=17×19, a student decides to use Euler's theorem to reduce the exponent first. What is the reduced exponent that should be used?
To optimize the computation of a65537modn (a common RSA public exponent), a programmer notes that 65537=216+1. This means the binary representation has exactly two 1-bits. What is the minimum number of modular multiplications required using this insight?
A cryptographic protocol requires computing gabmodp where a and b are secret values, g is a generator, and p is a large prime. Two approaches are suggested: (1) Compute gamodp, then raise this result to the power b; (2) Compute gabmod(p−1)modp directly. Under what condition are these approaches equivalent?
In a Diffie-Hellman key exchange with prime p=23 and generator g=5, Alice chooses secret a=8 and must compute gamodp=58mod23. Using repeated squaring, what intermediate values will Alice compute?
A student computing 11123mod35 decides to use the Chinese Remainder Theorem since 35=5×7. They correctly find 11123≡1(mod5) and 11123≡4(mod7). To combine these using CRT, what equation must they solve?
To compute 31000mod7 efficiently, a student uses the fact that 36≡1(mod7) by Fermat's Little Theorem. However, the student makes an error and computes 1000mod7=6, concluding that 31000≡36≡1(mod7). What is the correct answer and what was the student's error?
For the computation 32100mod101, a student wants to use Fermat's Little Theorem since 101 is prime. They need to reduce the exponent 2100 modulo 100. However, 2100 is astronomically large. What is the most efficient approach to find 2100mod100?
In RSA encryption with modulus n=77=7×11, the public exponent is e=13. To decrypt a message, David needs to compute d≡e−1(modϕ(77)). Using the extended Euclidean algorithm, he finds that 13×37+60×(−8)=1. What is the correct private exponent d?
To compute 3100mod7 efficiently, Alice uses repeated squaring. She observes that 34≡4(mod7). Using this observation and the binary representation 100=64+32+4, what is the value of 3100mod7?
Irene wants to compute 21000mod1001 efficiently. She discovers that 1001=7×11×13 and uses the Chinese Remainder Theorem. If she finds 21000≡1(mod7), 21000≡1(mod11), and 21000≡1(mod13), but then realizes she made an error in one calculation, which of these is most likely incorrect?