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.
We will use two basic results from number theory.
(a) The sum of all the m th primitive roots of unity is μ ( m ) , the Mobius function (this result was known to Gauss). We discussed this issue here .
(b) ϕ ( n ) = ∑ d ∣ n d μ ( d n ) . There are many ways to prove this formula. One approach is to point out that both sides are multiplicative functions; for prime powers p n both sides come out to be p n − p n − 1 .
Now consider ∑ k = 1 n g cd ( n , k ) e 2 k π i / n . If g cd ( n , k ) = d , then e 2 k π i / n will be a primitive ( d n ) 'th root of unity. If we group together the terms with g cd ( k , n ) = d , we see that ∑ k = 1 n g cd ( n , k ) e 2 k π i / n = ∑ d ∣ n d μ ( d n ) = ϕ ( n ) . Taking real parts, we find that k = 1 ∑ n g cd ( n , k ) cos ( 2 k π / n ) = ϕ ( n ) In the case of interest, n = 2 0 1 5 , this sum comes out to be ϕ ( 2 0 1 5 ) = 1 4 4 0 .