当前位置:网站首页>[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
边栏推荐
- Take you to API development by hand
- Y is always discrete and can't understand, how to solve it? Answer: read it several times
- 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
- Golang unit test, mock test and benchmark test
- [combinatorics] recursive equation (the problem of solving recursive equation with multiple roots | the problem is raised)
- PR second time
- LeetCode13.罗马数字转整数(三种解法)
- Wechat applet for the first time
- [try to hack] active detection and concealment technology
- 人生还在迷茫?也许这些订阅号里有你需要的答案!
猜你喜欢
Hongmeng fourth training
[error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.
UE4 official charging resources, with a total price of several thousand
One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
Design e-commerce spike
人生还在迷茫?也许这些订阅号里有你需要的答案!
Test your trained model
TensorBoard快速入门(Pytorch使用TensorBoard)
Cross border e-commerce: advantages of foreign trade enterprises in overseas social media marketing
免费数据 | 新库上线 | CnOpenData中国保险中介机构网点全集数据
随机推荐
Kotlin学习快速入门(7)——扩展的妙用
Applet setting multi account debugging
Qt调节Win屏幕亮度和声音大小
Visual studio "usually, each socket address (Protocol / network address / port) can only be used once“
AcWing 3438. 数制转换
[RT thread] NXP rt10xx device driver framework -- Audio construction and use
【RT-Thread】nxp rt10xx 设备驱动框架之--hwtimer搭建和使用
One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
[combinatorics] recursive equation (characteristic equation and characteristic root | example of characteristic equation | root formula of monadic quadratic equation)
C language string inversion
新库上线 | CnOpenData中国保险机构网点全集数据
New library online | cnopendata China bird watching record data
Analysis of variance summary
图之深度优先搜索
One brush 145 force deduction hot question-2 sum of two numbers (m)
Define a structure fraction to represent a fraction, which is used to represent fractions such as 2/3 and 5/6
Open vsftpd port under iptables firewall
Examination questions for the assignment of selected readings of British and American Literature in the course examination of Fujian Normal University in February 2022
Cross border e-commerce: advantages of foreign trade enterprises in overseas social media marketing
【RT-Thread】nxp rt10xx 设备驱动框架之--rtc搭建和使用