Problem

Source: Romanian IMO TST 2005 - day 2, problem 2

Tags: calculus, integration, number theory proposed, number theory



Let $m,n$ be co-prime integers, such that $m$ is even and $n$ is odd. Prove that the following expression does not depend on the values of $m$ and $n$: \[ \frac 1{2n} + \sum^{n-1}_{k=1} (-1)^{\left[ \frac{mk}n \right]} \left\{ \frac {mk}n \right\} . \] Bogdan Enescu