Pairing with a difference of 1 or 11
Let . In how many ways can be partitioned into pairs such that the two elements of every pair differ by exactly or exactly ?
Show hints (2)+
- Count perfect matchings of the graph on – with edges for differences and .
- Recurse: the smallest unmatched vertex pairs with or ; sum the branches to get .
Answer
Reveal answer →Final 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