What does this sum S equal to?
S = \lfloor \sqrt{1} \rfloor + \lfloor \sqrt{2} \rfloor + \lfloor \sqrt{3} \rfloor + ... + \lfloor \sqrt{2024} \rfloor
Note that
\lfloor x \rfloor
refers to the floor value of x
, i.e. \lfloor pi \rfloor = 3
This page might be useful at some point if you encounter a sum of powers.
Previous iteration: #758044 (several correct answers where indeed, prisoner 2 is the one that speaks, naming the opposite color to the one in front of him).
np.sum(np.floor(np.sqrt(np.arange(1,2025,1))))
59730
S=59730
.\sqrt{2024}
is just at the border between 44 and 45) or