I would like to exchange the order of the following:
$\sum_{k=1}^{i-1}\sum_{r=1}^{2k}$ (stuff).
I feel like it should be easy, but so far I am only able to produce
$\sum_{r=1}^{2(i-1)}\sum_{k=??}^{??}$ (stuff).
In particular, I don't see how to reconcile the inequalities $1 \leq r\leq 2k\,$ and $1 \leq k \leq i-1$\, without introducing half integers into the sum.
Thanks,
Did I compute this exchange correctly?
$$\sum_{k=1}^{i-1}\sum_{n=1}^{i-1-k}\sum_{s=1}^{2n} a_{kns} = \sum_{s=1}^{2(i-2)}\sum_{k=1}^{i-1-\lceil s/2 \rceil}\sum_{n=\lceil s/2 \rceil}^{i-1-k} a_{kns}$$
– MathIsArt Jan 08 '19 at 19:07