The general formula of quaternary ammonium compound is