Given the numbers $0,1,2,\dots,n$. In how many ways one can arrange the numbers using each number exactly once so that no two adjacent numbers sum greater than $n+1$?
I found the answers for small values of $n$. For $n=1$, the answer is $2$. For $n=2$, the answer is $6$. For $n=3$, the answer is $12$. But how to solve this problem for any $n$?