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.


Have You Been Pwned?

Estimated read time: 4 minutes

Has your password been leaked in a major breach? You can find out thanks to Have I Been Pwned?… Or you can use their API and stop worrying about your password being sent through your Web browser!


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!


Executing Shell Commands in a Python Script

Estimated read time: 2 minutes

Even for simple tasks, it is often worth basing one’s work on existing solutions when it is an appropriate option… And such can be the case when writing Python scripts!


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.