2019 gold coins to shareFilling up 100 coins in 10 bagsThe Devil's BrotherLots of Gold Stacks and a Balance ScaleLots of Gold Golden Coins and a ScaleBest strategy to get all heads/tails from three coinsMike's Coin Duplicator99 chips into more chips99 chips into more chips V2Maximize gold bars33 stones into gold transmuter

Has there been a multiethnic Star Trek character?

Amplitude of a crest and trough in a sound wave?

Possible runaway argument using circuitikz

Why do radiation hardened IC packages often have long leads?

tabular: caption and align problem

Can we completely replace inheritance using strategy pattern and dependency injection?

What is the logic behind charging tax _in the form of money_ for owning property when the property does not produce money?

Why is Na5 not played in this line of the French Defense, Advance Variation?

2019 gold coins to share

How does the Around command at zero work?

What do the pair of vertical lines in empirical entropy formula mean?

Is it okay to have a sequel start immediately after the end of the first book?

Ability To Change Root User Password (Vulnerability?)

Who voices the small round football sized demon In Good Omens

What is the polarity of this barrel plug with a double circle?

With Ubuntu 18.04, how can I have a hot corner that locks the computer?

Proving that a Russian cryptographic standard is too structured

Should I refuse to be named as co-author of a low quality paper?

How to publish items after pipeline is finished?

Can the removal of a duty-free sales trolley result in a measurable reduction in emissions?

Write a function that checks if a string starts with or contains something

How can I remove material from this wood beam?

How creative should the DM let an artificer be in terms of what they can build?

How to safely destroy (a large quantity of) valid checks?



2019 gold coins to share


Filling up 100 coins in 10 bagsThe Devil's BrotherLots of Gold Stacks and a Balance ScaleLots of Gold Golden Coins and a ScaleBest strategy to get all heads/tails from three coinsMike's Coin Duplicator99 chips into more chips99 chips into more chips V2Maximize gold bars33 stones into gold transmuter













4












$begingroup$


You and your friend has found in total 2019 gold coins in a treasure hunt. Since your friend found to place to dig up, you offer a game to share the coins to him:



"We have 2019 coins, I will put as many of the coins as I want into a bag and you will see how many coins I place inside. Every time I have finished putting coins into a bag, you will (based on the number of coins in the bag) determine whether or not you want that bag. If you don't want that bag, I will take it. Then I will start putting coins into another bag and so on...



After one of us has 13 bags in total, we will stop playing the game, and the rest of the coins will be given to whomever doesn't have 13 bags."



Your friend likes the game and accept the offer. He thinks this is a fair game to share the coins.




At least how many gold coins can you guarantee to win at the end of this game?




for example: you put 50 coins in the first bag then your friend decides not to take that bag, after that you decide to put 100 coins into another bag, this time your friend decides to take that bag... etc.










share|improve this question











$endgroup$











  • $begingroup$
    I find the wording a bit confusing, could you clarify a couple of things: 1: Do I fill the bags one-by-one or all at once? 2: Do you get to know in advance how many coins I'm going to put into each bag? 3: If more than one bag is getting filled at the same time, which one of them do you get to choose for you or me? 4: How does the "knowing how many golds inside" thing affect the result? You saw every coin that was put into the bags, so you know exactly how many coins there are.
    $endgroup$
    – Bass
    7 hours ago











  • $begingroup$
    @bass 1: one by one, 2: yes i said in the text actually everybody knows how many coins in each bag,
    $endgroup$
    – Oray
    7 hours ago










  • $begingroup$
    Why was this downvoted? Seems like a nice puzzle to me...Perhaps it was because the wording was a little confusing? I'll try an edit.
    $endgroup$
    – Brandon_J
    7 hours ago
















4












$begingroup$


You and your friend has found in total 2019 gold coins in a treasure hunt. Since your friend found to place to dig up, you offer a game to share the coins to him:



"We have 2019 coins, I will put as many of the coins as I want into a bag and you will see how many coins I place inside. Every time I have finished putting coins into a bag, you will (based on the number of coins in the bag) determine whether or not you want that bag. If you don't want that bag, I will take it. Then I will start putting coins into another bag and so on...



After one of us has 13 bags in total, we will stop playing the game, and the rest of the coins will be given to whomever doesn't have 13 bags."



Your friend likes the game and accept the offer. He thinks this is a fair game to share the coins.




At least how many gold coins can you guarantee to win at the end of this game?




for example: you put 50 coins in the first bag then your friend decides not to take that bag, after that you decide to put 100 coins into another bag, this time your friend decides to take that bag... etc.










share|improve this question











$endgroup$











  • $begingroup$
    I find the wording a bit confusing, could you clarify a couple of things: 1: Do I fill the bags one-by-one or all at once? 2: Do you get to know in advance how many coins I'm going to put into each bag? 3: If more than one bag is getting filled at the same time, which one of them do you get to choose for you or me? 4: How does the "knowing how many golds inside" thing affect the result? You saw every coin that was put into the bags, so you know exactly how many coins there are.
    $endgroup$
    – Bass
    7 hours ago











  • $begingroup$
    @bass 1: one by one, 2: yes i said in the text actually everybody knows how many coins in each bag,
    $endgroup$
    – Oray
    7 hours ago










  • $begingroup$
    Why was this downvoted? Seems like a nice puzzle to me...Perhaps it was because the wording was a little confusing? I'll try an edit.
    $endgroup$
    – Brandon_J
    7 hours ago














4












4








4





$begingroup$


You and your friend has found in total 2019 gold coins in a treasure hunt. Since your friend found to place to dig up, you offer a game to share the coins to him:



"We have 2019 coins, I will put as many of the coins as I want into a bag and you will see how many coins I place inside. Every time I have finished putting coins into a bag, you will (based on the number of coins in the bag) determine whether or not you want that bag. If you don't want that bag, I will take it. Then I will start putting coins into another bag and so on...



After one of us has 13 bags in total, we will stop playing the game, and the rest of the coins will be given to whomever doesn't have 13 bags."



Your friend likes the game and accept the offer. He thinks this is a fair game to share the coins.




At least how many gold coins can you guarantee to win at the end of this game?




for example: you put 50 coins in the first bag then your friend decides not to take that bag, after that you decide to put 100 coins into another bag, this time your friend decides to take that bag... etc.










share|improve this question











$endgroup$




You and your friend has found in total 2019 gold coins in a treasure hunt. Since your friend found to place to dig up, you offer a game to share the coins to him:



"We have 2019 coins, I will put as many of the coins as I want into a bag and you will see how many coins I place inside. Every time I have finished putting coins into a bag, you will (based on the number of coins in the bag) determine whether or not you want that bag. If you don't want that bag, I will take it. Then I will start putting coins into another bag and so on...



After one of us has 13 bags in total, we will stop playing the game, and the rest of the coins will be given to whomever doesn't have 13 bags."



Your friend likes the game and accept the offer. He thinks this is a fair game to share the coins.




At least how many gold coins can you guarantee to win at the end of this game?




for example: you put 50 coins in the first bag then your friend decides not to take that bag, after that you decide to put 100 coins into another bag, this time your friend decides to take that bag... etc.







mathematics strategy optimization game-theory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 7 hours ago









Brandon_J

4,729551




4,729551










asked 8 hours ago









OrayOray

16.5k438164




16.5k438164











  • $begingroup$
    I find the wording a bit confusing, could you clarify a couple of things: 1: Do I fill the bags one-by-one or all at once? 2: Do you get to know in advance how many coins I'm going to put into each bag? 3: If more than one bag is getting filled at the same time, which one of them do you get to choose for you or me? 4: How does the "knowing how many golds inside" thing affect the result? You saw every coin that was put into the bags, so you know exactly how many coins there are.
    $endgroup$
    – Bass
    7 hours ago











  • $begingroup$
    @bass 1: one by one, 2: yes i said in the text actually everybody knows how many coins in each bag,
    $endgroup$
    – Oray
    7 hours ago










  • $begingroup$
    Why was this downvoted? Seems like a nice puzzle to me...Perhaps it was because the wording was a little confusing? I'll try an edit.
    $endgroup$
    – Brandon_J
    7 hours ago

















  • $begingroup$
    I find the wording a bit confusing, could you clarify a couple of things: 1: Do I fill the bags one-by-one or all at once? 2: Do you get to know in advance how many coins I'm going to put into each bag? 3: If more than one bag is getting filled at the same time, which one of them do you get to choose for you or me? 4: How does the "knowing how many golds inside" thing affect the result? You saw every coin that was put into the bags, so you know exactly how many coins there are.
    $endgroup$
    – Bass
    7 hours ago











  • $begingroup$
    @bass 1: one by one, 2: yes i said in the text actually everybody knows how many coins in each bag,
    $endgroup$
    – Oray
    7 hours ago










  • $begingroup$
    Why was this downvoted? Seems like a nice puzzle to me...Perhaps it was because the wording was a little confusing? I'll try an edit.
    $endgroup$
    – Brandon_J
    7 hours ago
















$begingroup$
I find the wording a bit confusing, could you clarify a couple of things: 1: Do I fill the bags one-by-one or all at once? 2: Do you get to know in advance how many coins I'm going to put into each bag? 3: If more than one bag is getting filled at the same time, which one of them do you get to choose for you or me? 4: How does the "knowing how many golds inside" thing affect the result? You saw every coin that was put into the bags, so you know exactly how many coins there are.
$endgroup$
– Bass
7 hours ago





$begingroup$
I find the wording a bit confusing, could you clarify a couple of things: 1: Do I fill the bags one-by-one or all at once? 2: Do you get to know in advance how many coins I'm going to put into each bag? 3: If more than one bag is getting filled at the same time, which one of them do you get to choose for you or me? 4: How does the "knowing how many golds inside" thing affect the result? You saw every coin that was put into the bags, so you know exactly how many coins there are.
$endgroup$
– Bass
7 hours ago













$begingroup$
@bass 1: one by one, 2: yes i said in the text actually everybody knows how many coins in each bag,
$endgroup$
– Oray
7 hours ago




$begingroup$
@bass 1: one by one, 2: yes i said in the text actually everybody knows how many coins in each bag,
$endgroup$
– Oray
7 hours ago












$begingroup$
Why was this downvoted? Seems like a nice puzzle to me...Perhaps it was because the wording was a little confusing? I'll try an edit.
$endgroup$
– Brandon_J
7 hours ago





$begingroup$
Why was this downvoted? Seems like a nice puzzle to me...Perhaps it was because the wording was a little confusing? I'll try an edit.
$endgroup$
– Brandon_J
7 hours ago











2 Answers
2






active

oldest

votes


















4












$begingroup$

I can ensure that I receive at least




1005 coins.






To get this amount of coins, I could apply the following strategy:




I put 78 coins in each bag. Now if I get 13 bags earlier than my friend, then I have $13 cdot 78 = 1014$ coins,. If my friend however takes 13 bags, then he has 1014 coins, and I get the 1005 remaining coins.




My friend can also ensure that I do not get more coins than this in the following way:




He can take any bag with at least 78 coins, and return any bag with at most 77 coins. Now if I get 13 bags earlier than him, this means that I get at most $13 cdot 77 = 1001$ coins. But if he get 13 bags earlier than me, he gets at least $13 cdot 78 = 1014$ coins, and I get at most $2019-1014 = 1005$ coins.






So it appears that I should have chosen a fairer game to distribute the coins...






share|improve this answer









$endgroup$












  • $begingroup$
    Looks like we arrived at the same conclusion, but in slightly different ways. You did get there first, of course, so congrats!
    $endgroup$
    – Brandon_J
    7 hours ago










  • $begingroup$
    @Brandon_J I found the threshold in the friends strategy by dividing by 26 instead of 25, since he wants to get at least half of the coins when he takes 13 of the bags.
    $endgroup$
    – Reinier
    7 hours ago










  • $begingroup$
    Ah - that explains why you got there faster.
    $endgroup$
    – Brandon_J
    7 hours ago










  • $begingroup$
    You can actually generalize this approach to work for $n$ coins and stopping at $k$ bags: then we put $fracn2k$ coins rounded to the nearest integer in each bag, and our friend only takes bags with at least $fracn2k$ coins.
    $endgroup$
    – Reinier
    7 hours ago


















2












$begingroup$

A note: @Reinier, besides having an awesome palindromic username, also solved this puzzle first (my solve was still independent). I like my explanation better (but of course I'm biased), but if you upvote my answer, don't forget to upvote Reinier's as well.




So, it's somewhat apparent that we need to find




the optimal strategy (for us) in the worst-case scenario (our friend tries to get as many coins as he can).




Here's my basic strategy:




The maximum number of bags that may be filled is 25. This is because the game ends when one person gains 13 bags. Consequently, if we divide all the coins equally among the bags, then the worst we can get is 12/25 of the loot. Of course, we can't quite divide them equally, so we will fill 6 of them with 80 coins, and 19 of them with 81 coins.




When we present each bag to our friend,




The best-case scenario for him/her is to gather 13 of the 19 81-coin bags. This leaves us with $81 * 6 + 80 *6 = 966$ coins to his $31 * 81 = 1,053$.




Essentially, the friend's strategy is to




keep any bag with more than 80 coins, and give us any bag with 80 coins or less.




There is, of course, a slight work-around that can get us a liiiitle bit more.



If we present a continual stream of




80-coin bags, then the friend's best bet is to give us the first 12 bags, but then give himself the rest of the bags. This improves things a little bit - our friend only gets $1,040$ coins, and we get $979$.




What if we present a continual stream of




79-coin bags? The best our friend can get is $1,027$, and we get $998$ That's even better!




What if we present a continual stream of




78-coin bags? The best our friend can get is $1,014$, and we get $1,005$ That's even better!




What if we present a continual stream of




77-coin bags? The best our friend can get is $1,024$, and this is if he gives us all 13 of the 77-coin bags. Previously, he ended up giving himself all of the bags, so it looks like the highest point we can reach is with 78-coin bags.




So, the altered strategy of our friend is to




keep any bag with more than 77 coins. $13*78$ coins gives him a majority of the coins, while $13*77$ coins gives him a minority of the coins.




We can infer that we can do no better than




78-coin bags




because




Every bag must be above, below, or at 78 coins. If we present to our friend bags with less than 78 coins, he gives them to us, and we're playing a non-optimal strategy. If we present him with more, he goes ahead and takes it, increasing his potential winnings.







share|improve this answer











$endgroup$













    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "559"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f84823%2f2019-gold-coins-to-share%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4












    $begingroup$

    I can ensure that I receive at least




    1005 coins.






    To get this amount of coins, I could apply the following strategy:




    I put 78 coins in each bag. Now if I get 13 bags earlier than my friend, then I have $13 cdot 78 = 1014$ coins,. If my friend however takes 13 bags, then he has 1014 coins, and I get the 1005 remaining coins.




    My friend can also ensure that I do not get more coins than this in the following way:




    He can take any bag with at least 78 coins, and return any bag with at most 77 coins. Now if I get 13 bags earlier than him, this means that I get at most $13 cdot 77 = 1001$ coins. But if he get 13 bags earlier than me, he gets at least $13 cdot 78 = 1014$ coins, and I get at most $2019-1014 = 1005$ coins.






    So it appears that I should have chosen a fairer game to distribute the coins...






    share|improve this answer









    $endgroup$












    • $begingroup$
      Looks like we arrived at the same conclusion, but in slightly different ways. You did get there first, of course, so congrats!
      $endgroup$
      – Brandon_J
      7 hours ago










    • $begingroup$
      @Brandon_J I found the threshold in the friends strategy by dividing by 26 instead of 25, since he wants to get at least half of the coins when he takes 13 of the bags.
      $endgroup$
      – Reinier
      7 hours ago










    • $begingroup$
      Ah - that explains why you got there faster.
      $endgroup$
      – Brandon_J
      7 hours ago










    • $begingroup$
      You can actually generalize this approach to work for $n$ coins and stopping at $k$ bags: then we put $fracn2k$ coins rounded to the nearest integer in each bag, and our friend only takes bags with at least $fracn2k$ coins.
      $endgroup$
      – Reinier
      7 hours ago















    4












    $begingroup$

    I can ensure that I receive at least




    1005 coins.






    To get this amount of coins, I could apply the following strategy:




    I put 78 coins in each bag. Now if I get 13 bags earlier than my friend, then I have $13 cdot 78 = 1014$ coins,. If my friend however takes 13 bags, then he has 1014 coins, and I get the 1005 remaining coins.




    My friend can also ensure that I do not get more coins than this in the following way:




    He can take any bag with at least 78 coins, and return any bag with at most 77 coins. Now if I get 13 bags earlier than him, this means that I get at most $13 cdot 77 = 1001$ coins. But if he get 13 bags earlier than me, he gets at least $13 cdot 78 = 1014$ coins, and I get at most $2019-1014 = 1005$ coins.






    So it appears that I should have chosen a fairer game to distribute the coins...






    share|improve this answer









    $endgroup$












    • $begingroup$
      Looks like we arrived at the same conclusion, but in slightly different ways. You did get there first, of course, so congrats!
      $endgroup$
      – Brandon_J
      7 hours ago










    • $begingroup$
      @Brandon_J I found the threshold in the friends strategy by dividing by 26 instead of 25, since he wants to get at least half of the coins when he takes 13 of the bags.
      $endgroup$
      – Reinier
      7 hours ago










    • $begingroup$
      Ah - that explains why you got there faster.
      $endgroup$
      – Brandon_J
      7 hours ago










    • $begingroup$
      You can actually generalize this approach to work for $n$ coins and stopping at $k$ bags: then we put $fracn2k$ coins rounded to the nearest integer in each bag, and our friend only takes bags with at least $fracn2k$ coins.
      $endgroup$
      – Reinier
      7 hours ago













    4












    4








    4





    $begingroup$

    I can ensure that I receive at least




    1005 coins.






    To get this amount of coins, I could apply the following strategy:




    I put 78 coins in each bag. Now if I get 13 bags earlier than my friend, then I have $13 cdot 78 = 1014$ coins,. If my friend however takes 13 bags, then he has 1014 coins, and I get the 1005 remaining coins.




    My friend can also ensure that I do not get more coins than this in the following way:




    He can take any bag with at least 78 coins, and return any bag with at most 77 coins. Now if I get 13 bags earlier than him, this means that I get at most $13 cdot 77 = 1001$ coins. But if he get 13 bags earlier than me, he gets at least $13 cdot 78 = 1014$ coins, and I get at most $2019-1014 = 1005$ coins.






    So it appears that I should have chosen a fairer game to distribute the coins...






    share|improve this answer









    $endgroup$



    I can ensure that I receive at least




    1005 coins.






    To get this amount of coins, I could apply the following strategy:




    I put 78 coins in each bag. Now if I get 13 bags earlier than my friend, then I have $13 cdot 78 = 1014$ coins,. If my friend however takes 13 bags, then he has 1014 coins, and I get the 1005 remaining coins.




    My friend can also ensure that I do not get more coins than this in the following way:




    He can take any bag with at least 78 coins, and return any bag with at most 77 coins. Now if I get 13 bags earlier than him, this means that I get at most $13 cdot 77 = 1001$ coins. But if he get 13 bags earlier than me, he gets at least $13 cdot 78 = 1014$ coins, and I get at most $2019-1014 = 1005$ coins.






    So it appears that I should have chosen a fairer game to distribute the coins...







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 7 hours ago









    ReinierReinier

    2,550819




    2,550819











    • $begingroup$
      Looks like we arrived at the same conclusion, but in slightly different ways. You did get there first, of course, so congrats!
      $endgroup$
      – Brandon_J
      7 hours ago










    • $begingroup$
      @Brandon_J I found the threshold in the friends strategy by dividing by 26 instead of 25, since he wants to get at least half of the coins when he takes 13 of the bags.
      $endgroup$
      – Reinier
      7 hours ago










    • $begingroup$
      Ah - that explains why you got there faster.
      $endgroup$
      – Brandon_J
      7 hours ago










    • $begingroup$
      You can actually generalize this approach to work for $n$ coins and stopping at $k$ bags: then we put $fracn2k$ coins rounded to the nearest integer in each bag, and our friend only takes bags with at least $fracn2k$ coins.
      $endgroup$
      – Reinier
      7 hours ago
















    • $begingroup$
      Looks like we arrived at the same conclusion, but in slightly different ways. You did get there first, of course, so congrats!
      $endgroup$
      – Brandon_J
      7 hours ago










    • $begingroup$
      @Brandon_J I found the threshold in the friends strategy by dividing by 26 instead of 25, since he wants to get at least half of the coins when he takes 13 of the bags.
      $endgroup$
      – Reinier
      7 hours ago










    • $begingroup$
      Ah - that explains why you got there faster.
      $endgroup$
      – Brandon_J
      7 hours ago










    • $begingroup$
      You can actually generalize this approach to work for $n$ coins and stopping at $k$ bags: then we put $fracn2k$ coins rounded to the nearest integer in each bag, and our friend only takes bags with at least $fracn2k$ coins.
      $endgroup$
      – Reinier
      7 hours ago















    $begingroup$
    Looks like we arrived at the same conclusion, but in slightly different ways. You did get there first, of course, so congrats!
    $endgroup$
    – Brandon_J
    7 hours ago




    $begingroup$
    Looks like we arrived at the same conclusion, but in slightly different ways. You did get there first, of course, so congrats!
    $endgroup$
    – Brandon_J
    7 hours ago












    $begingroup$
    @Brandon_J I found the threshold in the friends strategy by dividing by 26 instead of 25, since he wants to get at least half of the coins when he takes 13 of the bags.
    $endgroup$
    – Reinier
    7 hours ago




    $begingroup$
    @Brandon_J I found the threshold in the friends strategy by dividing by 26 instead of 25, since he wants to get at least half of the coins when he takes 13 of the bags.
    $endgroup$
    – Reinier
    7 hours ago












    $begingroup$
    Ah - that explains why you got there faster.
    $endgroup$
    – Brandon_J
    7 hours ago




    $begingroup$
    Ah - that explains why you got there faster.
    $endgroup$
    – Brandon_J
    7 hours ago












    $begingroup$
    You can actually generalize this approach to work for $n$ coins and stopping at $k$ bags: then we put $fracn2k$ coins rounded to the nearest integer in each bag, and our friend only takes bags with at least $fracn2k$ coins.
    $endgroup$
    – Reinier
    7 hours ago




    $begingroup$
    You can actually generalize this approach to work for $n$ coins and stopping at $k$ bags: then we put $fracn2k$ coins rounded to the nearest integer in each bag, and our friend only takes bags with at least $fracn2k$ coins.
    $endgroup$
    – Reinier
    7 hours ago











    2












    $begingroup$

    A note: @Reinier, besides having an awesome palindromic username, also solved this puzzle first (my solve was still independent). I like my explanation better (but of course I'm biased), but if you upvote my answer, don't forget to upvote Reinier's as well.




    So, it's somewhat apparent that we need to find




    the optimal strategy (for us) in the worst-case scenario (our friend tries to get as many coins as he can).




    Here's my basic strategy:




    The maximum number of bags that may be filled is 25. This is because the game ends when one person gains 13 bags. Consequently, if we divide all the coins equally among the bags, then the worst we can get is 12/25 of the loot. Of course, we can't quite divide them equally, so we will fill 6 of them with 80 coins, and 19 of them with 81 coins.




    When we present each bag to our friend,




    The best-case scenario for him/her is to gather 13 of the 19 81-coin bags. This leaves us with $81 * 6 + 80 *6 = 966$ coins to his $31 * 81 = 1,053$.




    Essentially, the friend's strategy is to




    keep any bag with more than 80 coins, and give us any bag with 80 coins or less.




    There is, of course, a slight work-around that can get us a liiiitle bit more.



    If we present a continual stream of




    80-coin bags, then the friend's best bet is to give us the first 12 bags, but then give himself the rest of the bags. This improves things a little bit - our friend only gets $1,040$ coins, and we get $979$.




    What if we present a continual stream of




    79-coin bags? The best our friend can get is $1,027$, and we get $998$ That's even better!




    What if we present a continual stream of




    78-coin bags? The best our friend can get is $1,014$, and we get $1,005$ That's even better!




    What if we present a continual stream of




    77-coin bags? The best our friend can get is $1,024$, and this is if he gives us all 13 of the 77-coin bags. Previously, he ended up giving himself all of the bags, so it looks like the highest point we can reach is with 78-coin bags.




    So, the altered strategy of our friend is to




    keep any bag with more than 77 coins. $13*78$ coins gives him a majority of the coins, while $13*77$ coins gives him a minority of the coins.




    We can infer that we can do no better than




    78-coin bags




    because




    Every bag must be above, below, or at 78 coins. If we present to our friend bags with less than 78 coins, he gives them to us, and we're playing a non-optimal strategy. If we present him with more, he goes ahead and takes it, increasing his potential winnings.







    share|improve this answer











    $endgroup$

















      2












      $begingroup$

      A note: @Reinier, besides having an awesome palindromic username, also solved this puzzle first (my solve was still independent). I like my explanation better (but of course I'm biased), but if you upvote my answer, don't forget to upvote Reinier's as well.




      So, it's somewhat apparent that we need to find




      the optimal strategy (for us) in the worst-case scenario (our friend tries to get as many coins as he can).




      Here's my basic strategy:




      The maximum number of bags that may be filled is 25. This is because the game ends when one person gains 13 bags. Consequently, if we divide all the coins equally among the bags, then the worst we can get is 12/25 of the loot. Of course, we can't quite divide them equally, so we will fill 6 of them with 80 coins, and 19 of them with 81 coins.




      When we present each bag to our friend,




      The best-case scenario for him/her is to gather 13 of the 19 81-coin bags. This leaves us with $81 * 6 + 80 *6 = 966$ coins to his $31 * 81 = 1,053$.




      Essentially, the friend's strategy is to




      keep any bag with more than 80 coins, and give us any bag with 80 coins or less.




      There is, of course, a slight work-around that can get us a liiiitle bit more.



      If we present a continual stream of




      80-coin bags, then the friend's best bet is to give us the first 12 bags, but then give himself the rest of the bags. This improves things a little bit - our friend only gets $1,040$ coins, and we get $979$.




      What if we present a continual stream of




      79-coin bags? The best our friend can get is $1,027$, and we get $998$ That's even better!




      What if we present a continual stream of




      78-coin bags? The best our friend can get is $1,014$, and we get $1,005$ That's even better!




      What if we present a continual stream of




      77-coin bags? The best our friend can get is $1,024$, and this is if he gives us all 13 of the 77-coin bags. Previously, he ended up giving himself all of the bags, so it looks like the highest point we can reach is with 78-coin bags.




      So, the altered strategy of our friend is to




      keep any bag with more than 77 coins. $13*78$ coins gives him a majority of the coins, while $13*77$ coins gives him a minority of the coins.




      We can infer that we can do no better than




      78-coin bags




      because




      Every bag must be above, below, or at 78 coins. If we present to our friend bags with less than 78 coins, he gives them to us, and we're playing a non-optimal strategy. If we present him with more, he goes ahead and takes it, increasing his potential winnings.







      share|improve this answer











      $endgroup$















        2












        2








        2





        $begingroup$

        A note: @Reinier, besides having an awesome palindromic username, also solved this puzzle first (my solve was still independent). I like my explanation better (but of course I'm biased), but if you upvote my answer, don't forget to upvote Reinier's as well.




        So, it's somewhat apparent that we need to find




        the optimal strategy (for us) in the worst-case scenario (our friend tries to get as many coins as he can).




        Here's my basic strategy:




        The maximum number of bags that may be filled is 25. This is because the game ends when one person gains 13 bags. Consequently, if we divide all the coins equally among the bags, then the worst we can get is 12/25 of the loot. Of course, we can't quite divide them equally, so we will fill 6 of them with 80 coins, and 19 of them with 81 coins.




        When we present each bag to our friend,




        The best-case scenario for him/her is to gather 13 of the 19 81-coin bags. This leaves us with $81 * 6 + 80 *6 = 966$ coins to his $31 * 81 = 1,053$.




        Essentially, the friend's strategy is to




        keep any bag with more than 80 coins, and give us any bag with 80 coins or less.




        There is, of course, a slight work-around that can get us a liiiitle bit more.



        If we present a continual stream of




        80-coin bags, then the friend's best bet is to give us the first 12 bags, but then give himself the rest of the bags. This improves things a little bit - our friend only gets $1,040$ coins, and we get $979$.




        What if we present a continual stream of




        79-coin bags? The best our friend can get is $1,027$, and we get $998$ That's even better!




        What if we present a continual stream of




        78-coin bags? The best our friend can get is $1,014$, and we get $1,005$ That's even better!




        What if we present a continual stream of




        77-coin bags? The best our friend can get is $1,024$, and this is if he gives us all 13 of the 77-coin bags. Previously, he ended up giving himself all of the bags, so it looks like the highest point we can reach is with 78-coin bags.




        So, the altered strategy of our friend is to




        keep any bag with more than 77 coins. $13*78$ coins gives him a majority of the coins, while $13*77$ coins gives him a minority of the coins.




        We can infer that we can do no better than




        78-coin bags




        because




        Every bag must be above, below, or at 78 coins. If we present to our friend bags with less than 78 coins, he gives them to us, and we're playing a non-optimal strategy. If we present him with more, he goes ahead and takes it, increasing his potential winnings.







        share|improve this answer











        $endgroup$



        A note: @Reinier, besides having an awesome palindromic username, also solved this puzzle first (my solve was still independent). I like my explanation better (but of course I'm biased), but if you upvote my answer, don't forget to upvote Reinier's as well.




        So, it's somewhat apparent that we need to find




        the optimal strategy (for us) in the worst-case scenario (our friend tries to get as many coins as he can).




        Here's my basic strategy:




        The maximum number of bags that may be filled is 25. This is because the game ends when one person gains 13 bags. Consequently, if we divide all the coins equally among the bags, then the worst we can get is 12/25 of the loot. Of course, we can't quite divide them equally, so we will fill 6 of them with 80 coins, and 19 of them with 81 coins.




        When we present each bag to our friend,




        The best-case scenario for him/her is to gather 13 of the 19 81-coin bags. This leaves us with $81 * 6 + 80 *6 = 966$ coins to his $31 * 81 = 1,053$.




        Essentially, the friend's strategy is to




        keep any bag with more than 80 coins, and give us any bag with 80 coins or less.




        There is, of course, a slight work-around that can get us a liiiitle bit more.



        If we present a continual stream of




        80-coin bags, then the friend's best bet is to give us the first 12 bags, but then give himself the rest of the bags. This improves things a little bit - our friend only gets $1,040$ coins, and we get $979$.




        What if we present a continual stream of




        79-coin bags? The best our friend can get is $1,027$, and we get $998$ That's even better!




        What if we present a continual stream of




        78-coin bags? The best our friend can get is $1,014$, and we get $1,005$ That's even better!




        What if we present a continual stream of




        77-coin bags? The best our friend can get is $1,024$, and this is if he gives us all 13 of the 77-coin bags. Previously, he ended up giving himself all of the bags, so it looks like the highest point we can reach is with 78-coin bags.




        So, the altered strategy of our friend is to




        keep any bag with more than 77 coins. $13*78$ coins gives him a majority of the coins, while $13*77$ coins gives him a minority of the coins.




        We can infer that we can do no better than




        78-coin bags




        because




        Every bag must be above, below, or at 78 coins. If we present to our friend bags with less than 78 coins, he gives them to us, and we're playing a non-optimal strategy. If we present him with more, he goes ahead and takes it, increasing his potential winnings.








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 7 hours ago

























        answered 7 hours ago









        Brandon_JBrandon_J

        4,729551




        4,729551



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Puzzling Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f84823%2f2019-gold-coins-to-share%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

            Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

            François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480