def suite (n):
    L=[]
    u=3
    for i in range (1,n+2):
        L=L+[u]
        u=-4*u+5
    return(L)

print(suite(5))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: