Source: http://math.lyceedebaudre.net/sites/default/files/Exercices/PremiereS/Exercices_gen_suites.pdf