Source: https://pierrelaporte.csmb.qc.ca/wp-content/uploads/2017/12/mathematique-sequence-ts-4.pdf