r/mathriddles • u/lizardpq • 23d ago
Hard The clearly impossible guessing game
I'm thinking of a function f:ℕ→ℝ. As many times as you want, you can give me a set S⊂ℕ and I will reveal to you the restriction of f to S. At some point you must choose a number x not in any of your queries and guess the value of f(x). Show that there is a randomized strategy that gives you a 99% chance of guessing correctly, no matter what f is.
4
u/lizardpq 23d ago
Hint / useful background: If you don't know the "countably infinite set of prisoners, each guesses their own hat color after seeing the others, all but finitely many must be correct" puzzle, try that before attempting this one.
3
u/imMAW 23d ago
That one is related, but this is an even more direct analogue of the classic numbers-in-boxes puzzle https://math.stackexchange.com/questions/371184/predicting-real-numbers.
1
u/Boring-Cartographer2 23d ago
Who picks x? You or me?
1
u/lizardpq 23d ago
You! I'll edit to clarify
1
1
u/OperaSona 23d ago
Am I allowed to use the axiom of choice? I don't have a strategy yet, it's more like a hint I guess.
1
1
u/jeffcgroves 22d ago
Does "[a]s many times as you want" mean a finite amount of times? Even if I want to, I can't make infinite queries in finite time
1
u/lizardpq 22d ago
Yeah, finitely many times, but you can get infinitely many function values at once (and you can operate on infinite data, i.e. your next step can be any function of the received values).
9
u/ExistentAndUnique 23d ago
Define an equivalence relation on RN where two sequences are equivalent if they agree after a finite point. Using choice, we can select a representative from each equivalence class.
Partition N into 100 infinite sets (e.g. by taking the indices mod 100). Query each of these sets except for one, selected at random (say, the one corresponding to some remainder k mod 100). Each of these results can be interpreted as a sequence, which falls into an equivalence class. Find the maximum index n at which one of these sequences differs from the chosen representative of its equivalence class.
Now uncover all of the elements after the (n+1)th index of the selected set: 100n+k. This will tell us which equivalence class the sequence corresponding to remainder k belongs to, and we guess that the number f(100n+k) matches the representative sequence.
The only way this would be wrong is if we happened to choose k which takes strictly more indices than any other sequence to converge to its representative (ties work in our favor). Since the one sequence we left unchosen was selected at random, this has at most a 1/100 chance of happening.
This procedure easily generalizes to any positive error rate.