This is LaTeX code:

[latex]
g_2 \left( {n_1 ,n_2 } \right) = p_1 pg_1 \left( {n_1 } \right) + p_1 pg_1 \left( {n_2 } \right) -
[/latex]