human
Program to find Nth odd Fibonacci Number | Function to find nth odd fibonacci number.
Driver Code"
Solution in Python:
assistant
#Here is code to program to find Nth odd Fibonacci Number and the other steps required.
 def oddFib ( n ) :
	n = ( 3 * n + 1 ) // 2
	a = - 1
	b = 1
	c = 0
	for i in range ( 1 , n + 1 ) :
		c = a + b
		a = b
		b = c
	return c
n = 4
print ( oddFib ( n ) )