N=40 x=-5.0/14 print x for n in range(N): x=3.0*x+5**(-n) print x