def algo_3(n): u=1/2 L=[u] for i in range(n): u=2*u/(1+u) L.append(u) return L