from math import log

g = lambda x : x-(x+1)*(3*x-2+log(x+1))/(3*x+4)

u = 1
v = f(1)

while abs(u-v) > 10**(-12):
    u = v
    v = g(u)
    print(v)
