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.
- 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
,
...,
.
- 3.
- The function
has the following properties: if p is prime
then
;
if m and n are relatively prime (mand n positive integers) then
.
Use
these to check your implementation of the function
.
- 4.
- Maple has the Euler phi function built in: it is called ``phi'' and
is in the numtheory library. About how long does it take Maple to
find phi of an integer with about 30 digits?
Duncan Sands
1998-10-30