human
Sum of the series 1 ^ 1 + 2 ^ 2 + 3 ^ 3 + ... . . + n ^ n using recursion | Recursive function to return the sum of the given series.
1 ^ 1 = 1.
Recursive call.
Driver code"
Solution in Python:
assistant
#Here is code to sum of the series 1 ^ 1 + 2 ^ 2 + 3 ^ 3 + .
 def sum ( n ) :
	if n == 1 :
		return 1
	else :
		return pow ( n , n ) + sum ( n - 1 )
n = 2
print ( sum ( n ) )