6
$\begingroup$

I have to compute a double infinite sum to within a given accuracy $\epsilon$. Let us say the sum is of the form $$\sum_{m\geq 1} \sum_{n\geq 1} \frac{a_{m,n}}{m^2 n^2 \max(m,n)},$$ where $|a_{m,n}|\leq 1$.

The naïve approach would be to sum for all $(m,n)$ within a box and then bound the tails. That is not really efficient: for a box of size $\sqrt{N}$, we would be computing $N$ terms, and the error bound would be on the order of $1/N$. It is much better to consider a more general region $U\subset \mathbb{Z}^+\times \mathbb{Z}^+$, compute $$\sum_{(m,n)\in U} \frac{a_{m,n}}{m^2 n^2 \max(m,n)},$$ and bound the tails (i.e., the contribution of the complement $U^c = (\mathbb{Z}^+\times \mathbb{Z}^+)\setminus U$). For instance, for the fairly natural choice $$U = \{(m,n): m^2 n^2 \max(m,n)\leq M\},$$ the sum over $(m,n)\in U^c$ is bounded by about $(10/3)/M^{3/5}$, whereas $|U|\leq 6 M^{2/5}$. We can thus obtain an error of size $C/N^{3/2}$ when computing $N$ terms, where $C = \frac{10}{3} \cdot 6^{3/2}$.

Here comes the surprising part: that $U$ is not optimal. If we choose, more generally, $$U_\alpha = \{(m,n): (m n)^{\alpha} \max(m,n)\leq M\},$$ we find that $\alpha \approx 7$ is about twice as good as $\alpha=2$ (that is, it gives a better $C$, and so we get about half the error for the same number of terms).

Is there a good reason? Is there an even better choice of $U$?

$\endgroup$
4
  • 1
    $\begingroup$ PS. I'd be interested in the same question with $(m+n)$ instead of $\max(m,n)$ (that's in fact closer to my "real" application) - that seems a bit harder, though. $\endgroup$ Commented Dec 16, 2021 at 11:47
  • 2
    $\begingroup$ This doesn't seem plausible (or I don't understand the question). Suppose I can always compute the tail bound $\sum_{(m, n) \in U^c} 1/(m^2 n^2 \max(m, n))$ exactly and efficiently, for whatever set $U$. Suppose I have computed some $N$ terms of the sum exactly, and I'm deciding which is the best $(N+1)$th term to compute to minimize the error. Plainly, the answer is to minimize $m^2 n^2 \max(m, n)$. $\endgroup$ Commented Dec 16, 2021 at 12:30
  • 1
    $\begingroup$ Hm, you are right - I am now wondering what I am doing wrong. $\endgroup$ Commented Dec 16, 2021 at 12:39
  • 1
    $\begingroup$ Hah - of course I was miscalculating. The bound $|U|\leq 6 M^{2/5}$ in the above should be $|U|\leq 5 M^{2/5}$ (and there was likely an error elsewhere - $\alpha \approx 7$ is too far off). The argument you've given is obviously correct, and $\alpha=2$ is indeed optimal. $\endgroup$ Commented Dec 16, 2021 at 20:58

0

You must log in to answer this question.