TeX source:
\textstyle {\frac {N}{\gcd(a,N)}}