An affine cipher numbers the letters A = 0 through Z = 25 and encrypts with E(x)=(11x+6) mod 26E(x) = (11x + 6) \bmod 26E(x)=(11x+6)mod26. An intercepted message contains the ciphertext letter J, which is y=9y = 9y=9. Using the known key, find the plaintext number xxx. Give your answer as an exact integer from 0 to 25.
Unlock full course notes by signing up
Encrypting letters with an affine cipher
An affine cipher numbers the letters A = 0 through Z = 25 and encrypts with E(x)=(3x+5) mod 26E(x) = (3x + 5) \bmod 26E(x)=(3x+5)mod26. Complete the table for the plaintext letters D, K, W and Z: enter each letter's number xxx, the value of E(x)E(x)E(x) as an integer from 0 to 25, and the ciphertext letter.
Decrypting a shift cipher with wrap-around
A shift cipher encrypts with E(x)=(x+k) mod 26E(x) = (x + k) \bmod 26E(x)=(x+k)mod26, where A = 0, B = 1, …, Z = 25, and this message used the key k=19k = 19k=19. Decrypting by subtracting 19 is the same as encrypting again with a shift of ________. The ciphertext letter D has value 3, and 3−193 - 193−19 reduces modulo 26 to ________, so D decrypts to the plaintext letter ________. In the same way, the ciphertext letter W decrypts to the plaintext letter ________.
Counting affine cipher keys for two alphabets
An affine cipher encrypts with E(x)=(ax+b) mod nE(x) = (ax + b) \bmod nE(x)=(ax+b)modn, where aaa and bbb are whole numbers from 0 to n−1n - 1n−1. A key (a,b)(a, b)(a,b) is usable only if every message can be decrypted, which requires gcd(a,n)=1\gcd(a, n) = 1gcd(a,n)=1; any bbb is allowed.
One version uses the 26-letter alphabet, so n=26n = 26n=26. An extended version adds space, full stop and comma, giving 29 symbols, so n=29n = 29n=29. Give each answer as a whole number:
the number of valid multipliers aaa for n=26n = 26n=26