您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > 用生成函数求解递推关系
§4用生成函数求解递推关系一、生成函数的定义,,,,,210nhhhh对给定数列nnxhxhxhhxg2210)(令的生成函数。为数列称nhxg)(给定数列生成函数求和展开例1xxxxxg11......1)(n2例2组合数:例31,xnnnnnC,C,C,C210nnnnnnnxxCxCxCCxg)1(...1)(2210牛顿二项系数:,C,,C,C,C210n1,)1()(0xxxCxgnnn,是任意实数例4,2,1,0,C)1(C1nhnknnknn1,)1(1)()(001xxxCxCxgknnnknnnkn的非负整数解的个数方程nxxxk...21,1nh常函数例5.,4321022222的生成函数,,,,求,n,解nnnxnxgnh022)(,...11132xxxx由于...4321)11322xxxx(求导...4321)14322xxxxx(因此...4321)11322223xxxxx(再导...432)1)1()(4232223xxxxxxxxg(得到二、常用求和公式),(),(}{},{xBxAbann的生成函数分别是设xnnnndxxAxxBanbxxAxBnab0)(1)(,11)(')(,.1则若则若)()()(....200110xBxAxCbabababacniininnnn则若逐项求导逐项积分柯西乘积xxAxBaaabnn1)()(,....310则若xxxAAxBaaabnkknnn1)()1()()(....41则收敛若0100)1(/1)()1(1.5nnnnnknnnnknnnnkkxrCxrCrxrxCrx最常用展开式:证明321022:aaabxn210:aaaabxnnxxaxxaxaxB1111)(2210101:aabx00:1abxxAxaxaax1)(112210证明410222)1(:aaAabx-1n10)1(:aaaAbxnnxxaxxaxAxB1111)1()(2100211)1(:aAaabx)1(:12100AaaabxxxAAxaxaaxxxA1)()1(11)1(2210例61111)(2naxxxxAnnnabxxxxB32321)(21)(')(xxxxAxB011003212)1()(bababancxnnxCnnnnnn321111)()()(xxxxxxBxAxC0122)2(211nnnnxCxnnnnnnnnnnnCCCa2)1(22211112例7解133221...)(nnnxfxfxfxfxg设01,102121fhhfffnnn求解递推式1233:fffx......:nx)(])([)(22xgxxxgxxxxg三、求解常系数齐次递推式2344:fffxxxxxxxxg222)()1)((21)(xxxxg怎样展开?21)(xxxxg展成部分分式xxxxg251-1251-1)(xxxg251-1151251-1151)(00n0n25151251512515125151nnnnnnnnxxxnnnf2515125151例8解0332210...)(nnnxhxhxhxhhxg设2,1651021hhhhhnnn求解递推式,2,1,0,34-25nhnnn得012265:hhhx123365:hhhx234465:hhhx......:nx)(6]1)([521)(2xgxxgxxxgxxxxxxg31421565171)(2解出000)3425()3(4)2(5nnnnnnnnxxx例9解0332210...)(nnnxhxhxhxhhxg设1,10,02061210321hhhhhhhnnnn求解递推式02016:01233hhhhx......:nx2)(xxxg])([xxgx]0)([162xgx)(203xgx02016:12344hhhhx02016:23455hhhhx0xxxxxxxxxxxg511495)21(171211492)51()21(20161)(2232解出000)5(495)2)(1(71)2(492nnnnnnxxnx0(-5)4952)1(712492nnnnnxnnnnnnh(-5)4952)1(712492例4解2...)(332210xhxhxhhxg1,10,02061210321hhhhhhhnnnn求解递推式)()20161(32xgxxx0)16()(2012010xhhhxhhh...)(4332210xhxhxhxhxxg...161616-)(164231202xhxhxhxgx...2020)(2041303xhxhxgxxxx2)01611()01(03220161)(xxxxxg解出例4解30332210...)(nnnxhxhxhxhhxg1,10,02061210321hhhhhhhnnnn求解递推式0)2016(3321nnnnnnxhhhh3220161)(xxxxxg解出02016033332223113nnnnnnnnnnnnxhxxhxxhxxh0)(20)(16)()(322xgxxgxxxgxxxxg定理给定阶递推式1102211,,,0...kknknnnhhhhahahahk)()()(:xqxpxG则生成函数必为kkxaxaxaxq2211)()1(kkkaxaxxr11)()2(特征函数:)1()1)(1()()())(()()3(2121xxxxqxxxxrkk若101322112021120110)()()()()4(kkkkkxhahahahxhahahxhahhxp由递推关系确定由初始条件确定
本文标题:用生成函数求解递推关系
链接地址:https://www.777doc.com/doc-3233421 .html