An alternating sum of the floor function of square roots
Published: Oct 30, 2025
Last Updated: Oct 30, 2025
Authors:Marc Chamberland, Karl Dilcher
Abstract
We show that the alternating sum of the floor function of $\sqrt{jn}$, with $j$ ranging from 1 to $n$, has an easy evaluation for all odd integers $n\geq 1$. This is in contrast to known non-alternating sums of the same type which hold only for a class of primes. The proof is elementary and was suggested by an AI model. To put this result in perspective, we also prove an asymptotic expression for the analogous sum without the floor function.