I\'m trying a solve an exercise from Exploring Python book. But, I guess I don\'t understand concept of the recursion. I\'ve written some Recursively function. Therefore I k
Use this formula.
https://upload.wikimedia.org/wikipedia/en/math/c/b/b/cbb6a25439b51061adb913c2a6706484.png
You accomplish your task in one for loop.