TeX source:
\frac{p}{q}=\frac{\text { Factors of the last }}{\text { Factors of the first }}=\pm 1, \pm 2, \pm 4, \pm \frac{1}{2}