So I'm trying to prove that for every real number $a \in \mathbb{R}$, the set $M = \{a,2a,\dots,(k-1)a\}$ contains at least one element that is within $\frac{1}{k}$ of an integer. (Note that $k \in \mathbb{N}$)
So far I found that every $a$ can be expressed as $a = n + r$ where $n \in \mathbb{N}$ and $r \in \mathbb{R}, r \in [0,1)$, and so we can restrict the bounds of $a$ to $[0,1)$. If as a result of multiplication or addition, $a \geq 1$, then we set $a := a-1$ to bring $a$ back into its respective interval.
Now my problem is that I don't know where to go from here. I thought of partitioning the interval $[0,1]$ into subintervals of $\left[0,\frac{1}{k}\right),\left(\frac{1}{k},\frac{2}{k}\right),\dots,\left(\frac{k-1}{k},1\right]$ but I didn't go anywhere with this.
Could I have some help with the proof?