NISHIO Hirokazu[English][日本語]

ARC110D_FPS

image D - Binomial Coefficient is Fun

Solve ARC110D by attributing it to [formal power series

$F_{i}(x) = \sum_{k=0}^{\infty} \binom{k}{A_{i}} x^{k}$ $ G(x) = \prod_{i=1}^{N} F_{i}(x)$ - Lower fixed binomial coefficient → negative binomial theorem : - $\binom{A+i}{A} = [x^i] \sum_n \binom{A+n}{A}x^n = [x^i]\frac{1}{(1-x)^{A+1}} $

  • $i < 0$, since $\binom{A+i}{A} = 0$ $F_{i}(x) = \sum_{k=0}^{\infty} \binom{k}{A_{i}} x^{k} = \frac{x^{A_i}}{(1-x)^{A_i+1}}$

$S := \sum A_i$

$ G(x) = \prod_{i=1}^{N} F_{i}(x) = \frac{x^S}{(1-x)^{S+N}}$

- [Partial sum of coefficients of formal power series](/en/Partial%20sum%20of%20coefficients%20of%20formal%20power%20series) :
  • $\displaystyle \sum_{i=0}^{k} [x^{i}]F = [x^{k}] \frac{1}{1-x}F$

$X = \sum_{i=}^{M} [x^{i}]G = [x^{M}] \frac{1}{1-x}G = [x^{M}]\frac{x^S}{(1-x)^{S+N+1}}$ $= [x^{M-S}]\frac{1}{(1-x)^{S+N+1}}$

- [Power series → binomial coefficient](/en/Power%20series%20%E2%86%92%20binomial%20coefficient) :
- $[x^B]\frac{1}{(1-x)^{A}} = \binom{A+B-1}{A-1}$

$[x^{M-S}]\frac{1}{(1-x)^{S+N+1}} = \binom{S+N+1+M-S-1}{S+N} = \binom{N+M}{S+N}$

reference


This page is auto-translated from /nishio/ARC110D_FPS using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.


(C)NISHIO Hirokazu / Converted from Markdown (en)
Source: [GitHub] / [Scrapbox]