Let A=ℝ〈a1,…,an〉 and B=ℝ〈b1,…,bn〉 be the semigroup rings spanned on the right zero semigroup RZn={a1,…,an}, and on the left zero semigroup LZn={b1,…,bn}, respectively, together with the identity element 1. We suggest a closed formula solving the equation w=log(euev) which is the evolution of the Campbell–Baker–Hausdorff formula given by the Hausdorff series
w=H(u,v)=u+v+12[u,v]+112[u,[u,v]]+112[v,[v,u]]+⋯,
where [u,v]=uv−vu, in the algebras A and B.