Math problem (easy)
- perceval
- Lives in gote
- Posts: 312
- Joined: Thu Aug 05, 2010 3:35 am
- Rank: 7K KGS
- GD Posts: 0
- KGS: tictac
- Has thanked: 52 times
- Been thanked: 41 times
Math problem (easy)
I played a game with my 7 year old son this week end:
The players have cards on their hands, numbered from 1 to 9.
One of the player throws 2 dice.
Then all players must try to match the total of the dice by playing 1,2 or,3 cards, such that they can match the dice sum by substracting or adding the values of the cards played.
For example, if the total of the dice is 5:
you can play:
-1 card "5" OR
- 2 card "3" + "2" OR
- 2 cards "7" - "2" OR
- 3 cards "3" +"1" + "1" OR
- 3 cards "3" +"3" - "1" (you can mix substraction and additions)
etc....
If you cannot match the dice sum with the cards in hand, you must draw a card.
The winner if the first one to get rid of all his cards
Question:
what is the hand of cards that maximize the probability that you will finish next turn, ie play all your cards at once to match the dice sum ?
(you can play at most 3 cards to match the dice sum).
i have a proposal but i am not sure that it is the optimum
Bonus Question (just thought of it ):
if you remove the 3 cards limitation to match the sum , is there a hand to be sure to finish next turn ? which hand ?
The players have cards on their hands, numbered from 1 to 9.
One of the player throws 2 dice.
Then all players must try to match the total of the dice by playing 1,2 or,3 cards, such that they can match the dice sum by substracting or adding the values of the cards played.
For example, if the total of the dice is 5:
you can play:
-1 card "5" OR
- 2 card "3" + "2" OR
- 2 cards "7" - "2" OR
- 3 cards "3" +"1" + "1" OR
- 3 cards "3" +"3" - "1" (you can mix substraction and additions)
etc....
If you cannot match the dice sum with the cards in hand, you must draw a card.
The winner if the first one to get rid of all his cards
Question:
what is the hand of cards that maximize the probability that you will finish next turn, ie play all your cards at once to match the dice sum ?
(you can play at most 3 cards to match the dice sum).
i have a proposal but i am not sure that it is the optimum
Bonus Question (just thought of it ):
if you remove the 3 cards limitation to match the sum , is there a hand to be sure to finish next turn ? which hand ?
In theory, there is no difference between theory and practice. In practice, there is.
-
entropi
- Lives in gote
- Posts: 493
- Joined: Wed Apr 21, 2010 6:20 am
- Rank: sdk
- GD Posts: 175
- Has thanked: 80 times
- Been thanked: 71 times
Re: Math problem (easy)
Is there a clever trick to solve, or do we have to think of dice outcome probability histogram and find the sequence of cards covering the biggest range?
If you say no, Elwood and I will come here for breakfast, lunch, and dinner every day of the week.
- perceval
- Lives in gote
- Posts: 312
- Joined: Thu Aug 05, 2010 3:35 am
- Rank: 7K KGS
- GD Posts: 0
- KGS: tictac
- Has thanked: 52 times
- Been thanked: 41 times
Re: Math problem (easy)
that s not a book problem but a problem i thought of while playing, so i don't know of a pleasant trick.
i jus tried to find the hand with the max proba manually.
i jus tried to find the hand with the max proba manually.
In theory, there is no difference between theory and practice. In practice, there is.
- Magicwand
- Tengen
- Posts: 4844
- Joined: Wed Apr 21, 2010 5:26 am
- Rank: Wbaduk 7D
- GD Posts: 0
- KGS: magicwand
- Tygem: magicwand
- Wbaduk: rlatkfkd
- DGS: magicwand
- OGS: magicwand
- Location: Mechanicsburg, PA
- Has thanked: 62 times
- Been thanked: 504 times
Re: Math problem (easy)
entropi wrote:Is there a clever trick to solve, or do we have to think of dice outcome probability histogram and find the sequence of cards covering the biggest range?
two dice... #6 is the most common out come.
so i solved half of the problem
"The more we think we know about
The greater the unknown"
Words by neil peart, music by geddy lee and alex lifeson
The greater the unknown"
Words by neil peart, music by geddy lee and alex lifeson
- perceval
- Lives in gote
- Posts: 312
- Joined: Thu Aug 05, 2010 3:35 am
- Rank: 7K KGS
- GD Posts: 0
- KGS: tictac
- Has thanked: 52 times
- Been thanked: 41 times
Re: Math problem (easy)
Magicwand wrote:entropi wrote:Is there a clever trick to solve, or do we have to think of dice outcome probability histogram and find the sequence of cards covering the biggest range?
two dice... #6 is the most common out come.
so i solved half of the problem
actually with 2 dice 7 is the most common outcome
proba for each dice sum outcome hidden:
In theory, there is no difference between theory and practice. In practice, there is.
-
Tryss
- Lives in gote
- Posts: 502
- Joined: Tue May 24, 2011 1:07 pm
- Rank: KGS 2k
- GD Posts: 100
- KGS: Tryss
- Has thanked: 1 time
- Been thanked: 153 times
Re: Math problem (easy)
Question:
what is the hand of cards that maximize the probability that you will finish next turn, ie play all your cards at once to match the dice sum ?
Probably 1,2 and 6, with this hand you win with : 3, 5, 7 and 9
it represent 44.44% of winning
Bonus Question (just thought of it ):
if you remove the 3 cards limitation to match the sum , what is the minimal hand to be sure to finish next turn ?
Is the number of card limited?
If it's not limited, then you can't be sure to finish next turn. If you have only even card and the dice is odd, you've lost
-
entropi
- Lives in gote
- Posts: 493
- Joined: Wed Apr 21, 2010 6:20 am
- Rank: sdk
- GD Posts: 175
- Has thanked: 80 times
- Been thanked: 71 times
Re: Math problem (easy)
Magicwand wrote:entropi wrote:Is there a clever trick to solve, or do we have to think of dice outcome probability histogram and find the sequence of cards covering the biggest range?
two dice... #6 is the most common out come.
so i solved half of the problem
For 4, you need 1-3; 3-1; 2-2
For 5, you need 1-4; 4-1; 2-3; 3-2
For 6, you need 1-5; 5-1; 2-4; 4-2; 3-3
For 7, you need 1-6; 6-1; 2-5; 5-2; 3-4; 4-3
For 8, you need 2-6; 6-2; 3-5; 5-3; 4-4
For 9, you need 3-6; 6-3
So 7 is more probable than 6
It should be such a card sequence that covers 6, 7, 8
So, if you have two cards as 1 and 7, you cover 6 and 8 (but miss 7 itself
If you say no, Elwood and I will come here for breakfast, lunch, and dinner every day of the week.
-
Wildclaw
- Dies in gote
- Posts: 29
- Joined: Fri Apr 23, 2010 4:54 pm
- Rank: KGS 2 kyu
- GD Posts: 543
- Has thanked: 3 times
- Been thanked: 4 times
Re: Math problem (easy)
perceval wrote:Question:
what is the hand of cards that maximize the probability that you will finish next turn, ie play all your cards at once to match the dice sum ?
The two first cards are 1 and 2. The final card can be either 6 7 or 8. All three give you the same 16/36 chance on winning.
perceval wrote: Bonus Question (just thought of it ):
if you remove the 3 cards limitation to match the sum , is there a hand to be sure to finish next turn ? which hand ?
No. If a hand contains an even number of even cards it will only be able to produce even results. If a hand contains an odd number of even cards it will only be able to produce odd results.
- daniel_the_smith
- Gosei
- Posts: 2116
- Joined: Wed Apr 21, 2010 8:51 am
- Rank: 2d AGA
- GD Posts: 1193
- KGS: lavalamp
- Tygem: imapenguin
- IGS: lavalamp
- OGS: daniel_the_smith
- Location: Silicon Valley
- Has thanked: 152 times
- Been thanked: 330 times
- Contact:
Re: Math problem (easy)
Three way tie.
Edit: added more detail
extra: for 2x 10 sided dice, the best you can do is:
for 3x 6 sided dice, it's:
Edit: added more detail
extra: for 2x 10 sided dice, the best you can do is:
for 3x 6 sided dice, it's:
That which can be destroyed by the truth should be.
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
-
hyperpape
- Tengen
- Posts: 4382
- Joined: Thu May 06, 2010 3:24 pm
- Rank: AGA 3k
- GD Posts: 65
- OGS: Hyperpape 4k
- Location: Caldas da Rainha, Portugal
- Has thanked: 499 times
- Been thanked: 727 times
Re: Math problem (easy)
I think you're slightly off: [1,2,3] can produce 2,4,6. [1,2,3,4] can produce 2,4,6,8,10.Wildclaw wrote:No. If a hand contains an even number of even cards it will only be able to produce even results. If a hand contains an odd number of even cards it will only be able to produce odd results.
- shapenaji
- Lives in sente
- Posts: 1103
- Joined: Tue Apr 20, 2010 10:58 pm
- Rank: EGF 4d
- GD Posts: 952
- Location: Netherlands
- Has thanked: 407 times
- Been thanked: 422 times
Re: Math problem (easy)
This game sounds like fun,
I've thought of a variant which might be enjoyable too:
Roll 4 six-sided dice, now you may use any of the cards in your hand to add/subtract/multiply/divide to get the final outcome. (With the caviat that you may not multiply/divide by 1)
So, for example, say the dice come down 18, and you hold 1,4,7,3
You remove the 3-card limit, and 3*7-(4-1) = 18
You might need to have more cards in hand to play this way though, it would be quite easy to run out fast.
As to the original problem, I imagine backgammon has already solved this one.
I've thought of a variant which might be enjoyable too:
Roll 4 six-sided dice, now you may use any of the cards in your hand to add/subtract/multiply/divide to get the final outcome. (With the caviat that you may not multiply/divide by 1)
So, for example, say the dice come down 18, and you hold 1,4,7,3
You remove the 3-card limit, and 3*7-(4-1) = 18
You might need to have more cards in hand to play this way though, it would be quite easy to run out fast.
As to the original problem, I imagine backgammon has already solved this one.
Tactics yes, Tact no...
-
Wildclaw
- Dies in gote
- Posts: 29
- Joined: Fri Apr 23, 2010 4:54 pm
- Rank: KGS 2 kyu
- GD Posts: 543
- Has thanked: 3 times
- Been thanked: 4 times
Re: Math problem (easy)
hyperpape wrote:I think you're slightly off: [1,2,3] can produce 2,4,6. [1,2,3,4] can produce 2,4,6,8,10.
Ah yeah. I meant an even number of odd numbers makes the sum even.
- perceval
- Lives in gote
- Posts: 312
- Joined: Thu Aug 05, 2010 3:35 am
- Rank: 7K KGS
- GD Posts: 0
- KGS: tictac
- Has thanked: 52 times
- Been thanked: 41 times
Re: Math problem (easy)
I think Tryss gave a good solution first, wildclaw was the first to give all 3.
but dts gave the brute force proof (you either did that by computer or you are crazy
)
but brute force is useful: i didnt even try with even numbers and actually its a tie with odd numbers
a proof without listing all cases ?
but dts gave the brute force proof (you either did that by computer or you are crazy
but brute force is useful: i didnt even try with even numbers and actually its a tie with odd numbers
a proof without listing all cases ?
Last edited by perceval on Wed Aug 24, 2011 11:48 pm, edited 1 time in total.
In theory, there is no difference between theory and practice. In practice, there is.