# Nyquist vs Shannon Capacity & RSA Public-Key Cryptography Numericals
Exam: UGC NET Computer Science & Applications (Code 87) (UGC NET CS)
Subject: Unit 9: Data Communication & Computer Networks
Canonical URL: https://gateandnet.com/exams/ugc-net-cs/net-computer-networks/channel-capacity-and-rsa-cryptography

> Noiseless vs noisy AWGN bit-rate limits, dB-to-linear SNR conversion, and Euler totient modular exponentiation in RSA.

## Worked RSA Numerical (Classic UGC NET & GATE Pattern)

Let $p = 3, \; q = 11$, public exponent $e = 7$, and message $M = 5$:
1. $n = 3 \times 11 = 33$
2. $\phi(n) = (3 - 1)(11 - 1) = 20$
3. Private key $d$: $7 \cdot d \equiv 1 \pmod{20} \implies 7 \times 3 = 21 \equiv 1 \pmod{20} \implies \mathbf{d = 3}$!
4. Encrypt $M = 5$: $C = 5^7 \bmod 33 = (5^3)^2 \cdot 5 \bmod 33 = (125 \bmod 33)^2 \cdot 5 \bmod 33 = (-7)^2 \cdot 5 \bmod 33 = 49 \cdot 5 \bmod 33 = 16 \cdot 5 \bmod 33 = 80 \bmod 33 = \mathbf{14}$.


## Solved Practice Questions & PYQs

### [UGC NET CS June 2024 | MCQ]
A noisy communication channel has bandwidth $B = 3\text{ kHz}$ and Signal-to-Noise Ratio of $30\text{ dB}$ (approximating $1 + 1000 \approx 1024 = 2^{10}$). According to **Shannon’s Theorem**, what is the maximum channel capacity?
**Correct Answer:** B
**Solution:** $30\text{ dB} = 10 \log_{10}(\text{SNR}) \implies \text{SNR} = 10^3 = 1000$. By Shannon’s formula, $C = B \log_2(1 + \text{SNR}) \approx 3000 \times \log_2(1024) = 3000 \times 10 = \mathbf{30\text{ kbps}}$.
