subject

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. for example, 4 = 1+1+1+1 is not acceptable.

for example,
8 = 9 - 1
10 = 1 + 9

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:10
Which are not examples of chronic or persistent stress? moving
Answers: 1
question
Computers and Technology, 22.06.2019 12:00
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
You know the right answer?
Given a set of weights {1,3,9,27}, show that you can construct any number between 1 and 40. in other...
Questions
question
Mathematics, 02.02.2020 19:01
question
Biology, 02.02.2020 19:01
question
Mathematics, 02.02.2020 19:01
question
Mathematics, 02.02.2020 19:01
question
Mathematics, 02.02.2020 19:01
Questions on the website: 13722362