Pairing with a difference of 1 or 11

Let S={1,2,3,,22}S = \{1, 2, 3, \dots, 22\}. In how many ways can SS be partitioned into 1111 pairs such that the two elements of every pair differ by exactly 11 or exactly 1111?

Show hints (2)+
  1. Count perfect matchings of the graph on 112222 with edges for differences 11 and 1111.
  2. Recurse: the smallest unmatched vertex pairs with +1+1 or +11+11; sum the branches to get 145145.

Answer

Reveal answer →

145

Want the full step-by-step worked solution? It's part of Premium - along with a worked solution for every question in the bank.

Asked at: Jane Street, Two Sigma

Related questions