https://azpdf.net/document/y4wxrvl5-some-variants-of-the-balancing-sequence.html