

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Int Discrete Strctrs; Subject: Mathematics; University: University of Massachusetts - Amherst; Term: Spring 2009;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Government is, or ought to be, instituted for the common benefit, protection, and security, of the people, nation, or community.
For your convenience, this text is available in the notebook Set5#2.nb. You must first strip out all spaces and punctuation, convert all letters to upper-case, and encode into integers; then encrypt into integers and decode the result into ciphertext split into groups of 5 letters. You may use Mathematica for some or all of the work.
(a) Try to decrypt (into plaintext letters, eventually) the numerical form of the ciphertext. You should find that you cannot do so unambiguously. So determine at least four of the possibilities for the plaintext message that Alice sent. (Do not rely upon the meaning of the message—Alice could have sent nonsense words!)
(b) What is it about the key for this affine system that prevents you from unam- biguously decrypting the ciphtertext?
(b) Use Mathematica to construct the multiplication table for Z 7. Use as table entries actual integers 0, 1 , 2 ,... , 6 rather than their congruence classes. First define a function times7 of two arguments that implements multiplication modulo 7; for example, times7[2, 5] should have result 3. Then use Mathematica’s function Outer to construct the multiplication table. Format the result as a table! (For partial credit, do it without Mathematica.)