Binary Expansion of Numbers in Python
deadendmath.com