Evaluate the following limit. $$\lim_{n \to \infty} \cfrac{\sum_{k=1}^n\lfloor kx\rfloor}{n^2} $$
I'm not sure how to proceed from here. Normal methods don't seem to apply here, because of the presence of $\lfloor\cdot\rfloor$ (greatest integer function).
Although, I do get a feeling that Sandwich Theorem may come into play here. Not sure how. May be taking interval of $\lfloor x\rfloor$ as : $x - 1 <\lfloor x\rfloor< x $ .
Any one who can guide me through?