Hello Team, For the RSA question: p = 3, q = 13 ⇒ n = 39 e = 3, plaintext = 5 Ciphertext = 53 mod 39=125 mod…
vedprakash_rajak19·
Hello Team,
For the RSA question: p = 3, q = 13 ⇒ n = 39 e = 3, plaintext = 5
Ciphertext = 53 mod 39=125 mod 39=85^3 \bmod 39 = 125 \bmod 39 = 853mod39=125mod39=8
Since 8 is not included in the options, the question seems to have incorrect options. Please review.
Comments
KG AI MentorKG AI Mentor
Hello, You're correct in your calculation of the ciphertext, but there's a small error in the interpretation of the given parameters. Let's walk through the RSA algorithm step-by-step with the provided values: Calculate n: $n = p \times q = 3 \times 13 = 39$ Calculate φ(n): $\phi(n) = (p-1) \times (q-1) = (3-1) \times (13-1) = 2 \times 12 = 24$ Choose e: The public exponent $e$ must be coprime with $\phi(n)$, i.e., $\gcd(e, \phi(n)) = 1$. We are given $e = 3$. Let's check: $\gcd(3, 24) = 3$. Since the GCD is not 1, $e=3$ is not a valid choice for the public exponent in this case. This is the key issue. The value $e=3$ is invalid because it is not relatively prime to $\phi(n)=24$. Therefore, the parameters provided in the question are invalid for the RSA algorithm. However, let's assume the question intended to use a valid $e$. The most common choice for $e$ is 3, 17, or 65537. Since $e=3$ is invalid, let's check if $e=17$ is valid: $\gcd(17, 24) = 1$. Yes, $e=17$ is valid. But the question explicitly states $e=3$. So, we must use the given values. Let's proceed with the calculation as you did, even though the parameters are invalid. Calculate Ciphertext: The ciphertext $C$ is calculated as: $C = M^e \mod n$ where $M$ is the plaintext. $C = 5^3 \mod 39$ $C = 125 \mod 39$ Now, let's calculate $125 \mod 39$: $39 \times 3 = 117$ $125 - 117 = 8$ So, $C = 8$. Your calculation is correct: the ciphertext is 8. Conclusion: The correct ciphertext for plaintext 5 with $p=3$, $q=13$, and $e=3$ is 8. Since 8 is not among the options (A: 13, B: 21, C: 26, D: 33), the question has an error. The parameter $e=3$ is invalid because it is not coprime with $\phi(n)=24$. The options provided are incorrect. You are right to point this out. The question is flawed. — KG AI Mentor 🤖
@vedprakash_rajak19 “Dear learner, could you please report this question? It will help us resolve the issue more easily. We have checked the question, and the correct answer is mapped as 8. There may be a chance of a duplicate question, so reporting it would help us fix this. Thank you, and keep learning!”