题解:P11655 「FAOI-R5」Lovely 139

· · 题解

由 OEIS 可知答案为

\frac{(2nm+n+m)C_{n+m}^n}{n+m}

注意除法需要逆元。

做完了。

证明。