from math import sqrt def u(n): for k in range(n+1): u = sqrt(2*k+4) print(u)