https://medium.com/@monocosmo77/how-counting-permutations-work-part4-machine-learning-2024-fde2de9bc286