How many ways you can order the numbers $0, 1, 2, 3,..., 12$ using each number exactly once, such that the sum of two adjacent numbers are not greater than $13$? (This is a first round's question of the four rounds of Bangladesh Mathematical Olympiad for class $11$–$12$.)
For example, these are some orderings which satisfy the condition:
- $0, 12, 1, 11, 2, 10, 3, 9, 4, 8, 5, 7, 6$
- $12, 1, 11, 2, 10, 3, 9, 4, 8, 5, 7, 6, 0$
- $1, 12, 0, 11, 2, 10, 3, 9, 4, 8, 5, 6, 7$
- $11, 2, 10, 1, 12, 0, 3, 9, 4, 8, 5, 6, 7$
- $6, 7, 2, 11, 0, 12, 1, 10, 3, 5, 8, 4, 9$