TeX source:
=\left(\mathrm{g}^{\left(\mathrm{u}_{1}\right)} \mathrm{~g}^{\left(\mathrm{u}_{2}\right)} \bmod \mathrm{p}\right) \bmod \mathrm{q}