当前位置:网站首页>[combinatorics] recursive equation (case where the non-homogeneous part is exponential | example where the non-homogeneous part is exponential)
[combinatorics] recursive equation (case where the non-homogeneous part is exponential | example where the non-homogeneous part is exponential)
2022-07-03 17:23:00 【Programmer community】
List of articles
- One 、 The non-homogeneous part is exponential
- Two 、 The non-homogeneous part is exponential Example
One 、 The non-homogeneous part is exponential
Linear Nonhomogeneous recurrence equation with constant coefficients :
H
(
n
)
−
a
1
H
(
n
−
1
)
−
⋯
−
a
k
H
(
n
−
k
)
=
f
(
n
)
H(n) - a_1H(n-1) - \cdots - a_kH(n-k) = f(n)
H(n)−a1H(n−1)−⋯−akH(n−k)=f(n) ,
n
≥
k
,
a
k
≠
0
,
f
(
n
)
≠
0
n\geq k , a_k\not= 0, f(n) \not= 0
n≥k,ak=0,f(n)=0
The left side of the above equation And “ Linear homogeneous recurrence equation with constant coefficients ” It's the same , But not on the right
0
0
0 , It's based on
n
n
n Of function
f
(
n
)
f(n)
f(n) , This type of recursive equation is called “ Linear Nonhomogeneous recurrence equation with constant coefficients ” ;
The non-homogeneous part is exponential :
If the above “ Linear Nonhomogeneous recurrence equation with constant coefficients ” Of Nonhomogeneous part
f
(
n
)
f(n)
f(n) It's an exponential function ,
β
n
\beta^n
βn ,
If
β
\beta
β Not a characteristic root ,
Then the special solution form of the nonhomogeneous part is :
H
∗
(
n
)
=
P
β
n
H^*(n) = P\beta^n
H∗(n)=Pβn ,
P
P
P Is constant ;
The above special solution
H
∗
(
n
)
=
P
β
n
H^*(n) = P\beta^n
H∗(n)=Pβn , Into the recursive equation , Solve the constant
P
P
P Value , Then the complete special solution is obtained ;
“ Linear Nonhomogeneous recurrence equation with constant coefficients ” The general solution is
H
(
n
)
=
H
(
n
)
‾
+
H
∗
(
n
)
H(n) = \overline{H(n)} + H^*(n)
H(n)=H(n)+H∗(n)
Use the above solution Special solution , And recurrence equation General solution of homogeneous part , Form the complete general solution of the recursive equation ;
Two 、 The non-homogeneous part is exponential Example
Recurrence equation :
a
n
=
6
a
n
−
1
+
8
n
−
1
a_n = 6a_{n-1} + 8^{n-1}
an=6an−1+8n−1
initial value :
a
1
=
7
a_1=7
a1=7
First step , First solve the recursive equation Special solutions corresponding to Nonhomogeneous parts ,
The standard form of recurrence equation is :
a
n
−
6
a
n
−
1
=
8
n
−
1
a_n - 6a_{n-1} = 8^{n-1}
an−6an−1=8n−1
The nonhomogeneous part is
8
n
−
1
8^{n-1}
8n−1 ,
Therefore, its Special solution The form of
a
∗
n
=
P
8
n
−
1
a^*n = P 8^{n-1}
a∗n=P8n−1 , among
P
P
P Is constant ;
The special solution is substituted into the above recursive equation :
P
8
n
−
1
−
6
P
8
n
−
2
=
8
n
−
1
P 8^{n-1} - 6P 8^{n-2} = 8^{n-1}
P8n−1−6P8n−2=8n−1
stay
6
P
8
n
−
2
6P 8^{n-2}
6P8n−2 Item times
8
8
8 become
6
P
8
n
−
1
6P8^{n-1}
6P8n−1 , Divided by
8
8
8 become
6
P
8
n
−
1
8
=
3
P
8
n
−
1
4
\cfrac{6P8^{n-1}}{8}=\cfrac{3P8^{n-1}}{4}
86P8n−1=43P8n−1 , Into the equation ,
P
8
n
−
1
−
3
P
8
n
−
1
4
=
8
n
−
1
P 8^{n-1} - \cfrac{3P8^{n-1}}{4} = 8^{n-1}
P8n−1−43P8n−1=8n−1
P
8
n
−
1
4
=
8
n
−
1
\cfrac{P8^{n-1}}{4} = 8^{n-1}
4P8n−1=8n−1
P
4
=
1
\cfrac{P}{4} = 1
4P=1
P
=
4
P = 4
P=4
The constant term in the special solution
P
=
4
P=4
P=4 , The final solution is
a
∗
n
=
4
×
8
n
−
1
a^*n = 4\times 8^{n-1}
a∗n=4×8n−1
The second step , Find the general solution of the homogeneous part
The standard form of recurrence equation is :
a
n
−
6
a
n
−
1
=
8
n
−
1
a_n - 6a_{n-1} = 8^{n-1}
an−6an−1=8n−1 ,
Homogeneous part is
a
n
−
6
a
n
−
1
=
0
a_n - 6a_{n-1} = 0
an−6an−1=0
Write the characteristic equation :
x
−
6
=
0
x - 6 = 0
x−6=0 ,
Characteristic root
q
=
6
q= 6
q=6
Write the homogeneous partial general solution form :
a
n
‾
=
c
×
6
n
\overline{a_n} = c \times 6^n
an=c×6n
“ Linear Nonhomogeneous recurrence equation with constant coefficients ” The general solution is
a
n
=
a
n
‾
+
a
∗
n
a_n = \overline{a_n} + a^*n
an=an+a∗n
The general solution of the recurrence equation is :
a
n
=
c
×
6
n
+
4
×
8
n
−
1
a_n = c \times 6^n + 4\times 8^{n-1}
an=c×6n+4×8n−1
The third step , Substitute into the initial value , Find the final general solution
Substitute into the initial value
a
1
=
7
a_1 = 7
a1=7 Get from the above general solution
c
×
6
1
+
4
×
8
1
−
1
=
7
c \times 6^1 + 4 \times 8^{1-1} = 7
c×61+4×81−1=7
6
c
+
4
=
7
6c + 4 = 7
6c+4=7
c
=
1
2
c=\cfrac{1}{2}
c=21
a
n
=
c
×
6
n
+
4
×
8
n
−
1
a_n = c \times 6^n + 4\times 8^{n-1}
an=c×6n+4×8n−1 Constants in the general solution
c
=
1
2
c=\cfrac{1}{2}
c=21 , Substitute constants into ,
The general explanation is
a
n
=
1
2
×
6
n
+
4
×
8
n
−
1
a_n = \cfrac{1}{2} \times 6^n + 4\times 8^{n-1}
an=21×6n+4×8n−1
边栏推荐
- Examination questions for the assignment of selected readings of British and American Literature in the course examination of Fujian Normal University in February 2022
- PR second time
- [RT thread] NXP rt10xx device driver framework -- pin construction and use
- TensorBoard快速入门(Pytorch使用TensorBoard)
- One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
- The difference between get and post
- Pools de Threads: les composants les plus courants et les plus sujets aux erreurs du Code d'affaires
- 简单配置PostFix服务器
- Squid 服务启动脚本
- Solution to long waiting time of SSH connection to remote host
猜你喜欢
How do large consumer enterprises make digital transformation?
【JokerのZYNQ7020】DDS_ Compiler。
SWM32系列教程4-端口映射及串口应用
Golang单元测试、Mock测试以及基准测试
Pools de Threads: les composants les plus courants et les plus sujets aux erreurs du Code d'affaires
kubernetes资源对象介绍及常用命令(四)
大变局!全国房价,跌破万元大关
2021 ICPC regional competition (Shanghai) g.edge groups (tree DP)
How to read the source code [debug and observe the source code]
Take you to API development by hand
随机推荐
C language string practice
Squid 服务启动脚本
[combinatorics] recursive equation (example of solving recursive equation without multiple roots | complete process of solving recursive equation without multiple roots)
1164 Good in C
New library online | cnopendata complete data of Chinese insurance institution outlets
[combinatorics] recursive equation (special solution example 1 Hannover tower complete solution process | special solution example 2 special solution processing when the characteristic root is 1)
Kubernetes resource object introduction and common commands (4)
HP 阵列卡排障一例
互聯網醫院HIS管理平臺源碼,在線問診,預約掛號 智慧醫院小程序源碼
Hongmeng third training
Prepare for the golden three silver four, 100+ software test interview questions (function / interface / Automation) interview questions. win victory the moment one raises one 's standard
鸿蒙第三次培训
网络硬盘NFS的安装与配置
29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da
Test your trained model
RedHat 6.2 配置 Zabbix
Examination questions for the assignment of selected readings of British and American Literature in the course examination of Fujian Normal University in February 2022
Define a structure fraction to represent a fraction, which is used to represent fractions such as 2/3 and 5/6
29:第三章:开发通行证服务:12:开发【获得用户账户信息,接口】;(使用VO类包装查到的数据,以符合接口对返回数据的要求)(在多处都会用到的逻辑,在Controller中可以把其抽成一个共用方法)
SVN完全备份svnadmin hotcopy