def terme(n): u=-1 for i in range (n): u=3*u-2 return(u) print(terme(3))
To embed this project on your website, copy the following code and paste it into your website's HTML: