multiplying factorials with variables