Thanks for your answers. Regarding the mention of the solution on Wikipedia, it's correct, but I wasn't familiar with it. I may be following the same path without realizing it.
Here's the solution for N=20:
2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 3, 1, 7, 5, 11, 9, 15, 13, 19, 17
P.S.: I also see...