human
Number of cycles formed by joining vertices of n sided polygon at the center | Function to calculate number of cycles.
BigInteger is used here if N = 10 ^ 9 then multiply will result into value greater than 10 ^ 18.
BigInteger multiply function.
Return the final result.
Driver Code.
Given N.
Function Call"
How can the above be solved in Python?
assistant
#Here is code to number of cycles formed by joining vertices of n sided polygon at the center and the other steps required.
 def findCycles ( N ) :
	res = 0
	finalResult = 0
	val = 2 * N - 1 ;
	s = val
	res = ( N - 1 ) * ( N - 2 )
	finalResult = res + s ;
	return finalResult ;
if __name__ == ' _ _ main _ _ ' :
	N = 5 ;
	print ( findCycles ( N ) ) ;