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 chips V2Maximize gold bars33 stones into gold transmuter99 coins into the sacks

Why does the numerical solution of an ODE move away from an unstable equilibrium?

Does the Distant Spell metamagic apply to the Sword Burst cantrip?

What would Earth look like at night in medieval times?

Why would people reject a god's purely beneficial blessing?

Declining an offer to present a poster instead of a paper

Alphabet completion rate

How should I behave to assure my friends that I am not after their money?

Is adding a new player (or players) a DM decision, or a group decision?

Content builder HTTPS

MH370 blackbox - is it still possible to retrieve data from it?

Why isn’t the tax system continuous rather than bracketed?

"It will become the talk of Paris" - translation into French

How many satellites can stay in a Lagrange point?

Singing along to guitar chords (harmony)

Why is the Turkish president's surname spelt in Russian as Эрдоган, with г?

Impossible darts scores

Calculating the partial sum of a expl3 sequence

Is it okay to visually align the elements in a logo?

Why is Madam Hooch not a professor?

How to get cool night-vision without lame drawbacks?

Does image quality of the lens affect "focus and recompose" technique?

Is there a maximum distance from a planet that a moon can orbit?

Transition from ascending to descending a rope

Can a US President have someone sent to prison?



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 chips V2Maximize gold bars33 stones into gold transmuter99 coins into the sacks






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








11












$begingroup$


You and your friend has found in total 2019 gold coins in a treasure hunt. Since your friend found the place to dig up, he deserves a bit more gold than you so 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
    Jun 8 at 14:23











  • $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
    Jun 8 at 15:00







  • 2




    $begingroup$
    @Brandon_J Sorry what does Since your friend found to place to dig up mean?
    $endgroup$
    – Andrew Savinykh
    Jun 9 at 5:27


















11












$begingroup$


You and your friend has found in total 2019 gold coins in a treasure hunt. Since your friend found the place to dig up, he deserves a bit more gold than you so 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
    Jun 8 at 14:23











  • $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
    Jun 8 at 15:00







  • 2




    $begingroup$
    @Brandon_J Sorry what does Since your friend found to place to dig up mean?
    $endgroup$
    – Andrew Savinykh
    Jun 9 at 5:27














11












11








11





$begingroup$


You and your friend has found in total 2019 gold coins in a treasure hunt. Since your friend found the place to dig up, he deserves a bit more gold than you so 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 the place to dig up, he deserves a bit more gold than you so 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 Jun 9 at 13:02









Brandon_J

4,9355 silver badges54 bronze badges




4,9355 silver badges54 bronze badges










asked Jun 8 at 13:30









OrayOray

16.9k4 gold badges39 silver badges171 bronze badges




16.9k4 gold badges39 silver badges171 bronze badges











  • $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
    Jun 8 at 14:23











  • $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
    Jun 8 at 15:00







  • 2




    $begingroup$
    @Brandon_J Sorry what does Since your friend found to place to dig up mean?
    $endgroup$
    – Andrew Savinykh
    Jun 9 at 5:27

















  • $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
    Jun 8 at 14:23











  • $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
    Jun 8 at 15:00







  • 2




    $begingroup$
    @Brandon_J Sorry what does Since your friend found to place to dig up mean?
    $endgroup$
    – Andrew Savinykh
    Jun 9 at 5:27
















$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
Jun 8 at 14:23





$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
Jun 8 at 14:23













$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
Jun 8 at 15:00





$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
Jun 8 at 15:00





2




2




$begingroup$
@Brandon_J Sorry what does Since your friend found to place to dig up mean?
$endgroup$
– Andrew Savinykh
Jun 9 at 5:27





$begingroup$
@Brandon_J Sorry what does Since your friend found to place to dig up mean?
$endgroup$
– Andrew Savinykh
Jun 9 at 5:27











2 Answers
2






active

oldest

votes


















12












$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
    Jun 8 at 14:48










  • $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
    Jun 8 at 15:01










  • $begingroup$
    Ah - that explains why you got there faster.
    $endgroup$
    – Brandon_J
    Jun 8 at 15:01










  • $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
    Jun 8 at 15:03


















5












$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$








  • 1




    $begingroup$
    I thought about it like this: There are 2019 coins and if I am the friend who chooses, I want to get at least the majority of the coins which is 1010 coins. 1010 coins in 13 bags is 77.69 coins per bag. So If I am the friend, I want to take bags with at least 78 coins or more. I just noticed that Reiner said the same thing with his n/2k formula.
    $endgroup$
    – JS1
    Jun 10 at 21:58














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









12












$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
    Jun 8 at 14:48










  • $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
    Jun 8 at 15:01










  • $begingroup$
    Ah - that explains why you got there faster.
    $endgroup$
    – Brandon_J
    Jun 8 at 15:01










  • $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
    Jun 8 at 15:03















12












$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
    Jun 8 at 14:48










  • $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
    Jun 8 at 15:01










  • $begingroup$
    Ah - that explains why you got there faster.
    $endgroup$
    – Brandon_J
    Jun 8 at 15:01










  • $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
    Jun 8 at 15:03













12












12








12





$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 Jun 8 at 14:25









ReinierReinier

2,6459 silver badges20 bronze badges




2,6459 silver badges20 bronze badges











  • $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
    Jun 8 at 14:48










  • $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
    Jun 8 at 15:01










  • $begingroup$
    Ah - that explains why you got there faster.
    $endgroup$
    – Brandon_J
    Jun 8 at 15:01










  • $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
    Jun 8 at 15:03
















  • $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
    Jun 8 at 14:48










  • $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
    Jun 8 at 15:01










  • $begingroup$
    Ah - that explains why you got there faster.
    $endgroup$
    – Brandon_J
    Jun 8 at 15:01










  • $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
    Jun 8 at 15:03















$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
Jun 8 at 14:48




$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
Jun 8 at 14:48












$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
Jun 8 at 15:01




$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
Jun 8 at 15:01












$begingroup$
Ah - that explains why you got there faster.
$endgroup$
– Brandon_J
Jun 8 at 15:01




$begingroup$
Ah - that explains why you got there faster.
$endgroup$
– Brandon_J
Jun 8 at 15:01












$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
Jun 8 at 15:03




$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
Jun 8 at 15:03













5












$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$








  • 1




    $begingroup$
    I thought about it like this: There are 2019 coins and if I am the friend who chooses, I want to get at least the majority of the coins which is 1010 coins. 1010 coins in 13 bags is 77.69 coins per bag. So If I am the friend, I want to take bags with at least 78 coins or more. I just noticed that Reiner said the same thing with his n/2k formula.
    $endgroup$
    – JS1
    Jun 10 at 21:58
















5












$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$








  • 1




    $begingroup$
    I thought about it like this: There are 2019 coins and if I am the friend who chooses, I want to get at least the majority of the coins which is 1010 coins. 1010 coins in 13 bags is 77.69 coins per bag. So If I am the friend, I want to take bags with at least 78 coins or more. I just noticed that Reiner said the same thing with his n/2k formula.
    $endgroup$
    – JS1
    Jun 10 at 21:58














5












5








5





$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 Jun 8 at 14:57

























answered Jun 8 at 14:40









Brandon_JBrandon_J

4,9355 silver badges54 bronze badges




4,9355 silver badges54 bronze badges







  • 1




    $begingroup$
    I thought about it like this: There are 2019 coins and if I am the friend who chooses, I want to get at least the majority of the coins which is 1010 coins. 1010 coins in 13 bags is 77.69 coins per bag. So If I am the friend, I want to take bags with at least 78 coins or more. I just noticed that Reiner said the same thing with his n/2k formula.
    $endgroup$
    – JS1
    Jun 10 at 21:58













  • 1




    $begingroup$
    I thought about it like this: There are 2019 coins and if I am the friend who chooses, I want to get at least the majority of the coins which is 1010 coins. 1010 coins in 13 bags is 77.69 coins per bag. So If I am the friend, I want to take bags with at least 78 coins or more. I just noticed that Reiner said the same thing with his n/2k formula.
    $endgroup$
    – JS1
    Jun 10 at 21:58








1




1




$begingroup$
I thought about it like this: There are 2019 coins and if I am the friend who chooses, I want to get at least the majority of the coins which is 1010 coins. 1010 coins in 13 bags is 77.69 coins per bag. So If I am the friend, I want to take bags with at least 78 coins or more. I just noticed that Reiner said the same thing with his n/2k formula.
$endgroup$
– JS1
Jun 10 at 21:58





$begingroup$
I thought about it like this: There are 2019 coins and if I am the friend who chooses, I want to get at least the majority of the coins which is 1010 coins. 1010 coins in 13 bags is 77.69 coins per bag. So If I am the friend, I want to take bags with at least 78 coins or more. I just noticed that Reiner said the same thing with his n/2k formula.
$endgroup$
– JS1
Jun 10 at 21:58


















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

Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company