\[\sum_{n\leq x}f(n)=F(x)+O\left(g(x)\right),\]