Solution
= Solution
For coprime integers $p,q$ with $q>0$,
$$
H(p/q)=\max\{|p|,q\}.
$$
This follows either directly from the real and <p-adic absolute value>[p-adic absolute values], or from the <height-Mahler measure formula> applied to the primitive <minimal polynomial> $qX-p$.