solved factors and factorials