Message from @zay
Discord ID: 809802586890829865
thank you
i’ve been trying for 20 minutes
at the minimum he would have to put 30 g worth of coins if you add up the weight of 10,50, and 20 cent coins
yeah i got that part
it’s just finding the combinations equal to 1000
but there’s only 30 possible combinations
we could try prime factorization
last time i did that was a while ago tbh
i don’t remember how to do that
nvm i remember now
would that work in this situation tho
I don't remember it well
yeah i don’t think that would work
not sure although it might help finding a common factor to add to 1kg
i mean
maybe
if we add up the minimum we get 900g which means we have 100g to go
yeah
so we should find what amount would be added to add up to 100g I think
but there’s only 30 possible combinations
we could have 13 50 cents, 1 10 cent and 1 20 cent
I'll see if that adds up to 100g brb
damn it it's 99 g
I think 12 50 cents, 2 20 cent and 2 10 cent would add up to 100g
this seems impossible 😭
not really, we just have to try different possiblilities
although I think we were suppose to use different methods
I'm just seeing the worst and best case sernerio
alrighty
using 12 50 cents, 2 20 cents and 2 10 cents we get 660 extra cents
or 6.60
uh huh, we still have to find the worst case senerio
So the way to write it is
1000g = 7gF + 5gTW+ 3gTN
You know he adds at least two of each every day.
420 50c
300 20c
180 10c
900c to cover.
100g=7F+5TW+3TN
To maximize start by testing 7. 7 goes into 100 14 times with a remainder of two, but we need more room to work, so bump it down to 13. 7*13 gives us 91, with can then be made to 100 by adding 3 10c.
An additional $6.80 to the minimum.
i’m actually starting to understand it way better
so I tested with the least 50 cents and found that 10 20 cents and 10 10 cents and 4 50 cents adds up to 100g
For the minimum it will be 30 3g & 2 5g.
oh lol I can't math
yeah I realized I didn't need 50 cents
in other words, the more 50 cents you have the more money you get, less 50 cents the less money you get