In every round of a tennis championship, assuming the highest seed in every match wins that match, in every round the highest seed plays the lowest remaining seed until the first seed and the second seed meet in the final.
If there are $N$ players, $k$ rounds, the first round we number $m=1$ and the final is round $m=k$, what is the formula for the $n^{th}$ player on court in the first round?
Where choice exists in the order in which competitors can be listed, let's assume the highest seed (lowest number) is always listed first, and the draw is arranged so the highest and next highest seeds are farthest apart. So if $k=3$, the $n^{th}$ player on court is equal to the $n^{th}$ element of $\{1,4,3,2\}$
What is the formula in terms of $n$ and $k$ for the $n^{th}$ player on court?