[Tex/LaTex] getting an undefined control sequence error in this line?

errorsmath-mode

This line is giving me an error which I have been unable to remove for the last hour.

Let $a^i =p\times 10^{n+1} + r$ and $a^j =q\times 10^{n+1} + r$
be two such powers. Let $a^j \gt a^i$.

Best Answer

Changing the \gt to > makes the code compile without error message.

Let $a^i =p\times 10^{n+1} + r$ and $a^j =q \times 10^{n+1} + r$ 
be two such powers. Let $a^j > a^i$.