Weight scale reflection

The first connection I made to this problem was that I most likely would not discover a formula that would work, yet I figured there would be a pattern that should be able to be written as a formula. That being said, the first problem was of higher complexity given that you could use both scales to get from 1-40 so I tried guess and check. I actually started working my way back and forth by increasing from 1 and decreasing from 40. Obviously, we needed a 1. Then for 2 either we would have to pick a 2 or we could use a 3. Given that we can use both scales I think it would be more beneficial to use the 3 since it would also satisfy the next term and we can generate 2 from 3-1. At this point I looked at 40 and thought about two options, first 30 & 6 and then 27 & 9. The reason 30 & 6 failed is because I realized that the gap was significant so while it works for numbers close to 40, it fails late teen numbers (like 19) since 30 - (6 + 3 + 1) only gives 20. So then I conti...