Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 6.1.2 (Number and sum of Farey fractions of order $n$)

Exercise 6.1.2 (Number and sum of Farey fractions of order $n$)

Prove that the number of Farey fractions a b of order n satisfying the inequalities 0 a b 1 is 1 + j = 1 n ϕ ( j ) , and that their sum is exactly half this value.

Answers

Proof.

(a)
Let N be the number of Farey fractions a b of order n satisfying the inequalities 0 a b 1 , and A = { ( a , b ) × 0 a b n , a b = 1 } ,

so that N = Card A .

We define for every j [ [ 1 , n ] ] ,

A j = { ( a , b ) × 0 a b n , a b = 1 , b = j } , B j = { a 0 a j , a j = 1 }

Then

A = j = 1 n A j (disjoint union) ,

and

φ { A j B j ( a , j ) a

is bijective, with reciprocal ψ : B j A j defined by a ( a , j ) .

Therefore

N = | A | = j = 1 n | B j | .

Since 0 1 = 1 1 = 1 , then B 1 = { 0 , 1 } , thus B 1 = 2 = 1 + ϕ ( 1 ) .

If j 2 , 0 j = j 1 , thus

B j = { a 0 a j , a j = 1 } = { a 1 a j , a j = 1 }

By definition of ϕ ,

ϕ ( j ) = Card { a 1 a j , a j = 1 } ( j 1 ) ,

so | B j | = ϕ ( j ) if j 2 .

N = 1 + j = 1 n ϕ ( j ) .

The number of Farey fractions a b of order n satisfying the inequalities 0 a b 1 is N = 1 + j = 1 n ϕ ( j )

(b)
The sum of Farey fractions a b of order n satisfying the inequalities 0 a b 1 is N = ( a , b ) A a b .

Consider the map

χ { A A ( a , b ) ( b a , b )

For every ( a , b ) A , 0 a b n , thus 0 b a b n , and ( b a ) b = 1 , thus ( b a , b ) A , and χ is well defined.

Note that ( χ χ ) ( a , b ) = χ ( b a , b ) = ( b ( b a ) , b ) = ( a , b ) for every ( a , b ) A , thus χ χ = 1 A , so χ is an involution of A . A fortiori, χ is bijective. (This shows that the Farey sequence is symmetric.)

Therefore the changement of indices ( a , b ) χ ( a , b ) = ( b a , b ) gives

N = ( a , b ) A b a b .

Hence

2 N = ( a , b ) A a b + ( a , b ) A b a b = ( a , b ) A ( a b + b a b ) = ( a , b ) A 1 = Card A = 1 + j = 1 n ϕ ( j ) .

Therefore

N = 1 2 ( 1 + j = 1 n ϕ ( j ) )

User profile picture
2025-07-03 08:57
Comments