Recursion (Mathematics and Python)