This is LaTeX code:

[latex]
\mathop{ {\displaystyle \sum_{i=1}^n\sum_{j=1}^n(n+1-i)(n+1-j)ij}
 
[/latex]