There's a problem statement:
For each $m \in \mathbb{N}$, we construct a sequence $m_0$, $m_1$, $m_2,\dots$ denoted $S_m$, recursively via $m_0=m$ and
$$m_{i+1} = m_i + \left\lfloor \sqrt{m_i} \right\rfloor$$
for all $i \ge 0$. Here, $\lfloor x \rfloor$ is the floor of $x$, the greatest integer less than or equal to $x$. Hence, we have $\left\lfloor \sqrt{10} \right\rfloor=3$ and $\left\lfloor \sqrt{29} \right\rfloor=5$.
Show that for each positive integer $m$, the sequence $S_m$ contains the square of some integer.
I'm pretty certain that this can be proved with induction. I am just not quite sure what to induct on. Examining examples shows that $S_m$ always results in a perfect square eventually, though I'm not sure how to prove it.