Source: https://lons2.circo39.ac-besancon.fr/wp-content/uploads/sites/8/2019/10/sequence.pdf