What does this sum S equal to?
Note that refers to the floor value of , i.e.
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).
Well the root of 2024 is greater than 42, so it's probably a trick question with no real answer.
reply
I figure this would be a fun one to try and code in one line :)
np.sum(np.floor(np.sqrt(np.arange(1,2025,1))))
Answer: 59730
reply
reply
If we write down the floor values we see
(note how, conveniently, is just at the border between 44 and 45) or
or
and then using the Sums of powers formula from the suggested page
reply