More fun in 2015, Part 24

Find k = 1 2015 ( gcd ( 2015 , k ) cos ( 2 k π 2015 ) ) \sum_{k=1}^{2015}\left(\gcd(2015,k)\cos\left(\frac{2k\pi}{2015}\right)\right)


The answer is 1440.

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.

1 solution

Otto Bretscher
Oct 29, 2015

We will use two basic results from number theory.

(a) The sum of all the m m th primitive roots of unity is μ ( m ) \mu(m) , the Mobius function (this result was known to Gauss). We discussed this issue here .

(b) ϕ ( n ) = d n d μ ( n d ) \phi(n)=\sum_{d|n}d\mu\left(\frac{n}{d}\right) . 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 p^n both sides come out to be p n p n 1 p^n-p^{n-1} .

Now consider k = 1 n gcd ( n , k ) e 2 k π i / n \sum_{k=1}^{n}\gcd(n,k)e^{2k\pi i/n} . If gcd ( n , k ) = d \gcd(n,k)=d , then e 2 k π i / n e^{2k\pi i/n} will be a primitive ( n d ) \left(\frac{n}{d}\right) 'th root of unity. If we group together the terms with gcd ( k , n ) = d \gcd(k,n)=d , we see that k = 1 n gcd ( n , k ) e 2 k π i / n = d n d μ ( n d ) = ϕ ( n ) \sum_{k=1}^{n}\gcd(n,k)e^{2k\pi i/n}=\sum_{d|n}d\mu\left(\frac{n}{d}\right)=\phi(n) . Taking real parts, we find that k = 1 n gcd ( n , k ) cos ( 2 k π / n ) = ϕ ( n ) \sum_{k=1}^{n}\gcd(n,k)\cos(2k\pi/n)=\phi(n) In the case of interest, n = 2015 n=2015 , this sum comes out to be ϕ ( 2015 ) = 1440 . \phi(2015)=\boxed{1440}.

Mind = blown! Wow! Loved it! Thank you for the problem and solution.

Kartik Sharma - 5 years, 7 months ago

Amazing problem!

Arkin Dharawat - 5 years, 7 months ago

Great problem. Solution is unbelievably intricate.

Srikanth Tupurani - 2 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...