Exponentiation in Modular Arithmetic Made Easy

~3 minutes to 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.


Number of Paths in a Grid… or in Life

~5 minutes to read

Finding one’s way in life is not easy because there are so many paths we can take at any moment. Here is a way to look at it mathematically!