Before you look at this tree, make a prediction: how many times do you think gets calculated when computing ? Once? Twice? More? Hold that guess.
Here's the call tree for : Notice computed twice, three times, five times! You're doing the same work over and over. This is the main problem you need to fix. Tracing through examples helps build intuition for how it works.