wu :: forums
« wu :: forums - 31 Flavours »

Welcome, Guest. Please Login or Register.
Apr 17th, 2025, 6:32pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   easy
(Moderators: SMQ, towr, ThudnBlunder, Grimbal, Icarus, william wu, Eigenray)
   31 Flavours
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: 31 Flavours  (Read 568 times)
Yoda
Newbie
*





   
WWW

Posts: 11
31 Flavours  
« on: Jan 25th, 2004, 12:22am »
Quote Quote Modify Modify

At a bar with a few friends, one friend, who is a somewhat compulsive gambler, introduced a game to me. I have searched this forum for it, but since I couldn’t find it, I thought I’d post it in this forum. He called the game Baskin Robbins 31 so I’ll leave the name at that. It goes like this:
 
I choose a number 1, 2, or 3 and then the other player chooses a number 1, 2, or 3 and adds it to my number. Then I choose a number 1, 2, or 3 and add it to the total and so on. The player who is forced to choose ‘31’ (exceed 30) is the loser.  
(1) If you are the first player, devise an algorithm so that you will win every time.  
 
Now, as it turns out my friend didn’t ‘know’ the algorithm (and still doesn’t, which I hope will keep the beer flowing due to his compulsive gambling nature). As well, in our game, I didn’t get to go first. Instead, we flipped a coin to see who would go first.  
 
(2) Given that he didn’t know the algorithm but I did. What is my probability of winning?  
 
(3) Do you think playing the algorithm is the smartest way to play the game? (This is really open-ended.)
 
(4) In several puzzles, the strategy for winning is exactly the same as for this one. I wonder if anybody could point out anymore puzzles where this strategy seems to work.  
Other puzzles where it works are:
The Faustian Table
Cutting a Square.
 
(edited to make the formulation clearer).
« Last Edit: Jan 25th, 2004, 4:59am by Yoda » IP Logged
Sir Col
Uberpuzzler
*****




impudens simia et macrologus profundus fabulae

   
WWW

Gender: male
Posts: 1825
Re: 31 Flavours  
« Reply #1 on: Jan 25th, 2004, 4:31am »
Quote Quote Modify Modify

I'm a little unclear on the game. Suppose the total has got to 30 and it's my go. Couldn't I choose 2 and avoid 31, or is the loser the first player to exceed 30?
 
In which case...
::
(1) The winning strategy is to get yourself to 30.
As each player picks 1, 2, or 3, we need to control in counting blocks of 4.
As 30==2 mod 4, if I went first, I would choose 2. Now it doesn't matter what they pick, I can make a total of 4 from our combined totals, so I can maintain control up to 30.
 
(2) This is split into a number of possibilities:
If I went first, I would pick 2: p=1/2.
 
If he went first we shall assume he picks 1, 2, or 3, with equal chance.
If he picked 1, I could pick 1, to make 2: p=(1/2)(1/3)=1/6.
If he picked 3, I could pick 3, to make the next target, 6: p=(1/2)(1/3)=1/6.
If he picked 2, the process would continue.
 
So P(win) = 1/2+1/6+1/6+(1/2)P(win)
2P(win) = 5/6+P(win).
Therefore, P(win) = 5/6.
 
Hmm, I'm not sure about my answer: the process is not infinitely recursive? Needs more thought...
::
IP Logged

mathschallenge.net / projecteuler.net
Yoda
Newbie
*





   
WWW

Posts: 11
Re: 31 Flavours  
« Reply #2 on: Jan 25th, 2004, 4:52am »
Quote Quote Modify Modify

Yes, the first person to exceed 30 (pick 31 or higher is the loser).
 
(1) Solved!   Smiley
 
(2) I think the probability is much higher than that because I'll get more than one chance to make a target.
« Last Edit: Jan 25th, 2004, 4:54am by Yoda » IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: 31 Flavours  
« Reply #3 on: Jan 25th, 2004, 8:12am »
Quote Quote Modify Modify

on Jan 25th, 2004, 4:31am, Sir Col wrote:
::So P(win) = 1/2+1/6+1/6+(1/2)P(win)
2P(win) = 5/6+P(win).
Therefore, P(win) = 5/6
::

 
since 1/2+1/6+1/6 is allready 5/6 this would mean P(win) = 0, from the first equation.. So this can't be correct. I agree with the first part of the solution though, but I'd expect a higher answer at the end.
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Sir Col
Uberpuzzler
*****




impudens simia et macrologus profundus fabulae

   
WWW

Gender: male
Posts: 1825
Re: 31 Flavours  
« Reply #4 on: Jan 25th, 2004, 9:26am »
Quote Quote Modify Modify

Silly me...
 
::
1/2 = probability I go first – I win.
(1/2)(2/3) = probability he goes first, and picks the wrong number – I win.
(1/2)(1/3)(2/3) = probability he goes first, picks the right number, I pick, say 1, he then picks the wrong number – I win; that is, he picks 2, I pick 1, he picks something that doesn't get to 6.
(1/2)(1/3)(1/3)(2/3) = probability he goes first and picks 2, I pick 1, he picks 3 (taking to the next target 6), I pick 1, he picks something other than 3 – I win.
 
And so on.
 
Assuming he is stupid and if he keep picking the 'right' number, he will hit the targets 2, 6, 10, 14, 18, 22, 26, and 30.
 
The probability of getting to 30 by chance is (1/2)(1/3)8, so the probability of getting to 26 by chance and making a mistake is (1/2)(1/3)7(2/3).
 
Hence P(I win)=1/2+(1/2)(2/3)(1+(1/3)+(1/3)2+...+(1/3)7)=13121/13122.
::
« Last Edit: Jan 25th, 2004, 9:28am by Sir Col » IP Logged

mathschallenge.net / projecteuler.net
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: 31 Flavours  
« Reply #5 on: Jan 25th, 2004, 9:44am »
Quote Quote Modify Modify

Instead of summing all those terms, why not simply take 1/2 + 1/2(1-1/38) ?  Roll Eyes
There's only one way for him to win, so you win in all the others.. P(you win)=1 - P(he wins) after all..
« Last Edit: Jan 25th, 2004, 9:48am by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Sir Col
Uberpuzzler
*****




impudens simia et macrologus profundus fabulae

   
WWW

Gender: male
Posts: 1825
Re: 31 Flavours  
« Reply #6 on: Jan 25th, 2004, 10:25am »
Quote Quote Modify Modify

*feels very stupid*  Embarassed
 
(3) Do you think playing the algorithm is the smartest way to play the game? (This is really open-ended.)
 
I don't think it is the smartest way to play, as eventually even your most stupid friend would begin to recognise target numbers. For example, it wouldn't take long for them to realise that once you got them to 26, they were going to lose. Then they'd notice that they always seemed to get to 22, 18, ...
 
A sneaky variation, which would help obfuscate the stategy, would be to give your 'victim' the impression that they have more choice. For example, you could say, "Okay, instead of using 31, I'll let you pick the target number from, say, 30 to 40. In addition, rather than choose 1, 2, or 3, I'll let you choose the maximum we can add each time; for example, 1, 2, 3, 4, or 5."
 
It would be easy to adapt the winning strategy and they'd be clueless to the trick you're using. In fact, another twist would be to drop the coin idea and say, "I'll tell you what, how about YOU choose who starts... Of course, it won't matter, because I ALWAYS win!"  Tongue
IP Logged

mathschallenge.net / projecteuler.net
rmsgrey
Uberpuzzler
*****





134688278 134688278   rmsgrey   rmsgrey


Gender: male
Posts: 2874
Re: 31 Flavours  
« Reply #7 on: Jan 25th, 2004, 10:40am »
Quote Quote Modify Modify

I've usually come across this game in the form of a "take away" game like Nim where you take counters from a pile and the person to take the last (or the person unable to take any) loses. One variant I encountered was to have four piles, with 1, 3, 5 and 7 objects and to be allowed to take as many objects as you liked from any one pile each turn. I forget whether the last object wins or loses, but either way, if memory serves, it's a second player win.
IP Logged
ThudnBlunder
wu::riddles Moderator
Uberpuzzler
*****




The dewdrop slides into the shining Sea

   


Gender: male
Posts: 4489
Re: 31 Flavours  
« Reply #8 on: Jan 26th, 2004, 6:29pm »
Quote Quote Modify Modify

Here's a similar puzzle:
 
Starting with an unlimited supply of coins with values 1, 5, 10, 25, 50, and 100 pennies,  
two players take turns placing a coin into a jar which is initially empty.  
 
The amount in the pot may not exceed the target amount of 678 pennies.  
 
The player who puts in the last coin, reaching the target, is the winner.  
 
Do you want to go first?
 
 
IP Logged

THE MEEK SHALL INHERIT THE EARTH.....................................................................er, if that's all right with the rest of you.
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: 31 Flavours  
« Reply #9 on: Jan 27th, 2004, 12:29am »
Quote Quote Modify Modify

on Jan 26th, 2004, 6:29pm, THUDandBLUNDER wrote:

Do you want to go first?
::
678 mod 3=0
 
1 mod 3=1
5 mod 3=2
10 mod 3=1
25 mod 3=1
50 mod 3=2
100 mod 3=1
 
So I would not want to go first. If I'm second, I can allways make the total a multiple of three at the end of each turn, whereas the first player can not.  
 
actually, it'd be faster working mod 6.. The end might pose some problems though.. hmm.. guess I'll have to give that a bit more thought..
::
« Last Edit: Jan 27th, 2004, 12:33am by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
ziep
Newbie
*





   


Posts: 12
31 Flavours with a dice  
« Reply #10 on: Jan 27th, 2004, 3:10am »
Quote Quote Modify Modify

Martin Gardner wrote about a game resembling this. The first player throws a dice, the second player gives the dice a quarter turn. (So if  the dice is showing 5, the options are 1,3,4,6, but not 2 and 5). Add it to the total. Then the first player turns the dice and so on.  
The player who is forced to exceed 31 is the loser.  An algorithm is not that easy, but it's fun to play for a while.
« Last Edit: Jan 27th, 2004, 3:12am by ziep » IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: 31 Flavours  
« Reply #11 on: Jan 27th, 2004, 7:11am »
Quote Quote Modify Modify

on Jan 26th, 2004, 6:29pm, THUDandBLUNDER wrote:
Do you want to go first?
after giving it some more thought, I do want to go first. I can't give a nice explanation though, I just worked backwards to find if the start is a winning position
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
why_linux_BSD_rule
Newbie
*





   


Posts: 6
Re: 31 Flavours  
« Reply #12 on: Jan 27th, 2004, 8:04am »
Quote Quote Modify Modify

Hi,
I think the easiest way to do it is that (no matter who starts) is to make the sum of your answer and the previous answer (his answer) even because 30 is an EVEN number. You could go fast in the beginning (like lets say your opponent chooses 3 you could choose 1 to make the sum 4 or 3 to the sum 6). If you are in the beginning of the game, you would choose the latter to go faster.
If he is playing by the same startegy, then it depends on the choice of his first number (if it is bigger your next answer should make the sum smallest possible EVEN).
« Last Edit: Jan 27th, 2004, 8:18am by why_linux_BSD_rule » IP Logged
Margit
Guest

Email

Re: 31 Flavours  
« Reply #13 on: Jan 27th, 2004, 9:29am »
Quote Quote Modify Modify Remove Remove

Ah, TB, I posted exactly the same Q over at GL  Cheesy
So, I'd better stay out of this one.
IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board