Re: 2015 permutation X2 marathon
In my interpretation, A chooses first, and B chooses second.
First observe that B might as well choose a number adjacent to A's. This is because if there is a gap between A and B (say B = A + 2), then B loses value on the numbers strictly between A and B, whilst still losing on all numbers on the other side of A.
For small A then, B's optimal response is to choose A+1, securing wins on all X > A. Similarly, the optimal response for large A is A-1.
The task is then to find the k=A that maximises the quantity
(f(k) is twice the expectated profit for A if he chooses the number k and B responds optimally.)
The first expression (in the pair that we are taking the min of) increases and the second one decreases and they intersect between 21 and 22. This means that to find the best k for A to choose, we simply need to compare f(21) and f(22).
Directly calculating gives f(22)>f(21) which means A's optimal choice is 22 and B's optimal response is 21.
Out of interest, A is slightly profiting in this game.
Note. The sums above aren't quite correct for k=1,30, but these are obviously far from optimal, and you can compute the EV of these strategies separately if you like.