This is a thought experiment that has been noodeling around in my head for a while but I'm yet to come up with a good answer to it.
Suppose a philosopher angry at almost staving due to a deadlock has imprisoned a computer scientist in a room with a programmable Turing equivalent machine, a clock and a light bulb affixed to the wall (along with the basic necessities of life).
When programmed the machine will act as a function $\mathbb{N} \to \{0,1\}$. Each day at noon the light will either be switched on or remain off. If the computer scientist correctly guesses if the light will be switched on then they are rewarded with copies of interesting papers however if they guess incorrectly they are punished by being forced to grade first year undergraduate essays.
The computer scientist knows that the light's sequence has been created by a Turing machine exactly like there own running a single non changing program that the scientist does not know.
What is the best strategy to maximise the computer scientist's reward.
I interpret the problem to be:
The philosopher has some Turing machine implementing some function $f: \mathbb{N} \to \{0,1\}$
The scientist tries to guess $f(n)$ on day $n$. They can use past observations $f(1), f(2), ..., f(n-1)$ if desired. To help them guess, they are welcome to use a Turing machine (or not, i.e. just use pure thinking).
The two Turing machines do not necessarily have anything in common like state space, alphabets, etc.
The specification that the philosopher has a Turing machine simply means $f$ must be computable.
The specification that the scientist has a Turing machine simply means they don't have some other oracle.
First of all, is my interpretation correct?
IMHO if you can't make any assumptions about the distribution of the philosopher's choice of $f$, there is nothing you can do. For every Turing machine $M$ that outputs a specific sequence the first $n-1$ days and then $0$ on the $n$th day, there is another machine $M'$ that outputs the same sequence followed by $1$ on the $n$th day, and vice versa -- simply add the equivalent of an IF statement.
If not for the halting problem (haha!) then a good approach would have been: always guess that the philosopher is using the "smallest" Turing machine possible that fits the observed sequence. ("Small" is defined as being listed early in a list of all the countably infinite machines.) If only you could solve the halting problem (i.e. by having such an oracle), this would have worked because after some finite no. of days you would have the correct machine and can enjoy success forever after.
In reality the following might be worth trying...? Replace "the smallest Turing machine" idea with the "most compressible sequence". I.e. guess whichever one of $(f(1),...,f(n-1), 0)$ or $(f(1),...,f(n-1),1)$ is "more compressible". Now of course, there are lots of theoretical problems with the notion of "more compressible" -- i.e. compression by what class of machine/oracle/description? But instead of going "high-tech" like that, we can go "low-tech" and just compress by Ziv-Lempel, or even Huffman code, and hope for the best. :)