def newton(n): x=3 L=[3] for k in range(n): x=(2*x**3+5)/(3*x**2-2) L=L+[x] return(L)