import math
def fibonacci_closed_form(n):
phi = (1 + math.sqrt(5)) / 2
return round((phi**n - (-1/phi)**n) / math.sqrt(5))
# Define the number of Fibonacci numbers you want to print
num_terms = 5
# Print the Fibonacci sequence
for i in range(num_terms):
print(fibonacci_closed_form(i))
#clcoding.com