Message from @zay

Discord ID: 809802586890829865


2021-02-12 14:59:07 UTC  

thank you

2021-02-12 14:59:13 UTC  

i’ve been trying for 20 minutes

2021-02-12 15:01:51 UTC  

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

2021-02-12 15:02:07 UTC  

yeah i got that part

2021-02-12 15:02:28 UTC  

it’s just finding the combinations equal to 1000

2021-02-12 15:02:38 UTC  

but there’s only 30 possible combinations

2021-02-12 15:02:43 UTC  

we could try prime factorization

2021-02-12 15:03:06 UTC  

last time i did that was a while ago tbh

2021-02-12 15:03:11 UTC  

i don’t remember how to do that

2021-02-12 15:03:35 UTC  

nvm i remember now

2021-02-12 15:03:59 UTC  

would that work in this situation tho

2021-02-12 15:04:02 UTC  

I don't remember it well

2021-02-12 15:04:34 UTC  

yeah i don’t think that would work

2021-02-12 15:04:35 UTC  

not sure although it might help finding a common factor to add to 1kg

2021-02-12 15:04:44 UTC  

i mean

2021-02-12 15:04:47 UTC  

maybe

2021-02-12 15:05:48 UTC  

if we add up the minimum we get 900g which means we have 100g to go

2021-02-12 15:05:59 UTC  

yeah

2021-02-12 15:06:00 UTC  

so we should find what amount would be added to add up to 100g I think

2021-02-12 15:06:13 UTC  

but there’s only 30 possible combinations

2021-02-12 15:06:22 UTC  

because he only saved for 30 days

2021-02-12 15:07:20 UTC  

we could have 13 50 cents, 1 10 cent and 1 20 cent

2021-02-12 15:07:28 UTC  

I'll see if that adds up to 100g brb

2021-02-12 15:07:52 UTC  

damn it it's 99 g

2021-02-12 15:09:29 UTC  

I think 12 50 cents, 2 20 cent and 2 10 cent would add up to 100g

2021-02-12 15:09:54 UTC  

this seems impossible 😭

2021-02-12 15:10:38 UTC  

not really, we just have to try different possiblilities

2021-02-12 15:10:52 UTC  

although I think we were suppose to use different methods

2021-02-12 15:11:01 UTC  

I'm just seeing the worst and best case sernerio

2021-02-12 15:11:52 UTC  

alrighty

2021-02-12 15:12:15 UTC  

using 12 50 cents, 2 20 cents and 2 10 cents we get 660 extra cents

2021-02-12 15:12:56 UTC  

or 6.60

2021-02-12 15:13:22 UTC  

uh huh, we still have to find the worst case senerio

2021-02-12 15:13:23 UTC  

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.

2021-02-12 15:14:22 UTC  

An additional $6.80 to the minimum.

2021-02-12 15:15:02 UTC  

i’m actually starting to understand it way better

2021-02-12 15:15:05 UTC  

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

2021-02-12 15:15:40 UTC  

For the minimum it will be 30 3g & 2 5g.

2021-02-12 15:15:41 UTC  

oh lol I can't math

2021-02-12 15:16:03 UTC  

yeah I realized I didn't need 50 cents

2021-02-12 15:18:13 UTC  

in other words, the more 50 cents you have the more money you get, less 50 cents the less money you get