I'm trying to prove that if $ K$ is a field and $ I $ is a monomial ideal in $ K[x_1, \dots, x_n] $, then
$$\sqrt{I} = I \iff I ~\text{is generated by square-free monomials}$$
So I tried to do the ,,$ \Rightarrow"$ by contradiction:
suppose $ x_1^{q_1} \dots x_k^2 \dots x_n^{q_n} $ is one of the generators of $I$. Somehow this should lead to the fact that there exists some $ f \in K[x_1, \dots, x_n], f \notin I $ and $ n\in\mathbb{N} $ such that $ f^n \in I $, but I can't see how? Maybe $ f=x_1^{q_1} \dots x_k \dots x_n^{q_n} $ and $ n = 2 $, but how do I prove $ f\notin I $?