r/mathriddles • u/lizardpq • Oct 13 '26
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.
18
Upvotes
9
u/ExistentAndUnique Oct 13 '26
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.
4
u/lizardpq Oct 13 '26
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.
1
u/Boring-Cartographer2 Oct 13 '26
Who picks x? You or me?
1
u/OperaSona Oct 13 '26
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
u/jeffcgroves Oct 14 '26
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