The Lie algebra L can be given either from its structure constants or from its infinitesimal generator representation.
UpperCentralSeries returns the sequence of ideals C1(L)C2(L) Ci(L) where, Ci+1(L)/Ci(L)=C(L/Ci(L)), i≥1 and C1(L)=C(L) the center of L. The second argument specifies whether a portion or a specific member of the chain will be returned.