Next: About this document ...
Problems of the day
- 1.
- Claim: if p is a prime number, then
for any integer a.
Use Maple to check this for the first ten prime numbers
- 2.
- The following message was encoded with an affine matrix cipher.
The vectors were of length 2. The alphabet was: upper case letters,
followed by a space, followed by the lower case letters. The message
starts: ``Why did''. Decode the message.
- 3.
- For n a positive integer, let
denote the number of
integers a with 0 < a < n for which
.
For example,
(a=1 and a=2 have
).
Write a Maple routine to calculate
.
Calculate
,
...,
.
- 4.
- The function
has the following properties: if p is a prime
then
;
if m and n are relatively prime (mand n positive integers) then
.
Use
these to check your implementation of the function
.
Duncan Sands
1998-11-12