Source: https://www.4math.net/2020/07/sujet-bac-ancien-exercices-nombres_21.html.pdf