To Do:
- Solutions to the last daily post (the one due today) are now posted: Solutions to Daily Due Aug 28. Check your work against them. All daily post solutions are also collected on the Archive page.
- Quick review question: What is the inverse of 7 mod 11? What is the inverse of 7 mod 14? (Watch for trick questions!)
- For each of the following n, compute the set (Z/nZ)∗ and therefore its cardinality φ(n): n=12, 15, 16, 26, 27, 30.
- Practice and reasoning with modular arithmetic with a cryptography flavour. If the affine cipher key (α,β) is ‘badly chosen’ (i.e. α may not be invertible), then bad things can happen. Find an example where two different plaintexts encrypt to the same ciphertext. (The plaintexts don’t need to be english, they can just be any letters.)
- Some abstract thinking about modular arithmetic. Prove (explain your reasoning) that:
- If you take successive powers of a mod n, i.e. a,a2,a3,a4,a5,⋯, that eventually you will get a repeat (the same residue will appear more than once, e.g. a2 might equal a7). (Hint: finiteness)
- If a is invertible, then some power of a is 1. (Hint: use the first part somehow.)
- Can you find an example residue a modulo n for some a and n where no power of a is ever 1? You might want to mess around with the various Sage tools on this site.
- Practice with modular arithmetic in the context of matrices, with a cryptography flavour.
- The Hill cipher (with 2×2 matrices) was used to encrypt the plaintext SOLVED to get the ciphertext GEZXDS. (Two letters were encrypted at a time.) Can you find the Hill cipher key?
- Consider Hill cipher with the matrix (1324) modulo 26. Can you find two plaintexts that encrypt to the same ciphertext? (The plaintexts don’t need to be english, they can just be any letters.) What’s wrong with this matrix (why isn’t encryption injective?)?
- If it sounds fun, learn a useful new algorithm! The Double-And-Add algorithm allows for fast exponentiation, among other things; it’s a sort of refinement of successive squaring.
- First, watch this video (6:09) which gives a general algorithm.
- Use the double-and-add algorithm of the video (by writing 148 in binary) to demonstrate an efficient way to compute 2148.
- Program it if you feel like it.
- Remember to upload to canvas!
Fall 2026 – Professor Katherine Stange