Find out whether this sequence can be obtained in this particular order:Each number from 1...

Maliyah Robles
Answered
2022-07-14
Find out whether this sequence can be obtained in this particular order:
Each number from 1 to 2021 occurs twice (1,1,2,2,3,3,....so on). Can we arrange it in such a way that between first occurrence and second occurrence of k there are exactly k numbers?
I can see that numbers 1,1,2,2,3,3 can be arranged like 312132. But I am not able to proceed any further. Please help me here as early as possible. Thank you in advance.