Source: http://jaicompris.com/lycee/math/suite/arithmetique/suite-arithmetique-exercice.pdf