human
Find nth term of a given recurrence relation | function to return required value.
Get the answer.
Return the answer.
Get the value of n.
function call to prresult"
Solution in Python:
 ... Give me a code to find nth term of a given recurrence relation and the other steps required?
assistant
#Here is code to find nth term of a given recurrence relation and the other steps required.
 def sum ( n ) :
	ans = ( n * ( n - 1 ) ) / 2 ;
	return ans
n = 5
print ( int ( sum ( n ) ) )