human
Central polygonal numbers | Function to find N - th term in the series.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to central polygonal numbers and the other steps required.
 def findNthTerm ( n ) :
	print ( n * n - n + 1 )
N = 4
findNthTerm ( N )