I'm currently working on a bigger assignment where I have to write about the connection between bitcoin/blockchain and maths. I've gotten far, but one of my tasks is to talk about principal rest, modulus, greatest common divisor, the fundamentals of arithmetic theorem, fermats theorem, eulers theorem and function.
The point of the assignment is to make everything as a flow, and not go out of context, so I'm wondering what all of these mathematical theories has to do with bitcoin and blockchain.
Any answers or sources to where I can read about it, would be highly appreciated!