Ordinary generating function

A sequence an a_nan Coefficients as polynomials

g ( x ) = a 0 + a 1 x + a 2 x 2 … a n x n ( − 1 < x < 1 ) g(x) = a_0 + a_1x + a_2x^2 \dots a_nx^n (-1 < x < 1) g(x)=a0+a1x+a2x2anxn(1<x<1)

The value range of x helps to converge and is reduced to a closed form

Split the original problem into multiple sub-problems, and do polynomial multiplication according to the principle of multiplication

Finally, the coefficient of the nth term is the answer to n

Two closed forms

a n = C m n a_n = C_m^n an=Cmn , g ( x ) = ∑ C m n a n = ( 1 + x ) m g(x) = \sum C_m^n a^n = (1 + x)^m g(x)=Cmnan=(1+x)m (binomial theorem)

a n = C m n a_n = C_m^n an=Cmn , g ( x ) = ∑ C m + n n a n = ( 1 − x ) m + 1 g(x) = \sum C_{m + n}^n a^n = (1 - x)^{m+1} g(x)=Cm+nnan=(1x)m+1

Guess you like

Origin blog.csdn.net/qq_39602052/article/details/113481191