152. This problem has many constraints and no normal mathematical solution, so I wrote a python script:
nums = range(1, 10)
results = set()
for vector in range(1, 1 << 9):
multiple = 1
for i, n in enumerate(nums):
if (1 << i) & vector:
multiple *= n
results.add(multiple)
print len(results), results
152. This problem has many constraints and no normal mathematical solution, so I wrote a python script:
Result: