This is
How to do this double sum with a subscript in the middle?
Not finding a specific duplicate, I'll repeat the code used in https://tex.stackexchange.com/a/649824/4427
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\cov}{cov}
\begin{document}
[
2\mathop{\sum\sum}{i<j} a{i}a_{j}\cdot \cov(X_{i}X_{j})
]
\end{document}
To be honest, I'd use a single summation sign.
\mathop{\sum\sum}_{i<j}See https://tex.stackexchange.com/a/649824/4427 – egreg May 18 '23 at 10:36