The totient function.

Authors Avatar
Maths Coursework

The totient function ?(n), also called Euler's totient function, is defined as the number of positive integers <= n which are relatively prime to (i.e., do not contain any factor in common with) n, where 1 is counted as being relatively prime to all numbers. Since a number less than or equal to and relatively prime to a given number is called a totative, the totient function ? (n) can be simply defined as the number of totatives of n. For example, there are eight totatives of 24 (1, 5, 7, 11, 13, 17, 19, and 23), so ?24=8. The totient function is implemented in Mathematics as EulerPhi [n]. In this part of the coursework will be investigating the phi function of:

) ?(p)

2) ?(m x n) = ?(m) x ?(n)

3) ?(pn)

4) Other methods of calculating the Phi values of an integer that I found from the net.

Find the value of:

(i) ?(3): = 2

3 = 1,2

The number 3 only has 2 positive co-prime integers they are the numbers 1 and 2.

(ii) ?(8): = 4

8 = 1,3,5,7

There are 4 positive co-prime integers for the number 8

(iii) ?(11): = 10

1 = 1,2,3,4,5,6,7,8,9,10

The number 11 has 10 positive co-prime integers, and they are shown above.

(iv) ?(24): = 8

24 = 1,5,7,11,13,17,19,23

The number 24 has 8 positive co-prime integers, and they are shown above.

Part 1

In this part I will try to investigate on ?(n). But before we can start we need to experiment on certain numbers. The experiment is shown below:

Even

? Of Number

2

4

20

42

84

2

8

2

24

Odd

? Of Number

3

7

23

51

79

2

6

22

32

78

Prime

? Of Number

3

7

37

61

419

2

6

36

60

418

Observations: -

) As you can see from the experiment on the above all the phi values of the numbers are all even except for the numbers, 1 and 2 which is shown on my tables. This is a good way of checking if your Phi answer is wrong or not. Even for even numbers the Phi value increases but this is not applicable to the even numbers that are the factors of 3 and 5. The Phi value also increases for odd numbers as the number increases but this does not include odd numbers.

2) Another common sequence that I found was that for all the Phi values of the prime numbers, the Phi value was one less than that number.

Eg: ?7= 6

This means that we can say:

?Prime (n) = n - 1

This formula is true for prime numbers because they have only 1 as a common factor, therefore all the numbers less that (n) will be co-prime to it. Check: -

?(3) = 2

?(5) =4

?(23) =22

3) By looking at the different Phi values I've seen that there are formulas for calculating all types of numbers. For odd numbers I've seen that if you take any number and multiply it by two, then find the Phi value of hat answer you can find the Phi value that you desire. The formula is shown below-

?(n) = ?(2 x n)

Check: -

?(9)= 6

(My formula) 9 x 2= 18, ?18=6 (proved)

4) As mentioned above a formula also applies for even numbers as well. By using the same formula above all I did now was just divide the whole equation by two. That is-

?(n) = ?(2 x n) / 2

Check: -

?10 = 4

(My formula) ?10 = 10 x 2= 20, ?20=8, 8 / 2= 4 (proved)

5) By looking at my formulas I also discovered that all my formulas need the Phi values of other numbers at some point or another. This means that there is no certain formula to find the Phi value of a number without using the Phi values of other numbers.

As a further proof that the phi values don't increase as the number increases I drew a chart. As you can see the line keeps going up and down proving that as the number increases its phi value does not necessarily have to increase.

Part 2

In part one I discovered that the only definite answer for an integer was for prime numbers, by using the formula ?(p) = p - 1. Now another attribute that I would like to investigate is the ?(pn). To further prove that my calculations and theory about prime numbers are right I planned a table for the values of (n) and (n)² and their factors beginning with "n". the following is the table I made.
Join now!


(n)

(n) ²

?(n) ²

Factors

2

4

2

2 x 1

3

9

6

3 x 2

4

6

8

4 x 2

5

25

20

5 x 4

6

36

2

6 x 2

7

49

42

7 x 6

8

64

32

8 x 4

9

81

54

9 x 6

0

00

40

0 ...

This is a preview of the whole essay