1
def fRecursivo(n):
if(n == 0 ):
return 1
if (n%2 ==1):
return (n+3*fRecursivo(n-1))
if(n%2 == 0 and n> 0):
return (n+n+3*n*fRecursivo(n-1))
How complex is the code for even numbers ? In the case when the line is called:
return (n+n+3*n*fRecursivo(n-1))