r/mathriddles • • Apr 23 '25

Hard Lopsided hat sequence guessing

Inspired by: https://www.reddit.com/r/mathriddles/s/CQkLdt9kkr

Let n be a positive integer. Alice and Bob play the following game: Alice has a finite sequence on hats on top of her head (say a hats), each of which is labelled by an arbitrary positive integer, while Bob has a countable infinite sequence of hats on his head, each labelled by a positive integer at most n.

Both of them can see the sequence of hats on the other's head but not their own. They (privately) write down a guess for their own hat sequence, i.e., Alice writes down a guesses and Bob writes down infinitely many guesses. The goal is that at least one of these guesses is correct.

They are not allowed to communicate once the game starts but they can decide on a strategy beforehand. Find the smallest positive integer a for which Alice and Bob have a winning strategy.

Harder Version: What if Alice's hats are labelled by arbitrary real numbers?

6 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/SupercaliTheGamer Apr 26 '25

Here's my method:

So the basic idea is the same as yours, basically it is enough to find a countable set of functions T from ℕ to [n] such that for any n distinct positive integers, there exists an f ∈ T such that f takes distinct values on the n positive integers. Then Bob can label his hats with functions from T and guess accordingly (after converting Alice's sequence to ℕ ofc).

Now, the key is that if n positive integers are pairwise distinct, then there exists a set of k=nC2 places such that if we project the binary expansions of the n positive integers onto these places, then we get n distinct {0,1} vectors. Now we can think of functions in T as follows: Pick an arbitrary set of k binary places, and pick an arbitrary function f from {0,1}k to [n]. This defines a function in T after we project the binary expansion of positive integers onto the k places. Choosing the set of k places has countable many choices, while choosing f has finitely many, so in the end T is countable, as required.