Sums of the floor function related to class numbers of imaginary quadratic fields
arXiv:2510.04387
Abstract
A curious identity of Bunyakovsky (1882), made more widely known by Pólya and Szeg{\H o} in their ``Problems and Theorems in Analysis", gives an evaluation of a sum of the floor function of square roots involving primes . We evaluate this sum also in the case , obtaining an identity in terms of the class number of the imaginary quadratic field . We also consider certain cases where the prime is replaced by a composite integer. Class numbers of imaginary quadratic fields are again involved in some cases.