In this problem you need to verify weights using a balance scale. To verify a range of weights varying from 0-infinity, you need to purchase weights to balance the scale.
There are two methods:
The first method allows you to only put weights on one side of the scale. You can of course add weights together, but you cannot place weights with the object you are trying to verify (therefore, i am limited to addition)
I have found that the weights needed fall neatly into 2^X. (So if i have a 4 pound weight, i can weight up to seven pounds (2x - 1)
I have a whole table of values, but it wont post here. I cant seem to get a correct formula, i can find any value, but i cant express it.
Weight to Verify---Combo of weights --- Number of weights
1---------------- - ----------- 1 --------------- 1
2 ----------------- ------------- 2 ---------------- 2
3 ---------------- ----------- 2 + 1 --------------- 2
4 ---------------- ----------- 4 ---------------- 3
5 ---------------- ---------- 4 + 1 ----------------- 3
6 -------------- ----------- 4 + 2 ---------------- -- 3
7 --------------- ---------- 4 + 2 + 1 ---------------- 3
8---------------- ---------- 8 --- ------------------ 4
9------------------ ------------ 8 + 1 ------------------ 4
10--------------- ---------- 8 + 2 ------------------ 4
This pattern continues. What i need to find, is for what weight i need to verify, how many weights i will need. (Column 1 and 3)
Method 2:
You can put weights on both sides, allowing subtraction. I have found this fits 3^x.
Can someone please help me arrive at a formula? If i find the first one, I'm sure i can arrive at one for method 2 similarly .
Thank you for all the help.
There are two methods:
The first method allows you to only put weights on one side of the scale. You can of course add weights together, but you cannot place weights with the object you are trying to verify (therefore, i am limited to addition)
I have found that the weights needed fall neatly into 2^X. (So if i have a 4 pound weight, i can weight up to seven pounds (2x - 1)
I have a whole table of values, but it wont post here. I cant seem to get a correct formula, i can find any value, but i cant express it.
Weight to Verify---Combo of weights --- Number of weights
1---------------- - ----------- 1 --------------- 1
2 ----------------- ------------- 2 ---------------- 2
3 ---------------- ----------- 2 + 1 --------------- 2
4 ---------------- ----------- 4 ---------------- 3
5 ---------------- ---------- 4 + 1 ----------------- 3
6 -------------- ----------- 4 + 2 ---------------- -- 3
7 --------------- ---------- 4 + 2 + 1 ---------------- 3
8---------------- ---------- 8 --- ------------------ 4
9------------------ ------------ 8 + 1 ------------------ 4
10--------------- ---------- 8 + 2 ------------------ 4
This pattern continues. What i need to find, is for what weight i need to verify, how many weights i will need. (Column 1 and 3)
Method 2:
You can put weights on both sides, allowing subtraction. I have found this fits 3^x.
Can someone please help me arrive at a formula? If i find the first one, I'm sure i can arrive at one for method 2 similarly .
Thank you for all the help.