当前位置:网站首页>[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
边栏推荐
- First day of rhcsa study
- Squid 服务启动脚本
- Thread pool: the most common and error prone component of business code
- Wechat applet for the first time
- 鸿蒙第四次培训
- One brush 145 force deduction hot question-2 sum of two numbers (m)
- The largest matrix (H) in a brush 143 monotone stack 84 histogram
- [combinatorics] recursive equation (special solution form | special solution solving method | special solution example)
- 1164 Good in C
- Applet setting multi account debugging
猜你喜欢
Internet Hospital his Management Platform source, online Inquiry, appointment Registration Smart Hospital Small program source
kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)
Life is still confused? Maybe these subscription numbers have the answers you need!
What is your income level in the country?
Cross border e-commerce: advantages of foreign trade enterprises in overseas social media marketing
跨境电商:外贸企业做海外社媒营销的优势
Swm32 series Tutorial 4 port mapping and serial port application
Hongmeng fourth training
Free data | new library online | cnopendata complete data of China's insurance intermediary outlets
Pools de Threads: les composants les plus courants et les plus sujets aux erreurs du Code d'affaires
随机推荐
Examination questions for the assignment of selected readings of British and American Literature in the course examination of Fujian Normal University in February 2022
Take you to API development by hand
[combinatorics] recursive equation (the problem of solving recursive equation with multiple roots | the problem is raised)
UE4 official charging resources, with a total price of several thousand
Rsync远程同步
A day's work list of an ordinary programmer
Y is always discrete and can't understand, how to solve it? Answer: read it several times
The difference between get and post
TensorBoard快速入门(Pytorch使用TensorBoard)
[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
How to enforce parameters in PowerShell- How do I make parameters mandatory in PowerShell?
Define a structure fraction to represent a fraction, which is used to represent fractions such as 2/3 and 5/6
Leetcode: lucky number in matrix
QT adjust win screen brightness and sound size
绝对定位时元素水平垂直居中
Vs code plug-in korofileheader
[error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.
Golang单元测试、Mock测试以及基准测试
PS screen printing brush 131, many illustrators have followed suit
Rsync remote synchronization