Here\'s the textbook problem I need to solve:
Write a recursive function that solves the following for a given number n: