Let P and Q be two programs take one natural number as input and produce no output and they are not semantically equivalent, that is, there exists at least one input value n such that either P(n) halts or Q(n) halts, but not both.
Is determining one such n incomputable for arbitrary P and Q?
It can't be done by trivial dovetailing.
EDIT:
My tentative answer is that it's incomputable in the general case. Proof:
Let P be an interpreter for a reference Universal Turing machine that evaluates the input k as a program and thus halts if and only if k halts, let be Q: "if k == n then halt, else P(k)" where n is the encoding of a program that does not halt and such that there is no proof (given a formal system) that n does not halt. Then P(n) and Q(n) behave differently, but a Turing machine can never prove it.
I'm a bit puzzled by this proof because we can't explicitly construct Q, but I guess it's still sound, isn't it?