Tag: Mathematics

3 posts

Exponentiation in Modular Arithmetic Made Easy

Automation ~3 min read
While playing around in the Python interpreter to validate answers to mathematical questions, I quickly found out that very large exponents are dealt with very inefficiently by default as they are simply evaluated as is. That’s where Python came to its own rescue.