def suite_u(rang): n = 0 u = 4 while n < rang: n = n + 1 u = 0.5*u+1 return u print(suite_u(1000))