This is a little clunky so bear with me.
I've been looking to buy a dowelling jig which, if you don't know, is a woodworking tool that lets you drill dowel holes into a piece of wood.
Some jigs will drill a hole right into the middle of the edge of wood.
But some come with spacers that let you offset that hole.
For example, the dowelmax has spacers that are these thicknesses (in inches): 1/8, 3/8, 6/8, 13/8.
If you need an offset that isn't one of these numbers, then you can combine them. For example, if I want an offset that is 1/2, I can add the 1/8 to the 3/8.
But I can also use subtraction: if I need an offset that is 5/8, I can put the 6/8 on one side and the 1/8 on the other. This is like 6/8-1/8=5/8. Pretty clever.
I worked out all the combinations I could do in a spreadsheet and these are the results:
+--------+------------------------+
| needed | combo |
+--------+------------------------+
| 1/8 | 1/8 |
| 2/8 | 3/8 - 1/8 |
| 3/8 | 3/8 |
| 4/8 | 1/8 + 3/8 |
| 5/8 | 6/8 - 1/8 |
| 6/8 | 6/8 |
| 7/8 | 6/8 + 1/8 |
| 8/8 | 13/8 + 1/8 - 6/8 |
| 9/8 | 6/8 + 3/8 |
| 10/8 | 1/8 + 3/8 + 6/8 |
| 11/8 | 13/8 - 3/8 + 1/8 |
| 12/8 | 13/8 - 1/8 |
| 13/8 | 13/8 |
| 14/8 | 13/8 + 1/8 |
| 15/8 | 13/8 + 3/8 - 1/8 |
| 16/8 | 13/8 + 3/8 |
| 17/8 | 13/8 + 3/8 + 1/8 |
| 18/8 | 13/8 + 6/8 - 1/8 |
| 19/8 | 13/8 + 6/8 |
| 20/8 | 13/8 + 6/8 + 1/8 |
| 21/8 | 13/8 + 6/8 + 3/8 - 1/8 |
| 22/8 | 13/8 + 6/8 + 3/8 |
| 23/8 | 13/8 + 6/8 + 3/8 + 1/8 |
+--------+------------------------+
My main question is: Is there a name for this sort of thing?
Also, Are there other choices of numbers other than 1, 3, 6, 13, that would do this?
The only thing I thought of that was perhaps related was denominations of coins. For that, in the UK there's 1, 2, 5, 10, 20, 50, 100, 200. The US uses 1, 5, 10, 25, 50, 100. These can be combined but you'd need large multiples of each since you can't subtract.
(I suppose the goal is to have few spacers, simple combinations, and a full span of combinations from 1/8 to the sum of all spacers. Is 1, 3, 6, 13 the best way?)
I did some scribbling to find other combinations, and I found that if you had just 1/8, 3/8, and 9/8, you can already make combinations from 1/8 to 13/8.
$$\left(x^{-1}+1+x\right)+\left(x^{-3}+1+x^3\right)\left(x^{-6}+1+x^6\right)\left(x^{-13}+1+x^{13}\right);. $$
If you let Wolfram|Alpha multiply it out for you, you can see (under "Alternate forms") that all the powers of $x$ from $1$ to $23$ are in the product.
– joriki Mar 18 '22 at 15:45