• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:59
CET 20:59
KST 04:59
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Team Liquid Map Contest #22 - Presented by Monster Energy4ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13
Community News
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool24Weekly Cups (March 9-15): herO, Clem, ByuN win32026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12Blizzard Classic Cup - Tastosis announced as captains18
StarCraft 2
General
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Serral: 24’ EWC form was hurt by military service Weekly Cups (March 9-15): herO, Clem, ByuN win Team Liquid Map Contest #22 - Presented by Monster Energy Weekly Cups (August 25-31): Clem's Last Straw?
Tourneys
WardiTV Team League Season 10 KSL Week 87 [GSL CK] #2: Team Classic vs. Team Solar 2026 KungFu Cup Announcement [GSL CK] #1: Team Maru vs. Team herO
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 517 Distant Threat Mutation # 516 Specter of Death Mutation # 515 Together Forever
Brood War
General
ASL21 General Discussion JaeDong's form before ASL BGH Auto Balance -> http://bghmmr.eu/ Gypsy to Korea BSL Season 22
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL22] Open Qualifiers & Ladder Tours IPSL Spring 2026 is here!
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Path of Exile General RTS Discussion Thread Stormgate/Frost Giant Megathread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread Mexico's Drug War
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations Cricket [SPORT]
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1991 users

Really hard puzzle 2

Blogs > gondolin
Post a Reply
1 2 Next All
gondolin
Profile Blog Joined September 2007
France332 Posts
May 12 2009 13:23 GMT
#1
Hello everyone, and welcome to my first blog.

This blog is meant to be the following of a blog post by driftOut:
http://www.teamliquid.net/blogs/viewblog.php?topic_id=93007
about a very nice puzzle.

The solution uses equivalence choice, and evanthebouncy! made an excellent didactic course about it here:
http://www.teamliquid.net/blogs/viewblog.php?topic_id=93015

Now if you were interested in the first puzzle, i'll propose you one that is even harder, and even more impressive. Feel free to ask questions if the problem is not stated clearly enough.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are playing a game. In this game there is an infinite (countable) number of boxes, and in each box a number. The host is free to place any number inside a box (and he can place the same numbers into different boxes).

You can open as many boxes as you want (even infinitely many), as long as you leave at least one box closed. You then state the number you think there is inside a closed box. You win if you guessed the right number.

How do you play?
What i pretend is that for every n>0, you have a strategy so that your probability of success is greater than 1-1/n!
In other word you can't always win (duh!) but you have a strategy that gives you 999 999/ 1 000 000 chances to win!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Tell me what you think about it!

*****
Turbovolver
Profile Blog Joined January 2009
Australia2396 Posts
May 12 2009 13:26 GMT
#2
Umm, if the host is free to put any number in a box, and repeat at will, what does it matter what was in the other boxes?

Seems like all the events are independent and your chance to win is unaffected by how many boxes you open before.

I guess I'm missing something =/
The original Bogus fan.
gondolin
Profile Blog Joined September 2007
France332 Posts
May 12 2009 13:46 GMT
#3
Yes it's confusing, and counter-intuitive, but it's because we are dealing with an infinite number of boxes, hence our "intuition" does not apply. It's not like it could happen in real life I agree that if the number of boxes were finite, there is no way you could win.

So the host puts all the numbers in the boxes *before* you open them. He is not allowed to change them afterwards. He does not know which box you will choose to leave closed, and remember that you can open all the boxes except one.
Chromyne
Profile Joined January 2008
Canada561 Posts
May 12 2009 14:16 GMT
#4
My friend wants to clarify what you mean by any number: integers, real numbers, etc. He's saying that the set determines whether the numbers are countable-infinite or not.
Soli Deo gloria.
gondolin
Profile Blog Joined September 2007
France332 Posts
May 12 2009 14:24 GMT
#5
By number i mean an integer, that is an element in the set {0,1,2,3,...}.
so if you count, the ways the host can set up the boxes is N^N, which is not countable.

(that is, if you number the boxes, you have a sequence that to the box number n associates the integer inside it. Then every sequence is possible, and you have no information about how the host will choose is sequence).


Muirhead
Profile Blog Joined October 2007
United States556 Posts
Last Edited: 2009-05-12 14:44:20
May 12 2009 14:42 GMT
#6
This question is very ill-defined. What do you mean by probability? There is no random probability distribution for assigning (non-negative) integers to boxes. Also, if we leave two boxes closed and guess a number in one of them, do we have to state which of the two boxes we think that number is inside of?
starleague.mit.edu
gondolin
Profile Blog Joined September 2007
France332 Posts
May 12 2009 14:54 GMT
#7
On May 12 2009 23:42 Muirhead wrote:
This question is very ill-defined. What do you mean by probability? There is no random probability distribution for assigning (non-negative) integers to boxes.


Yes i know. But i did not want to be too formal.

The correct way is this: for any n>0, you can devise n strategies, such that n-1 of them will succeed (but you don't know which may not succeed of course). (since n is finite, you can speak about the probability you will choose a winning strategy).


Also, if we leave two boxes closed and guess a number in one of them, do we have to state which of the two boxes we think that number is inside of?


Yes. Sorry if that wasn't clear.
Mogwai
Profile Blog Joined January 2009
United States13274 Posts
May 12 2009 15:07 GMT
#8
please define n

is that how many boxes you are opening?
mogwaismusings.wordpress.com
Malongo
Profile Blog Joined November 2005
Chile3472 Posts
Last Edited: 2009-05-12 15:40:39
May 12 2009 15:30 GMT
#9
Basically I realize I dont understand anything about the problem. Questions:
1- That about opening and closing box does something in the game?
2- You meant to solve the problem in terms of n. What is n?
3- Numbers in boxes are integers? rational? real? complex?
Help me! im still improving my English. An eye for an eye makes the whole world blind. M. G.
Mogwai
Profile Blog Joined January 2009
United States13274 Posts
May 12 2009 15:34 GMT
#10
it's N ^ N not N x N

I honestly don't remember my combinatorics well enough to tell you if N ^ N for a countably infinite N is uncountable or countable, but I'll take the OP's word that N ^ N is uncountable...
mogwaismusings.wordpress.com
Malongo
Profile Blog Joined November 2005
Chile3472 Posts
May 12 2009 15:41 GMT
#11
Damn edit slow. Anyways im almost sure but now im doubting.
Help me! im still improving my English. An eye for an eye makes the whole world blind. M. G.
Malongo
Profile Blog Joined November 2005
Chile3472 Posts
May 12 2009 15:44 GMT
#12
yeah just remembered NxNxN..xN is countable for any number of ns but N^N doesnt.
Help me! im still improving my English. An eye for an eye makes the whole world blind. M. G.
HeaDStrong
Profile Blog Joined January 2009
Scotland785 Posts
May 12 2009 15:45 GMT
#13
+ Show Spoiler +

the answer is 19. it's always 19. ez .. it must be...
gondolin
Profile Blog Joined September 2007
France332 Posts
May 12 2009 15:55 GMT
#14
On May 13 2009 00:07 Mogwai wrote:
please define n

is that how many boxes you are opening?


Ok i can explain a bit more how the strategy works (it is an insanely hard problem anyway), but it would be nice if some peoples would give strategies, even if they don't work.

Let n be an integer > 1.
You split the boxes in n column.
You select a special column x, were you will leave a box closed. You open the boxes in every other column, and use that information to know what box you will leave closed in the column you have chosen.

What i pretend is that there is a way to choose the closed box and the number you announce in thus a way that for any column x you have chosen at the beginning *except one*, you will win.
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
May 12 2009 16:02 GMT
#15
Err let's seee...

I suppose we make functions again, let's call them f_1, f_2, f_3...
f_1(1) = number in box 1
f_1(2) = number in box 2
f_1(3) = number in box 3
and so on.

The total number of functions I suppose, are N^N.

I guess we can ask these questions, if u guys want to help me answer them:
Take all these functions, put them into a set, call it F.
is F complete?
if we think of each element in F as a vector of size NxN, can we find a "basis" of some sort for F?
is there a "standard" basis for F?
how do we "project" in F?

Suppose we could answer yes to all of the above questions, then we let g_1, g_2, g_3 ... to be our basis
Project our function vector, f_something, onto those g_1, g_2, g_3 ...
See if we get it to converge to something fancy...
O_o
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
May 12 2009 16:06 GMT
#16
some random intuition
[image loading]
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
gondolin
Profile Blog Joined September 2007
France332 Posts
May 12 2009 16:07 GMT
#17
On May 13 2009 00:30 Malongo wrote:
Basically I realize I dont understand anything about the problem. Questions:


Yeah it is quite a hard problem to state correctly, without being too formal. I don't want to scare everyone :/


1- That about opening and closing box does something in the game?


When a box is closed, you don't see the number inside it. You have to open it if you want to know which number there was. You can open as many boxes you want, in the order you want, you just have to leave at least one closed. Then you pick a closed box, announce the number in it, and you win if you were right.


2- You meant to solve the problem in terms of n. What is n?


You choose it yourself. For any n you can construct n strategies. All of them will work except one. If you choose the strategy at random, you have 1/n chances of picking the bad strategy.
So say you want to win with probability 999999/1000000, you take n=1000000, you construct your n strategies, pick one at random, and voila.


3- Numbers in boxes are integers? rational? real? complex?


Integers.

+ Show Spoiler +
Don't read this, this is more confusing than anything.

Since the rationnal are countable, you can play with rationnals too. In fact you could even play with reals or complex, but the problem is that you would have to speak infinitely long to define the real entirely (ok in real life there won't be infinitely many boxes, and you would take infinitely long to open them all minus one anyway...)
qrs
Profile Blog Joined December 2007
United States3637 Posts
Last Edited: 2009-05-12 16:24:31
May 12 2009 16:24 GMT
#18
My intuition is failing me on this one. She says that this is not possible. Let me try spelling out what my problem is, and perhaps someone can tell me where I am erring:

I can conceive of being able to make an "educated guess" in some circumstances. For instance, suppose that you open all boxes but one, and each contains a 9. Then it seems likely that the remaining one contains a 9 as well. (This would certainly be true for very large finite numbers, although infinities are harder to reason about intuitively.)

However, suppose the host uses a strategy designed to prevent any box from shedding light on any of the others. I suppose that the host is capable of picking truly random numbers (i.e. effective probability 0 of picking any given number). Then let him select the numbers as follows.

1) Number the boxes (since they are countable).
2) Select a random number and place it in the first box.
2) Select a random number that has not been used yet and place it in the second box.
3) and so on until all boxes are filled (obviously it's not really an iterative process).
4) Throw out the even boxes.

Now, even if you know the contents of all boxes but one, all you know is an infinite set of numbers that cannot be in the last box. But by step 4, there is guaranteed to be an infinite set of numbers that you have not seen: one of them must be in the box and any of them can be in the box, since the selection was truly random. How can your knowledge of the other boxes help you in any way with this problem, which is essentially to guess a single number from an infinite set?

(I suspect that you may take issue with my assumption of "true randomness". If so, could you be as specific as you can about the host's ability to choose numbers?)
'As per the American Heart Association, the beat of the Bee Gees song "Stayin' Alive" provides an ideal rhythm in terms of beats per minute to use for hands-only CPR. One can also hum Queen's "Another One Bites The Dust".' —Wikipedia
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2009-05-12 17:17:49
May 12 2009 17:06 GMT
#19
this shit is actually answerable?
if there are infinite numbers and infinite boxes I don't see how this is answerable


hell, shouldn't this be unanswerable just given there are infinite numbers?


I don't understand how this could be answerable -.-
gondolin
Profile Blog Joined September 2007
France332 Posts
May 12 2009 17:08 GMT
#20
On May 13 2009 01:24 qrs wrote:
My intuition is failing me on this one. She says that this is not possible. Let me try spelling out what my problem is, and perhaps someone can tell me where I am erring:


Yes, it is quite counter intuitive, because we are dealing with infinites.


I can conceive of being able to make an "educated guess" in some circumstances. For instance, suppose that you open all boxes but one, and each contains a 9. Then it seems likely that the remaining one contains a 9 as well. (This would certainly be true for very large finite numbers, although infinities are harder to reason about intuitively.)


Well it depends. If you select uniformly a number in [0, 10^n[, then even if (n-1) digits are equals to 9, the remaining one is uniform in [0,9].


(I suspect that you may take issue with my assumption of "true randomness". If so, could you be as specific as you can about the host's ability to choose numbers?)


Well, yes there is no true probability on the whole N, but the true problem is that there is an infinite number of boxes, and the player can choose the box he will guess according to what he sees. What the host choose is a sequence of integers, and he can choose any sequence (even a non calculable one).

Suppose to simplify that the numbers are restricted to be {0,1}. Now say that your strategy is "whatever i see, i pick the box 42 and announce 0". You can't really know your probability of success because it depends how the host chose the sequence. Let's say you identify the sequences with value on {0,1} with the set [0,1] (by taking the diadic decimal reprensentation of a number, ignore the fact that 1=0.111111111). If the host take is number x in [0,1] uniformly with respect to the lebesgue measure, then your strategy has 1/2 chance to win. But here you chose in advance what box you would leave closed, and it's value is independant from the values of the other boxes. So you can't do better like this.

What is worse is that you don't know how the host choose is number. The probability of success i am speaking about does not depend on the way the host choose the number, but on what strategies you decide to use. For instance, suppose that you are sure that number 17, 42 and 54 are 0, except maybe one of them. Then you choose one of them at random, and you have 2/3 chances of winning. This proba does not depend on the original sequence, it's just the losing number that will depend of it.

Of course in practice there is no way you will be sure that 17,42 and 54 are 0, but you can use the fact that you can chose which box you will guess, depending on what you have seen. In the finite case, this would change nothing, but here it is completely different! Hence why the intuition fails.
1 2 Next All
Please log in or register to reply.
Live Events Refresh
Big Brain Bouts
17:00
#109
Clem vs SerralLIVE!
RotterdaM1344
IndyStarCraft 194
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 1344
IndyStarCraft 194
UpATreeSC 135
EmSc Tv 6
StarCraft: Brood War
Britney 19610
EffOrt 902
hero 168
Mind 77
Dewaltoss 73
LancerX 26
Dota 2
canceldota0
League of Legends
JimRising 516
Counter-Strike
fl0m4242
Fnx 1906
byalli379
Super Smash Bros
C9.Mang055
Heroes of the Storm
Liquid`Hasu284
MindelVK15
Other Games
Grubby2249
Gorgc2163
B2W.Neo652
Beastyqt569
ToD175
KnowMe112
ArmadaUGS108
QueenE96
Trikslyr61
Organizations
Dota 2
PGL Dota 2 - Main Stream87
Other Games
BasetradeTV80
StarCraft 2
EmSc Tv 6
EmSc2Tv 6
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• Adnapsc2 15
• Hinosc 5
• intothetv
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• IndyKCrew
• Kozan
StarCraft: Brood War
• HerbMon 30
• blackmanpl 25
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV806
• masondota2206
League of Legends
• Nemesis2212
Other Games
• imaqtpie864
• Shiphtur242
Upcoming Events
Korean StarCraft League
7h 1m
RSL Revival
14h 1m
Maru vs Zoun
Cure vs ByuN
uThermal 2v2 Circuit
19h 1m
BSL
1d
RSL Revival
1d 14h
herO vs MaxPax
Rogue vs TriGGeR
BSL
2 days
Replay Cast
2 days
Replay Cast
2 days
Afreeca Starleague
2 days
Sharp vs Scan
Rain vs Mong
Wardi Open
2 days
[ Show More ]
Monday Night Weeklies
2 days
Sparkling Tuna Cup
3 days
Afreeca Starleague
3 days
Soulkey vs Ample
JyJ vs sSak
Replay Cast
4 days
Afreeca Starleague
4 days
hero vs YSC
Larva vs Shine
Kung Fu Cup
4 days
Replay Cast
5 days
The PondCast
5 days
WardiTV Team League
5 days
Replay Cast
6 days
WardiTV Team League
6 days
Liquipedia Results

Completed

Proleague 2026-03-18
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
CSL Elite League 2026
Proleague 2026-03-20
RSL Revival: Season 4
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
CSL 2026 SPRING (S20)
CSL Season 20: Qualifier 1
Acropolis #4
IPSL Spring 2026
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
NationLESS Cup
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.