Source: http://mathematiques.ac-bordeaux.fr/pedalyc/dosped/prog98/arithm_exos.pdf