If $\frak{g}$ is a nilpotent Lie algebra there exists an ideal $K$ of $\frak{g}$ of codimension 1 such that $\frak{g}$ = $K + x\mathbb{F}$.
How can I prove that there exists an $n_{0}\in\mathbb{N}$ such that
$C_{\frak{g}}(K)\subseteq \frak{g}^{n_{0}}$ and $C_{\frak{g}}(K)\nsubseteq\frak{g}^{n_{0}+1}$ ?