For any positive integer n , the Farey sequence F n is the set of irreducible rational numbers b a with 0 ≤ a ≤ b ≤ n and g c d ( a , b ) = 1 arranged in increasing order. The first three Farey sequences are: F 1 F 2 F 3 = = = { 1 0 , 1 1 } { 1 0 , 2 1 , 1 1 } { 1 0 , 3 1 , 2 1 , 3 2 , 1 1 }
Compute the maximum value of n for which the number of terms of F n does not exceed 5 0 0 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Got a proof for (Eqn 10)?
I did the same way but does there exist a shorter method to calculate sum of 1st n totients?
Log in to reply
I was also looking for it.
You can use the asymptotic behavior, F n ∼ π 2 3 n 2
Problem Loading...
Note Loading...
Set Loading...
The number of terms of Farey sequence F n is given by ( see Eqn. (10) ):
N ( n ) = 1 + k = 1 ∑ n ϕ ( k )
where ϕ ( ⋅ ) is the Euler's totient function .
It can be found that N ( 4 0 ) = 4 9 1 and N ( 4 1 ) = 5 3 1 , therefore the answer is 4 0 .
Proof for N ( n ) :
Consider F n for any n ,
F n = ⎩ ⎪ ⎪ ⎨ ⎪ ⎪ ⎧ 1 0 , ϕ ( 1 ) terms 1 1 , ϕ ( 2 ) terms 2 1 , ϕ ( 3 ) terms 3 1 , 3 2 , ϕ ( 4 ) terms 4 1 , 4 3 , . . . ϕ ( n ) terms n a n 1 , n a n 2 , n a n 3 , . . . n a n ϕ ( n ) ⎭ ⎪ ⎪ ⎬ ⎪ ⎪ ⎫
We note that other than 1 0 in the Farey sequence, all rational numbers with integer denominator k must have coprime nominators a k j , therefore the number of rational numbers or terms with k as denominator is Euler's totient function ϕ ( k ) . And we have:
N ( n ) = k = 1 ∑ n k a k j = 1 + k = 1 ∑ n ϕ ( k ) ■ 1 is for 1 0