If $\left|f(p+q) - f(q)\right|\leq p/q$ for all rational $p$ and $q$, with $q \neq 0$, then prove that $$\sum_{i=0}^k \left|f\left(2^k\right) -f\left(2^i\right)\right| \leq \frac12 k(k-1)$$
My try:
I consider the sum for $i=r $ which gives the inequality from given property of function $$ \left |f\left(2^k\right) -f\left(2^i\right)\right| \leq 2^{k-i} - 1$$, and then summed it, but it doesn't work.