Source: https://chingatome.fr/chap/tle-opt-experte/congruences.pdf