Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 2.3.40 (Sum of positive integers less than $n$ and prime to $n$)

Exercise 2.3.40 (Sum of positive integers less than $n$ and prime to $n$)

Prove that for n 2 the sum of all positive integers less than n and prime to n is ( n ) 2 .

Answers

Proof. We use the symmetry a n a in the set of a ] ] 0 , n [ [ such that a n = 1 .

Consider the set

A = { a ] ] 0 , n [ [ a n = 1 } .

Then the sum of all positive integers less than n and prime to n is

S = a A a .

Consider now the two subsets of A

B = { a A 0 < a < n 2 } , C = { a A n 2 < a < n } .

Since n 2 , if n is even n n 2 = n 2 > 1 , and if n is odd, n 2 is not an integer. In both cases n 2 A . Therefore

A = B C , = B C .

This shows that

S = a A a = a B a + a C a . (1)

Consider the maps

χ { B C a n a , ξ { C B b n b .

χ is well defined, because a n = 1 ( n a ) n = 1 , and 0 a < n 2 n 2 < n a < n , so a B n a C . Similarly ξ is well defined.

Moreover, for all a A , ( ξ χ ) ( a ) = n ( n a ) = a , so ξ χ = 1 B , and similarly χ ξ = 1 C . This shows that χ is bijective.

A first consequence is that | B | = | C | , thus | A | = | B | + | C | = 2 | B | , so | B | = | A | 2 . Since | A | = ϕ ( n ) , this shows anew that ϕ ( n ) is even for n 2 , and

| B | = 1 2 ϕ ( n ) . (2)

Another consequence is

a C a = b C b = a B χ ( a ) ( b = χ ( a ) ) = a B ( n a ) .

Then (1) becomes

a A a = a B a + a C a = a B a + a B ( n a ) = a B [ a + ( n a ) ] = a B n = n | B | = ( n ) 2 ( by ( 2 ) ) .

So

0 < a < n , a n = 1 a = ( n ) 2 ( n 2 ) .

User profile picture
2024-08-17 08:21
Comments