当前位置:网站首页>[combinatorics] generating function (shift property)
[combinatorics] generating function (shift property)
2022-07-03 17:46:00 【Programmer community】
List of articles
- One 、 Shift property of generating function 1 ( To shift backward )
- Two 、 Shift property of generating function 2 ( Forward shift )
Reference blog :
- 【 Combinatorial mathematics 】 Generating function Brief introduction ( Generating function definition | Newton's binomial coefficient | Common generating functions | Related to constants | Related to binomial coefficient | Related to polynomial coefficients )
- 【 Combinatorial mathematics 】 Generating function ( Linear properties | Product properties )
One 、 Shift property of generating function 1 ( To shift backward )
Shift property of generating function 1 ( To shift backward ) :
b
(
n
)
=
{
0
,
n
<
l
a
n
−
l
,
n
≥
l
b(n) = \begin{cases} 0, & n < l \\\\ a_{n-l}, & n \geq l \end{cases}
b(n)=⎩⎪⎨⎪⎧0,an−l,n<ln≥l , be
B
(
x
)
=
x
l
A
(
x
)
B(x) = x^l A(x)
B(x)=xlA(x)
from Known sequence
a
n
a_n
an Of Generating function
A
(
x
)
A(x)
A(x) , seek Another series
b
n
b_n
bn Of Generating function
B
(
x
)
B(x)
B(x) ;
Known sequence
a
n
=
{
a
0
,
a
1
,
⋯
,
a
n
,
⋯
}
a_n = \{a_0, a_1 , \cdots , a_n , \cdots\}
an={ a0,a1,⋯,an,⋯} , The generating function is
A
(
x
)
A(x)
A(x) ;
The sequence
b
n
b_n
bn And
a
n
a_n
an The relationship is ,
b
n
b_n
bn stay
a
n
a_n
an Added in front of
l
l
l individual
0
0
0 ;
The sequence
a
n
a_n
an :
a
0
,
a
1
,
⋯
,
a
n
,
⋯
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ a_0, a_1 , \cdots , a_n , \cdots
a0,a1,⋯,an,⋯
The sequence
b
n
b_n
bn :
0
,
0
,
⋯
,
0
⏟
l
individual
0
,
\begin{matrix} \underbrace{ 0, 0, \cdots , 0 } \\ l individual 0 \end{matrix} ,
0,0,⋯,0l individual 0,
a
0
,
a
1
,
⋯
,
a
n
,
⋯
a_0, a_1 , \cdots , a_n , \cdots
a0,a1,⋯,an,⋯
The sequence
b
n
b_n
bn The generating function of , front
l
l
l The coefficients of the terms are
0
0
0 , So you can omit ,
- The first
l
l
B
(
x
)
B(x)
B(x) The generating function item of is
a
0
x
l
a_0x^l
a0xl , Corresponding
A
(
x
)
A(x)
A(x) The generating function item in is
a
0
a_0
a0
l term ,
- The first
l
+
1
l+1
B
(
x
)
B(x)
B(x) The generating function item of is
a
1
x
l
+
1
a_1x^{l+1}
a1xl+1 , Corresponding
A
(
x
)
A(x)
A(x) The generating function item in is
a
1
x
a_1x
a1x
l+1 term ,
B
(
x
)
B(x)
B(x) Generating function Each of them is just The sequence
a
n
a_n
an Of Generating function
A
(
x
)
A(x)
A(x) Each On the basis of , multiply
x
l
x^l
xl that will do ;
Two 、 Shift property of generating function 2 ( Forward shift )
Shift property of generating function 2 ( Forward shift ) :
b
n
=
a
n
+
1
b_n = a_{n+1}
bn=an+1 , be
B
(
x
)
=
A
(
x
)
−
∑
n
=
0
l
−
1
a
n
x
n
x
l
B(x) = \cfrac{A(x) - \sum\limits_{n=0}^{l-1} a_nx^n }{x^l}
B(x)=xlA(x)−n=0∑l−1anxn
from Known sequence
a
n
a_n
an Of Generating function
A
(
x
)
A(x)
A(x) , seek Another series
b
n
b_n
bn Of Generating function
B
(
x
)
B(x)
B(x) ;
Known sequence
a
n
=
{
a
0
,
a
1
,
⋯
,
a
n
,
⋯
}
a_n = \{a_0, a_1 , \cdots , a_n , \cdots\}
an={ a0,a1,⋯,an,⋯} , The generating function is
A
(
x
)
A(x)
A(x) ;
The sequence
b
n
b_n
bn And
a
n
a_n
an The relationship is ,
b
n
b_n
bn stay
a
n
a_n
an It moves backwards on the basis of
l
l
l position ,
b
0
b_0
b0 And
a
l
a_l
al Same value ,
b
1
b_1
b1 And
a
l
+
1
a_{l+1}
al+1 Same value ;
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \,
The sequence
a
n
a_n
an :
a
0
,
a
1
,
⋯
,
a
l
,
a
l
+
1
⋯
a_0, a_1 , \cdots , a_l , a_{l+1} \cdots
a0,a1,⋯,al,al+1⋯
The sequence
b
n
b_n
bn :
b
0
,
b
1
,
⋯
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ b_0 , b_1 , \cdots
b0,b1,⋯
according to
A
(
x
)
A(x)
A(x) seek
B
(
x
)
B(x)
B(x) :
stay
A
(
x
)
A(x)
A(x) On the basis of , Before subtraction
l
l
l term , namely from
0
0
0 To
l
−
1
l-1
l−1 term ,
a
0
,
a
1
x
,
a
2
x
2
,
⋯
a
l
−
1
x
l
−
1
a_0 , a_1x , a_2x^2 , \cdots a_{l-1}x^{l-1}
a0,a1x,a2x2,⋯al−1xl−1 , So there is
A
(
x
)
−
∑
n
=
0
l
−
1
a
n
x
n
A(x) - \sum\limits_{n=0}^{l-1} a_nx^n
A(x)−n=0∑l−1anxn ;
A
(
x
)
A(x)
A(x) Generating function Of Remaining items , Each item is better than
B
(
x
)
B(x)
B(x) many
x
l
x^l
xl times , Divide
x
l
x^l
xl that will do ;
In the above
A
(
x
)
−
∑
n
=
0
l
−
1
a
n
x
n
A(x) - \sum\limits_{n=0}^{l-1} a_nx^n
A(x)−n=0∑l−1anxn On the basis of , Divide
x
l
x^l
xl , obtain
B
(
x
)
=
A
(
x
)
−
∑
n
=
0
l
−
1
a
n
x
n
x
l
B(x) = \cfrac{A(x) - \sum\limits_{n=0}^{l-1} a_nx^n }{x^l}
B(x)=xlA(x)−n=0∑l−1anxn ;
边栏推荐
- MinGW compile boost library
- [RT thread] NXP rt10xx device driver framework -- RTC construction and use
- AcWing 4489. 最长子序列
- POM in idea XML graying solution
- VM11289 WAService. js:2 Do not have __ e handler in component:
- [combinatorics] recursive equation (the problem of solving recursive equation with multiple roots | the problem is raised)
- SQL injection database operation foundation
- How to read the source code [debug and observe the source code]
- Applet setting multi account debugging
- Where is the monitoring page of RDS database?
猜你喜欢
Kubernetes resource object introduction and common commands (III)
The third day of writing C language by Yabo people
Discussion sur la logique de conception et de mise en oeuvre du processus de paiement
Talk about the design and implementation logic of payment process
List的stream中Long对象与long判等问题记录
[UE4] brush Arctic pack high quality Arctic terrain pack
1147_ Makefile learning_ Target files and dependent files in makefile
QT adjust win screen brightness and sound size
[RT thread] construction and use of --hwtimer of NXP rt10xx device driver framework
聊聊支付流程的设计与实现逻辑
随机推荐
What is the difference between cloud server and cloud virtual machine
PHP returns 500 errors but no error log - PHP return 500 error but no error log
[combinatorics] recursive equation (the non-homogeneous part is an exponential function and the bottom is the characteristic root | example of finding a special solution)
The gbase 8A database does not support the DB2 function value (column_name, 0) cluster syntax
2021 ICPC regional competition (Shanghai) g.edge groups (tree DP)
Hongmeng fourth training
How to train mask r-cnn model with your own data
ArrayList分析3 : 删除元素
[combinatorics] recursive equation (solution of linear non-homogeneous recursive equation with constant coefficients | standard form and general solution of recursive equation | proof of general solut
Interviewer: why is the value nil not equal to nil?
Assignment examination questions of advanced English (III) for the course examination of Fujian Normal University in February 2022
Inheritance of ES6 class
Qt调节Win屏幕亮度和声音大小
Market demand survey and marketing strategy analysis report of global and Chinese pet milk substitutes 2022-2028
[combinatorics] recursive equation (summary of the solution process of recursive equation | homogeneous | double root | non-homogeneous | characteristic root is 1 | exponential form | the bottom is th
Talk about the design and implementation logic of payment process
Cloud primordial weekly | CNCF released the 2021 cloud primordial development status report, which was released on istio 1.13
Create a new file from templates with bash script - create new file from templates with bash script
POM in idea XML graying solution
微服务组件Sentinel控制台调用