These were two of 20 problems I had to do in a test today that I didn't manage to solve.
1) Find the least $k$ such that $1^2 + 2^2 + 3^2 + 4^2 + \dots + k^2$ is a multiple of 200.
2) Find $f(97)$, where $f(n) = \lfloor 2 \sqrt{1 \cdot 2 \cdot 3 + 4 \cdot 5 \cdot 6 + \dots + n(n+1)(n+2)} \rfloor$.
For the first one, I know that:
$\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}$
so we have: $\displaystyle\frac{k(k+1)(2k+1)}{6} = 200a$ for some integer $a$. So: $\displaystyle\frac{k(k+1)(2k+1)}{1200} = a$. And then I don't know how to go on...
As for the second one, I don't even know where to start...
We had to do all the problems with pen&paper only (no calculator allowed). Using Python I found that the answer to the first question is 112, but how to reach it?
Thank you,
rubik