math.factorials: handle more inputs in factorial/.