I don't use equations. I just played around and this is what I got:
I used the fraction and superscript buttons. First the fraction, then in the top and bottom insertion areas of the fraction I used the superscript button.
In case it isn't clear, I started with Insert > Equation.