When quotient of a polynomial or power series ring by a monomial ideal is half-factorial | Synapse