Given a set of weights {1,3,9,27}, show that you can construct any number between 1 and 40. In other words, using the set above and the addition and subtraction operations, construct any integer between 1 and 40 without re-using elements.
Answers (1)