Is there an easy way to determine if some combination of addition, subtraction, multiplication, and division will enable the numbers in a set to equal a given number?
For example, if I have the numbers $[6, 6, 4, 3, 1]$ and I want to determine if the number $41$ can be arrived at by operations performed on them how would I go about determining that. (This case can be solved by $((6 + 6) \cdot {3}) + 4 + 1 = 41$, I'm looking for a general way to solve this problem for a program I'm writing).