Source: https://lionelponton.fr/TerminaleSpe/exercices_PGCD_2020_1.pdf