Answer:
def recurSquare(n):
if n == 0:
return 0
return recurSquare(n-1) + n + n-1
print(recurSquare(2))
Explanation:
Programming language used is Python.
The recursive function is defined as recurSquare(n)
The IF statement checks the argument that is passed to the function to ensure it is not equal to zero.
The function is a recursive function, which means it calls itself.
In the return statement the function calls itself and the argument is reduced by 1.
The function keeps calling itself until n is equal to zero (n == 0) it returns zero and the function stops.