The abc triple of a rational number #
Writing a rational q in lowest terms as a / c with a = q.num and c = q.den, and setting
b = c - a, gives integers with a + b = c, pairwise coprime since a and c are
(Rat.isCoprime_num_den). This is how an abc triple is read off a rational number, as for the
j-invariant of an elliptic curve over ℚ divided by 1728. The three integers are nonzero
exactly when q ≠ 0 and q ≠ 1: a = 0 means q = 0 (Rat.num_ne_zero), c is a
denominator, and b = 0 means q = 1.
Main results #
Rat.den_sub_num_ne_zero:q.den - q.num ≠ 0if and only ifq ≠ 1.