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}$ ?
$\newcommand{\g}{\mathfrak g}$ $C_{\g}(K) \subset \g$ so it's enough to find $n$ with $C_{\g}(K) \nsubseteq \g^n$. On the other hand $K$ is not abelian (else $\g$ would be abelian) so $C_{\g}(K)$ is not trival but $\g$ is nilpotent so there is $m$ with $\g^m = 0$.