Closed-form for Floor Sum 2

89 Views Asked by At

Does a closed form exist for the following sum?

$\sum_{k=0}^{n}\lfloor\sqrt{k}\rfloor\lfloor\sqrt{k+P}\rfloor$

where $P$ is a positive odd integer. Would a closed-form be possible if the factorization of $P$ is known?