The second-order sequence of the general formula of the sequence
According to the concept of a first-order recursive sequence, we can define a recursive expression that simultaneously contains an 2, an 1, and an as a second-order sequence. Compared with the first-order sequence, the general term formula of the second-order sequence is more complicated. In order to facilitate the transformation, let us first explain the simple form of the second-order sequence:
an 2 = A * an 1 B * an , (Similarly, A and B are constant coefficients) The basic idea is similar to the first order, but when compounding, pay attention to the undetermined coefficients and corresponding terms
Composition of the original formula: Let the original formula be transformed into this form an 2 - ψ * an 1 = ω (an 1 - ψ * an)
Compare this formula with the original formula, we can get
ψω = A and -(ψ*ω) = B
The values of ψ and ω can be obtained by solving these two equations,
Let bn = an 1 - ψ*an, the original formula becomes bn 1 = ω *bn geometric sequence, and the bn general term formula bn= f (n) can be obtained,
Through the given equation an 1 - ψ*an = f(n), we can observe that this formula is actually the definition of a first-order sequence. This formula only involves two sequence variables an 1 and an, so it can be regarded as "order reduction", converting a second-order sequence into a first-order sequence to solve the problem.
It is known that the general term of the quadratic second-order recursion formula of a certain sequence
A(n 1)=A(n) A(n-1)-2A(n)*A(n-1)
Deformed into 1-A(n 1)=(1-An)(1-A(n-1))
Let Bn=1-An, get
B(n 1)=Bn*B(n-1)
If it can be guaranteed that Bn>0, then you can take the logarithm of both sides to get lgB(n 1)=lgBn lgB(n-1)
Then let Cn=lgB(n 1), then Cn becomes the Fibonacci sequence, which is omitted below
If Bn>0 cannot be guaranteed, observe B3=B2B1
B4=(B2)^2*B1
B5=(B2)^3*(B1)^2
B6=(B2)^5*(B1)^3
Note that Bn=(B2)^x*(B1)^y
Obviously x and y are both Fibonacci numbers, the following will be omitted
(For the Fibonacci sequence, you can search online. Its general terms are more complicated and are not written here)
Note that the result obtained by using the above method may be Cn or Bn, and you need to convert An=1-Bn at the end. Don’t forget it
How to derive the general term formula from the second-order recursion formula?
a(n 1) pan qa(n-1)=0
Suppose a(n 1) xan=y[an xa(n-1)]
a(n 1) (x-y)an-xya(n-1)=0
x-y=p
xy=-q
x1=p√(p^2-4q),y1=√(p^2-4q),
x2=p-√(p^2-4q),y2=-√(p^2-4q),
a(n 1) x1an=y1[an x1a(n-1)]
a(n 1) x2an=y2[an x2a(n-1)]
Division of two equations:
[a(n 1) x1an]/[a(n 1) x2an]=(y1/y2){[an x1a(n-1)]/[an x2a(n-1)]}
Suppose bn=[a(n 1) x1an]/[a(n 1) x2an]
bn=(y1/y2)b(n-1)=-b(n-1)
bn=b1(-1)^(n-1),b1=[a2 x1a1]/[a2 x2a1]
[a(n 1) x1an]/[a(n 1) x2an]=b1(-1)^(n-1)
a(n 1) x1an=b1[a(n 1) x2an](-1)^(n-1)
=[b1(-1)^(n-1)]a(n 1) [b1(-1)^(n-1)]x2an
[1-b1(-1)^(n-1)]a(n 1)={[b1(-1)^(n-1)]x2-x1}an
[1-b1(-1)^(n-2)]an={[b1(-1)^(n-2)]x2-x1}a(n-1)
[1-b1(-1)^(n-3)]a(n-1)={[b1(-1)^(n-3)]x2-x1}a(n-2)
……
[1-b1(-1)^2]a4={[b1(-1)^2]x2-x1}a3
[1-b1(-1)^1]a3={[b1(-1)^1]x2-x1}a2
[1-b1(-1)^0]a2={[b1(-1)^0]x2-x1}a1
Multiply both sides:
[1-b1(-1)^(n-2)][1-b1(-1)^(n-3)]……[1-b1(-1)^2][1-b1 (-1)^1][1-b1(-1)^0]an
={[b1(-1)^(n-2)]x2-x1}{[b1(-1)^(n-3)]x2-x1}……{[b1(-1)^ 2]x2-x1}{[b1(-1)^1]x2-x1}{[b1(-1)^0]x2-x1}a1
The coefficients on both sides are known, and an is out (as long as a1 is provided).
If p and q are specific numbers, both sides can be simplified.
The above is the detailed content of The general formula of a second-order sequence. For more information, please follow other related articles on the PHP Chinese website!

What is Windows 11 Education? If you want to install this system on your PC, how can you do this work? This post from php.cn gives a detailed guide on Windows 11 Education download ISO and how to install it from the ISO file.

Are your Outlook emails not showing up in Inbox, but showing in search? What steps can you do when Outlook not showing all emails? Now in this post given by php.cn Solution, we will introduce several useful methods to help you address the issue and g

If you are trying to power off your computer but encountering the Windows stuck on shutting down screen issue, you can find several helpful fixes from this php.cn guide. Just keep reading to see the details.
![[Complete Guide] How to Fix Microsoft Teams Error CAA50021? - MiniTool](https://img.php.cn/upload/article/001/242/473/174559963580964.png?x-oss-process=image/resize,p_40)
If you are looking for effective solutions to the Microsoft Teams error code CAA50021, this post is worth reading. In this post, php.cn introduces how to get rid of this error in detail. Simply follow it to solve your problem.

Do you want to make Windows 11 or Windows 10 look like Windows XP? Do you know how to do this on your device? You can try the WindowBlinds 11 Beta version now. In this post, php.cn Software will tell you how to download WindowBlinds 11 and introduce

If you can’t use the universal way to uninstall Windows updates due to An error has occurred, Not all of the updates were successfully uninstalled, you can try the methods mentioned in the php.cn post to solve the issue.

What is wacom_tablet.exe? Is the Windows process safe to run? Some people find wacom_tablet.exe can't end process and when this Windows system error happens, you may be overwhelmed and don’t know where to start. On php.cn, this article will resolve y

ChatGPT errors are various and we’ve detected suspicious behavior is a common one. If you are trapped in this issue, what should you do? Go on reading this post from php.cn and you can find some useful fixes to help you get rid of trouble.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version
Recommended: Win version, supports code prompts!
