Source: https://mathplus.tourmu.fr/wp-content/uploads/2020/10/DS1-denombrement-et-suites.pdf