当前位置:网站首页>[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
边栏推荐
- [combinatorics] recursive equation (special solution form | special solution solving method | special solution example)
- Golang单元测试、Mock测试以及基准测试
- 【RT-Thread】nxp rt10xx 设备驱动框架之--hwtimer搭建和使用
- Kotlin learning quick start (7) -- wonderful use of expansion
- Financial management (Higher Vocational College) financial management online Assignment 1 in autumn 20
- [combinatorics] recursive equation (general solution structure of recursive equation with multiple roots | linear independent solution | general solution with multiple roots | solution example of recu
- 大消费企业怎样做数字化转型?
- [RT thread] NXP rt10xx device driver framework -- RTC construction and use
- Internet Hospital his Management Platform source, online Inquiry, appointment Registration Smart Hospital Small program source
- Qt调节Win屏幕亮度和声音大小
猜你喜欢

Talk about several methods of interface optimization

Notes on problems -- watching videos on edge will make the screen green
![[error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.](/img/a0/4fc0e0741aad2885873e60f2af3387.jpg)
[error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.

POM in idea XML graying solution

1164 Good in C

Great changes! National housing prices fell below the 10000 yuan mark

PS screen printing brush 131, many illustrators have followed suit

免费数据 | 新库上线 | CnOpenData中国保险中介机构网点全集数据

Select 3 fcpx plug-ins. Come and see if you like them

29:第三章:开发通行证服务:12:开发【获得用户账户信息,接口】;(使用VO类包装查到的数据,以符合接口对返回数据的要求)(在多处都会用到的逻辑,在Controller中可以把其抽成一个共用方法)
随机推荐
IntelliJ 2021.3 short command line when running applications
Applet setting multi account debugging
[RT thread] NXP rt10xx device driver framework -- RTC construction and use
Internet Hospital his Management Platform source, online Inquiry, appointment Registration Smart Hospital Small program source
PR second time
vs code 插件 koroFileHeader
Qt调节Win屏幕亮度和声音大小
Kubernetes resource object introduction and common commands (V) - (NFS & PV & PVC)
Leetcode13. Roman numeral to integer (three solutions)
Visual studio "usually, each socket address (Protocol / network address / port) can only be used once“
RedHat 6.2 configuring ZABBIX
Kubernetes resource object introduction and common commands (III)
線程池:業務代碼最常用也最容易犯錯的組件
Apache service suspended asynchronous acceptex failed
[try to hack] active detection and concealment technology
How do large consumer enterprises make digital transformation?
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
AcWing 3438. Number system conversion
Rsync remote synchronization
One brush 144 force deduction hot question-1 sum of two numbers (E)