Numbers and Functions Theory, Formulation, and Python Codes