\[f(h,k)=\sum_{j=1}^{k}\left[\!\!\left[\frac{2j-1}{2k}\right]\!\!\right]\left[\!%
\!\left[\frac{h(2j-1)}{k}\right]\!\!\right],\]