how to simplify factorial expression