from math import *
def somme(n):
    v = log(2)
    S = v
    for i in range(1, n):
        v = log(2 - exp(-v))
        S = S + v
    return S
print (somme(10))

Embed on website

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