[Math] Double summation identity

summation

I'm trying to understand the following identity from here

$$\sum_{k\le j \le i\le n} a_{i,j} = \sum_{i=k}^n\sum_{j=k}^i a_{i,j} = \sum_{j=k}^n\sum_{i=j}^n a_{i,j} =
\sum_{j=0}^{n-k}\sum_{i=k}^{n-j} a_{i+j,i}$$

There seems to be more than just index shifts involved. Can somebody explain the steps to me? Also how does one translate the index inequality in the first sum to a proper double sum? Are there some tricks one could use when being presented with some double sum?

Best Answer

The best way to understand it is to draw the set of couples $(i,j)$ such that

$$k\le j\le i\le n$$ as this

enter image description here

The cases where there are the stars are the set of desired couples and for example the first equality is to sweep these couples by rows: $$\underbrace{(a_{k,k})}_{\text{first row}}+(a_{k+1,k}+a_{k+1,k+1})+\cdots+\underbrace{(a_{n,k}+a_{n,k+1}+\cdots+a_{n,n})}_{\text{last rows}}$$

Related Question