- #1
Titan97
Gold Member
- 450
- 18
Homework Statement
Prove that $$\sum_{r=1}^{b-1}[\frac{ra}{b}]=\frac{(a-1)(b-1)}{2}$$ where [.] denotes greatest integer function and a & b have no common factors.
Homework Equations
##n\le [n]<n+1##
<x> denotes fractional part of x.
3. The Attempt at a Solution
I first added and subtracted ##a/b + 2a/b +3a/b +...+(b-1)a/b## to get:
$$\frac{a(b-1)}2-\sum_{r=1}^{b-1}<\frac{ra}{b}>$$ where <.> denotes fractional part. This way I got closer to the answer. Also, <x> is a periodic function and it would be better to convert [.] to <.>. But I am stuck at this step.