跳到正文

个人记录

loj6728 U 群把妹王

Bennett约 2 分钟
原文
文章信息与版本

文章信息

发布
2023年6月18日
收录
2026年1月7日
更新
2026年11月9日
篇幅
约 2 分钟

版本

  1. v2当前
  2. v1

loj6728 U 群把妹王

The most important part is the PIE coefficient.

with out loss of generality, consider the case of 1 dimension.

denote p:np:n p∈p\in partitions of the set [n][n], ∣pi∣|p_i| the size of the i-th part and ∣p:n∣|p:n| the number of parts.

f(n)f(n) the fake answer(with something counted more than once). g(n)g(n) the genuine answer. d(n)d(n) the answer that all the part are distinct.

c(n)c(n) the PIE coefficient.

f(n)=∑id(i)∑[∣p:n∣=i]f(n)=\sum_id(i)\sum[|p:n|=i] g(n)=∑id(i)∑∣p:n∣=i∏j[∣pj∣∈S]g(n)=\sum_id(i)\sum_{|p:n|=i}\prod_j[|p_j|\in S]

if we choose c(n)c(n) that satisfy

∑p:n(∏jc(∣pj∣))=[n∈S]\sum_{p:n}(\prod_j c(|p_j|))=[n\in S]

simplify g(n)g(n)

g(n)=∑id(i)∑∣p:n∣=i∏j∑q:∣pj∣∏kc(∣qk∣)g(n)=\sum_id(i)\sum_{|p:n|=i}\prod_j\sum_{q:|p_j|}\prod_kc(|q_k|) =∑id(i)∑q:n{∣q:n∣i}∏kc(∣qk∣)=\sum_id(i)\sum_{q:n}\begin{Bmatrix}|q:n|\\i \end{Bmatrix}\prod_kc(|q_k|) =∑j∑∣q:n∣=j∏kc(qk)∑i{ji}d(i)=\sum_j\sum_{|q:n|=j}\prod_kc(q_k)\sum_i \begin{Bmatrix}j\\i \end{Bmatrix}d(i) =∑j∑∣q:n∣=j∏kc(qk)f(j)=\sum_j\sum_{|q:n|=j}\prod_kc(q_k)f(j)

this is equivalent to first get cc by

exp⁡(∑kc(k)xkk!)=1+∑k∈Sxkk!\exp(\sum_k\frac{c(k)x^k}{k!})=1+\sum_{k\in S}\frac{x^k}{k!}

then calculate

∑jf(j)(∑kc(k)xkk!)j1j![xn]n!\sum_jf(j)(\sum_k\frac{c(k)x^k}{k!})^j\frac{1}{j!}[x^n]n!
原文