human
Program to find the nth Kynea number | Function to calculate nth kynea number.
Firstly calculate 2 ^ n + 1.
Now calculate ( 2 ^ n + 1 ) ^ 2.
Now calculate ( ( 2 ^ n + 1 ) ^ 2 ) - 2.
return nth Kynea number.
Driver Code.
print nth kynea number"
Solution in Python:
 Can you provide a code to program to find the nth Kynea number and the other steps required?
assistant
#Here is code to program to find the nth Kynea number and the other steps required.
 def nthKyneaNumber ( n ) :
	n = ( 1 << n ) + 1
	n = n * n
	n = n - 2
	return n
n = 2
print ( nthKyneaNumber ( n ) )