I have been given a problem that is to find the phi of a three
or four figure number. How do I do this? Also, are there any
patterns in the phi function?
Irfan
This thread originally arose because this problem was set as a GCSE coursework. If you are reading this because you are doing a coursework, please remember that you are required to declare any help you have got outside the classroom. This does not necessarily affect your mark, particularly as we try not to give more than hints. However you may decide not to read any more if you think you can get further without any help.
Irfan,
phi(x) is defined to be the number of positive numbers less than
x which are coprime to x.
So the silly way to calculate phi is to just do exactly that...
go through all the numbers less than x and see which ones are
coprime to it. This is fine if x is very small. With a computer
you could do up to 6 or 7 digits without much problem. So the
first thing you should do is to work out phi(x) for as long as
you can be bothered (at least to x=30).
Do you see any patterns?
As this is about divisibility it is often good to look at
primes.
What is phi of a prime?
What about phi of the square of a prime?
Etc...
What about the product of two different primes?
Etc...
Hopefully you will have spotted some patterns by the time you've
looked at the above special cases.
A multiplicative function is a function f such that f(a x
b) = f(a) xf(b). Is phi multiplicative? [Hint : NO]. Is it ALMOST
multiplicative? [Hint : YES]. Where and how does it go
wrong?
If you got this far then you probably have worked out the
properties that phi has and you will be able to do your
question.
Write back if you want any more clues or answers...
AlexB.
I have been asked to find the phi function of 19600 without
writing down all its factors. Is there a rule?
KATH
YES
There are enough clues in the above reply to allow you to work
out roughly what the rules the phi function obeys.
Work out phi of 2,4,8,16,32,...
and then phi of 3,9,27,81,...
You should see a pattern in these which might allow you to guess
what phi of 5,25,125,... is.
Now work out phi of 2x3,2x5,2x7,2x9,...
and then phi of 3x5, 3x7, 3x11, ...
Compare the answers you get to phi of the factors - ie. compare
phi(3x7) to phi(3) and phi(7). You will see a pattern here
too.
If you spot both these patterns then you will be able to work out
phi of any number (including 19600).
Sorry if you think I'm being awkward by not directly answering
your question but it seems like a slightly strange question to
ask us. If you've been asked to work out phi of 19600 and not
been told any rules then you've not got a chance without a
computer. So it seems that you are meant to find the rule for
yourself... I'm not going to spoil your fun looking for it but
there are enough clues here to help you on your way.
The following posts are from a separate thread about Euler's phi function. The reply gives rather more information than will be helpful if you are doing GCSE coursework, so if that's you, stop reading here!
Thankyou for the help.
David Ball
For lots more about Euler's phi function, see here .