https://medium.com/@monocosmo77/working-with-binary-automatic-sequences-in-machine-learning-2024-5926bef31651