Index ¦ Archives ¦ Tags ¦ Learning Progress ¦ Contact ¦ Resume

Exponentiation in Modular Arithmetic Made Easy

Estimated read time: 3 minutes

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

Estimated read time: 5 minutes

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!


Binary to Decimal, Decimal to Binary Converter

Estimated read time: 2 minutes

As part of a course on the mathematics of Computer Science, I had to come up with algorithms to convert binary numbers to decimal numbers and vice versa.

© Sébastien Lavoie. Built in Python using Pelican v4.6.0. Theme adapted from Giulio Fidente on GitHub. RSS feed.