next up previous
Next: About this document ...

Problems of the day
1.
Write a Maple procedure OneTimePad which improves on the original OneTimePad by both encoding and decoding: if the key is positive, then OneTimePad encodes the message using that key. If the key is negative, then OneTimePad decodes the message using the (negative of) the key.
2.
Solve the following equations (find a solution x with $0 \leq x < 8$):
3.
Show that if a and p are positive integers with $\mathop{\rm gcd}(a,
p) =1$ then the equation $ax+b=y \mathop{\rm mod} p$ always has an integer solution xfor any choice of integers b and y.
4.
The following message was encoded using an affine code, the alphabet consisted of the upper case alphabet, followed by a space, followed by the lower case alphabet. Decode the message.

\begin{displaymath}\mbox{QZxpPBMopwZxLpXZLoYpmA BpRLApuBmmBLYpYlZZMY}\end{displaymath}



 

Duncan Sands
1998-12-09