https://www.juanantonioripoll.es/python-programming-exercises/advanced-number-systems-in-python-141
Advanced Number Systems In Python