n = 0 # initialisation while 1 / (n**2 + n + 1) > 10**(-6): n = n+1 # incrémentation print(n)