Problem

Source:

Tags:



Let $a, b, n$ be positive integers with $\gcd(a, b)=1$. Prove that \[\sum_{k}\left\{ \frac{ak+b}{n}\right\}=\frac{n-1}{2},\] where $k$ runs through a complete system of residues modulo $m$.