Chapter 2
On the Indicator of an Integer

2.1 Definition. Indicator of a Prime Power

Definition. If m is any given positive integer the number of positive integers not greater than m and prime to it is called the indicator of m. It is usually denoted by φ(m), and is sometimes called Euler’s φ-function of m. More rarely, it has been given the name of totient of m.

As examples we have

φ(1) = 1,φ(2) = 1,φ(3) = 2,φ(4) = 2.

If p is a prime number it is obvious that

φ(p) = p 1;

for each of the integers 1, 2, 3, , p 1 is prime to p.

Instead of taking m = p let us assume that m = pα, where α is a positive integer, and seek the value of φ(pα). Obviously, every number of the set 1, 2, 3, , pα either is divisible by p or is prime to pα. The number of integers in the set divisible by p is pα1. Hence pα pα1 of them are prime to p. Hence φ(pα) = pα pα1. Therefore

If p is any prime number and α is any positive integer, then

φ(pα) = pα 1 1 p.

2.2 The Indicator of a Product

I. If μ and ν are any two relatively prime positive integers, then

φ(μν) = φ(μ)φ(ν).

In order to prove this theorem let us write all the integers up to μν in a rectangular array as follows:

1 2 3 h μ μ + 1 μ + 2 μ + 3 μ + h 2μ 2μ + 1 2μ + 2 2μ + 3 2μ + h 3μ (ν 1)μ + 1(ν 1)μ + 2(ν 1)μ + 3(ν 1)μ + hνμ (A)

If a number h in the first line of this array has a factor in common with μ then every number in the same column with h has a factor in common with μ. On the other hand if h is prime to μ, so is every number in the column with h at the top. But the number of integers in the first row prime to μ is φ(μ). Hence the number of columns containing integers prime to μ is φ(μ) and every integer in these columns is prime to μ.

Let us now consider what numbers in one of these columns are prime to ν; for instance, the column with h at the top. We wish to determine how many integers of the set

h,μ + h,2μ + h,,(ν 1)μ + h

are prime to ν. Write

sμ + h = qsν + rs

where s ranges over the numbers s = 0,1,2,,ν 1 and 0 rs < ν. Clearly sμ + h is or is not prime to ν according as rs is or is not prime to ν. Our problem is then reduced to that of determining how many of the quantities rs are prime to ν.

First let us notice that all the numbers rs are different; for, if rs = rt then from

sμ + h = qsν + rs,tμ + h = qtν + rt,

we have by subtraction that (s t)μ is divisible by ν. But μ is prime to ν and s and t are each less than ν. Hence (s t)μ can be a multiple of ν only by being zero; that is, s must equal t. Hence no two of the remainders rs can be equal.

Now the remainders rs are ν in number, are all zero or positive, each is less than ν, and they are all distinct. Hence they are in some order the numbers 0, 1, 2, , ν 1. The number of integers in this set prime to ν is evidently φ(ν).

Hence it follows that in any column of the array (A) in which the numbers are prime to μ there are just φ(ν) numbers which are prime to ν. That is, in this column there are just φ(ν) numbers which are prime to μν. But there are φ(μ) such columns. Hence the number of integers in the array (A) prime to μν is φ(μ)φ(ν).

But from the definition of the φ-function it follows that the number of integers in the array (A) prime to μν is φ(μν). Hence,

φ(μν) = φ(μ)φ(ν),

which is the theorem to be proved.

COROLLARY. In the series of n consecutive terms of an arithmetical progression the common difference of which is prime to n, the number of terms prime to n is φ(n).

From theorem I we have readily the following more general result:

II. If m1,m2,,mk are k positive integers which are prime each to each, then

φ(m1m2mk) = φ(m1)φ(m2)φ(mk).

2.3 The Indicator of any Positive Integer

From the results of §§2.1 and 2.2 we have an immediate proof of the following fundamental theorem:

If m = p1α1p2α2pnαn where p1,p2,,pn are different primes and α1,α2,,αn are positive integers, then

φ(m) = m 1 1 p1 1 1 p2 1 1 pn .

For,

φ(m) = φ(p1α1 )φ(p2α2 )φ(pnαn ) = p1α1 1 1 p1 p2α2 1 1 p2 pnαn 1 1 pn = m 1 1 p1 1 1 p2 1 1 pn .

On account of the great importance of this theorem we shall give a second demonstration of it.

It is clear that the number of integers less than m and divisible by p1 is

m p1.

The number of integers less than m and divisible by p2 is

m p2.

The number of integers less than m and divisible by p1p2 is

m p1p2.

Hence the number of integers less than m and divisible by either p1 or p2 is

m p1 + m p2 m p1p2.

Hence the number of integers less than m and prime to p1p2 is

m m p1 m p2 + m p1p2 = m 1 1 p1 1 1 p2 .

We shall now show that if the number of integers less than m and prime to p1p2pi, where i is less than n, is

m 1 1 p1 1 1 p2 1 1 pi ,

then the number of integers less than m and prime to p1p2pipi+1 is

m 1 1 p1 1 1 p2 1 1 pi+1 .

From this our theorem will follow at once by induction.

From our hypothesis it follows that the number of integers less than m and divisible by at least one of the primes p1, p2, , pi is

m m 1 1 p1 1 1 pi ,

or

m p1 m p1p2 + m p1p2p3 ,  (A)

where the summation in each case runs over all numbers of the type indicated, the subscripts of the p’s being equal to or less than i.

Let us consider the integers less than m and having the factor pi+1 but not having any of the factors p1, p2, , pi. Their number is

m pi+1 1 pi+1 m p1 m p1p2 + m p1p2p3 ,  (B)

where the summation signs have the same significance as before. For the number in question is evidently m pi+1 minus the number of integers not greater than m pi+1 and divisible by at least one of the primes p1, p2, , pi.

If we add (A) and (B) we have the number of integers less than m and divisible by one at least of the numbers p1, p2, , pi+1. Hence the number of integers less than m and prime to p1, p2, , pi+1 is

m m p1 + m p1p2 m p1p2p3 + ,

where now in the summations the subscripts run from 1 to i + 1. This number is clearly equal to

m 1 1 p1 1 1 p2 1 1 pi+1 .

From this result, as we have seen above, our theorem follows at once by induction.

2.4 Sum of the Indicators of the Divisors of a Number

We shall first prove the following lemma:

Lemma. If d is any divisor of m and m = nd, the number of integers not greater than m which have with m the greatest common divisor d is φ(n).

Every integer not greater than m and having the divisor d is contained in the set d, 2d, 3d, , nd. The number of these integers which have with m the greatest common divisor d is evidently the same as the number of integers of the set 1, 2, , n which are prime to m d , or n; for αd and n have or have not the greatest common divisor d according as α is or is not prime to m d = n. Hence the number in question is φ(n).

From this lemma follows readily the proof of the following theorem:

If d1, d2, , dr are the different divisors of m, then

φ(d1) + φ(d2) + + φ(dr) = m.

Let us define integers m1, m2, , mr by the relations

m = d1m1 = d2m2 = = drmr.

Now consider the set of m positive integers not greater than m, and classify them as follows into r classes. Place in the first class those integers of the set which have with m the greatest common divisor m1; their number is φ(d1), as may be seen from the lemma. Place in the second class those integers of the set which have with m the greatest common divisor m2; their number is φ(d2). Proceeding in this way throughout, we place finally in the last class those integers of the set which have with m the greatest common divisor mr; their number is φ(dr). It is evident that every integer in the set falls into one and into just one of these r classes. Hence the total number m of integers in the set is φ(d1) + φ(dr) + + φ(dr). From this the theorem follows immediately.

EXERCISES

1.
Show that the indicator of any integer greater than 2 is even.
2.
Prove that the number of irreducible fractions not greater than 1 and with denominator equal to n is φ(n).
3.
Prove that the number of irreducible fractions not greater than 1 and with denominators not greater than n is
φ(1) + φ(2) + φ(3) + + φ(n).
4.
Show that the sum of the integers less than n and prime to n is 1 2nφ(n) if n > 1.
5.
Find ten values of x such that φ(x) = 24.
6.
Find seventeen values of x such that φ(x) = 72.
7.
Find three values of n for which there is no x satisfying the equation φ(x) = 2n.
8.
Show that if the equation
φ(x) = n

has one solution it always has a second solution, n being given and x being the unknown.

9.
Prove that all the solutions of the equation
φ(x) = 4n 2,n > 1,

are of the form pα and 2pα, where p is a prime of the form 4s 1.

10.
How many integers prime to n are there in the set
(a)
1 2,2 3,3 4,,n(n + 1)?
(b)
1 2 3,2 3 4,3 4 5,,n(n + 1)(n + 2)?
(c)
12 2 , 23 2 , 34 2 ,, n(n+1) 2 ?
(d)
123 6 , 234 6 , 345 6 ,, n(n+1)(n+2) 6 ?
11*.
Find a method for determining all the solutions of the equation
φ(x) = n,

where n is given and x is to be sought.

12*.
A number theory function φ(n) is defined for every positive integer n; and for every such number n it satisfies the relation
φ(d1) + φ(d2) + + φ(dr) = n,

where d1,d2,,dr are the divisors of n. From this property alone show that

φ(n) = n 1 1 p1 1 1 p2 1 1 pk ,

where p1,p2,,pk are the different prime factors of n.