Start from an ordered list of all integers from to . Going from left to right, remove the first number and every other number afterward until the end of the list. Repeat the procedure from right to left, removing the right most number and every other number from the numbers left. Continue removing every other numbers, alternating left to right and right to left, until a single number remains.
Starting with , we have:
Let be the last number left starting with a list of length .
Let .
You are given , , , .
Find .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.