Lemma (Dirichlet hyperbola method). Assuming that:

  • f,g:ℕ→ℂ

  • x≥y≥1

Then
∑n≤x(f∗g)(n)=∑d≤yf(d)∑m≤xdg(m)+∑m≤xyg(m)∑y<d≤xmf(d).