def F(n):
if n==1:
return 1
else:
return F(n-1)-2*G(n-1)
def G(n):
return F(n-1)+2*G(n-1)
print(G(21))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def F(n):
if n==1:
return 1
else:
return F(n-1)-2*G(n-1)
def G(n):
if n==1:
return 1
else:
return F(n-1)+2*G(n-1)
print(G(21))