I have been trying to find this summation faster, Is there any sequence that can be observed?
$$Z(N)=\sum_{i=1}^N i^2\left\lfloor \frac{N}{i^2} \right\rfloor$$
I have been trying to find this summation faster, Is there any sequence that can be observed?
$$Z(N)=\sum_{i=1}^N i^2\left\lfloor \frac{N}{i^2} \right\rfloor$$
Copyright © 2021 JogjaFile Inc.
This sequence is OEIS' A309125 with some interesting links like A035316 for the differences obtained with following Dirichlet generating function (and much more) : $$\zeta(s)\, \zeta(2s-2)$$ Details appear at $\,3.6\,$ (for $\,t=2$) in Richard Mathar's paper "Survey of Dirichlet Series of Multiplicative Arithmetic Functions".
Using the free pari/gp we may obtain these differences and (adding) your initial sequence :