(p, q)
return tp * q, tq * p
return crt coefficient
return crt coefficient
return crt coefficient
def crt_coefficient(p, q):
    """
    return crt coefficient
    """
    tq = gmpy2.invert(p, q)
    tp = gmpy2.invert(q, p)
    return tp * q, tq * p
def crt_coefficient ( p , q ) : tq = gmpy2 . invert ( p , q ) tp = gmpy2 . invert ( q , p ) return tp * q , tq * p