TeX source:
\begin{aligned} &Q G=M I P G_{(a, b), T M, n}-O H G_{(a, b), T M, n}-O O G_{(a, b), T M, n} \\ &\text { for a }=1 \ldots \mathrm{A}, \mathrm{b}=1 \ldots \mathrm{B}, \mathrm{TM}=1 \text { or } 2, \mathrm{n}=1 \ldots \mathrm{n} \end{aligned}