plot f(x)=(floor(x))^3/3+(floor(x))^2/2+(floor(x))/6+x floor(x) (x-floor(x)-1), g(x)=x(x-1)(2x-1)/6