Someone wanted to learn this too, so Grasp built them a personal learning path.
You can keep exploring this one or create a path like this one shaped around you.
Recommended resources
Module 2
Modular Arithmetic Operations
Module 3
Advanced Number Theory Algorithms
Module 4
Foundational Counting Techniques
Module 5
Advanced Combinatorial Methods
Module 6
Introduction to Combinatorial Games
Module 7
The Game of Nim and Nim-Sum
Module 8