What is the closed form of the $f$ with $f(1)=1$, $f(2)=7$ and $f(n)=7f(n-1)-12f(n-2)$ ($nge 3$)?How to solve this recurrence $K(n)=2K(n-1)-K(n-2)+C$?How to find a closed form solution to a recurrence of the following form?Converting Recursive Function into Closed/Explicit FormHow to find the generating function and the closed form for the generating formHelp finding a closed formClosed form of partial hypergeometric sumFinding a closed form for a recurrence relation $a_n=3a_n-1+4a_n-2$What is the method used here to convert this recurrence to closed form?A closed form for $sum _j=0^infty -fraczeta (-j)Gamma (j)$
How do I protect myself from bad contracting jobs?
Was the whistle-blower's (12 Aug 2019) complaint deemed credible?
Printing Command Line Unicode Chess Board
How can trusted host patterns be set dynamically?
If a creature has advantage against spells and magical effects, is it resistant to magical attacks?
Is this a deadly encounter?
Do rainbows show spectral lines from the sun?
What is the difference between turbojet and turbofan engines?
Puzzle Hunt 01: A cliched treasure map
Hoping for a satisfying conclusion (a musical connect wall)
Possible executive assistant job scam
Morphing between two functions
Weird spacing in aligned environment
Chacha20 internal counter/position and nonce
Single word for delaying an unpleasant task
How should a leader behave when they miss deadlines themselves?
Novel where a serial killer lives (almost) forever by swapping bodies
Why do airports in the UK have so few runways?
How to reduce thousand of faces of an already low poly object
How is the entropy at the time of the Big Bang calculated?
Grammar from Sherlock Holmes: Count Dracula and Ebenezer Scrooge come to mind
Which GPIO pins does the Pi Zero camera use?
What would a life-form be like if it's antimatter-based
Do natural weapons work with the Booming Blade spell?
What is the closed form of the $f$ with $f(1)=1$, $f(2)=7$ and $f(n)=7f(n-1)-12f(n-2)$ ($nge 3$)?
How to solve this recurrence $K(n)=2K(n-1)-K(n-2)+C$?How to find a closed form solution to a recurrence of the following form?Converting Recursive Function into Closed/Explicit FormHow to find the generating function and the closed form for the generating formHelp finding a closed formClosed form of partial hypergeometric sumFinding a closed form for a recurrence relation $a_n=3a_n-1+4a_n-2$What is the method used here to convert this recurrence to closed form?A closed form for $sum _j=0^infty -fraczeta (-j)Gamma (j)$
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
.everyonelovesstackoverflowposition:absolute;height:1px;width:1px;opacity:0;top:0;left:0;pointer-events:none;
$begingroup$
Suppose $f(1)=1$ and $f(2)=7$. For $nge 3$ we have
$$f(n)=7f(n-1)-12f(n-2).
$$
What is the closed form of the function $f$?
I've tried unrolling it but it gets very complicated very quickly without a clear pattern emerging. Any ideas?
discrete-mathematics recurrence-relations closed-form recursion
$endgroup$
add a comment
|
$begingroup$
Suppose $f(1)=1$ and $f(2)=7$. For $nge 3$ we have
$$f(n)=7f(n-1)-12f(n-2).
$$
What is the closed form of the function $f$?
I've tried unrolling it but it gets very complicated very quickly without a clear pattern emerging. Any ideas?
discrete-mathematics recurrence-relations closed-form recursion
$endgroup$
add a comment
|
$begingroup$
Suppose $f(1)=1$ and $f(2)=7$. For $nge 3$ we have
$$f(n)=7f(n-1)-12f(n-2).
$$
What is the closed form of the function $f$?
I've tried unrolling it but it gets very complicated very quickly without a clear pattern emerging. Any ideas?
discrete-mathematics recurrence-relations closed-form recursion
$endgroup$
Suppose $f(1)=1$ and $f(2)=7$. For $nge 3$ we have
$$f(n)=7f(n-1)-12f(n-2).
$$
What is the closed form of the function $f$?
I've tried unrolling it but it gets very complicated very quickly without a clear pattern emerging. Any ideas?
discrete-mathematics recurrence-relations closed-form recursion
discrete-mathematics recurrence-relations closed-form recursion
edited Aug 31 at 18:34
Jack
29.8k19 gold badges89 silver badges216 bronze badges
29.8k19 gold badges89 silver badges216 bronze badges
asked Jul 14 at 3:39
Samuel ErensSamuel Erens
1426 bronze badges
1426 bronze badges
add a comment
|
add a comment
|
4 Answers
4
active
oldest
votes
$begingroup$
Write $a_n = f(n)$ instead.
- Step 1
You can note that $$a_n+1-4a_n = 3(a_n-4a_n-1)$$ so putting $b_n=a_n-4a_n-1$ you get $$b_n+1 = 3b_n$$ so $b_n$ is geometric progression, with $b_2=3$ so $b_1=1$ and thus $$b_n = 3^n-1$$ so $$boxeda_n+1-4a_n =3^n$$
- Step 2
You can also note that $$a_n+1-3a_n = 4(a_n-3a_n-1)$$ so putting $c_n=a_n-3a_n-1$ you get $$c_n+1 = 4c_n$$ so $c_n$ is geometric progression, with $c_2=4$ so $c_1=1$ and thus $$c_n = 4^n-1$$ so $$boxeda_n+1-3a_n = 4^n$$
- Step 3
If you substract those formulas in boxes you get:
$$boxeda_n = 4^n- 3^n$$
$endgroup$
7
$begingroup$
Well, that is elegant! (+1)
$endgroup$
– mrtaurho
Jul 14 at 15:35
2
$begingroup$
You should really explain how you just "note" that first step...
$endgroup$
– Mehrdad
Jul 15 at 3:06
$begingroup$
@Mehrdad it's a simple algebraic rearrangement using $a_n+1=f(n)$ to get $f(n)=7f(n-1)-12f(n-2)Rightarrow a_n+1=7a_n-12a_n-1Rightarrow ldots$.
$endgroup$
– Jam
Jul 15 at 12:27
$begingroup$
@Jam I gave an explanation down.
$endgroup$
– Aqua
Jul 15 at 12:28
1
$begingroup$
@Jam: I don't mean 'how' as in the mechanics of it... I mean 'how' as in, like, the inspiration. It's... not obvious.
$endgroup$
– Mehrdad
Jul 15 at 17:35
|
show 1 more comment
$begingroup$
The characteristic equation is $x^2-7x+12=0$, which factors as $(x-3)(x-4)=0$, yielding two roots, 3 and 4. So $f(n)=acdot 3^n+bcdot 4^n$ for some constants $a$ and $b$. Now use the values of $f(1)$ and $f(2)$ to solve for $a$ and $b$.
$endgroup$
add a comment
|
$begingroup$
Unfortunately I don't know what your mathematical background is to know if this is a useful answer, but I'll post it for the sake of completeness.
What you have is a linear constant-coefficient difference equation.
There are lots of ways to solve them, some specialized, but the usual generic one is linear algebra:
beginalign*
overbracebeginbmatrix a_n+1 \ a_nphantom+1 endbmatrix^x_n+1
&= overbracebeginbmatrix 7 & -12 \ 1 & 0 endbmatrix^A
overbracebeginbmatrix a_nphantom-1 \ a_n-1 endbmatrix^x_n \
&= beginbmatrix 7 & -12 \ 1 & 0 endbmatrix^n-1
beginbmatrix 7 \ 1 endbmatrix
endalign*
Now you want to compute $A^n-1$, for which you'd diagonalize $A$ and get
beginalign*
A^n = beginbmatrix 4 & 1 \ 3 & 1 endbmatrix^-1beginbmatrix 4^n & 0 \ 0 & 3^n endbmatrix beginbmatrix 4 & 1 \ 3 & 1 endbmatrix
endalign*
which you can substitute to obtain $a_n+1$.
$endgroup$
add a comment
|
$begingroup$
Added at request of Mehrdad.
Say we have $$boxeda_n+1 = (x+y)a_n-xya_n-1$$ then we can do: $$a_n+1-xa_n = y(a_n-xa_n-1)$$ and $$a_n+1-ya_n = x(a_n-ya_n-1)$$
Putting $boxedb_n =a_n-xa_n-1$ and $boxedc_n = a_n-ya_n-1$ we can finish as before.
In general $x,y$ are solution of quadratic (characteristic) equation $t^2-pt-q=0$ of recursion $$a_n+1 = pa_n+qa_n-1$$
One more example: $$a_n+1 = 2a_n+8a_n-1.$$ Then we can do $$a_n+1+2a_n = 4(a_n+2a_n-1)$$ and $$a_n+1-4a_n = -2(a_n-4a_n-1)$$
Then with $b_n =a_n+2a_n-1$ and $c_n = a_n-4a_n-1$ we are done...
$endgroup$
$begingroup$
Haha thanks for adding this! I'd have just added it to your previous answer though :P people might get confused on that one without realizing this one clarifies it...
$endgroup$
– Mehrdad
Jul 15 at 8:33
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3292475%2fwhat-is-the-closed-form-of-the-f-with-f1-1-f2-7-and-fn-7fn-1-12f%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Write $a_n = f(n)$ instead.
- Step 1
You can note that $$a_n+1-4a_n = 3(a_n-4a_n-1)$$ so putting $b_n=a_n-4a_n-1$ you get $$b_n+1 = 3b_n$$ so $b_n$ is geometric progression, with $b_2=3$ so $b_1=1$ and thus $$b_n = 3^n-1$$ so $$boxeda_n+1-4a_n =3^n$$
- Step 2
You can also note that $$a_n+1-3a_n = 4(a_n-3a_n-1)$$ so putting $c_n=a_n-3a_n-1$ you get $$c_n+1 = 4c_n$$ so $c_n$ is geometric progression, with $c_2=4$ so $c_1=1$ and thus $$c_n = 4^n-1$$ so $$boxeda_n+1-3a_n = 4^n$$
- Step 3
If you substract those formulas in boxes you get:
$$boxeda_n = 4^n- 3^n$$
$endgroup$
7
$begingroup$
Well, that is elegant! (+1)
$endgroup$
– mrtaurho
Jul 14 at 15:35
2
$begingroup$
You should really explain how you just "note" that first step...
$endgroup$
– Mehrdad
Jul 15 at 3:06
$begingroup$
@Mehrdad it's a simple algebraic rearrangement using $a_n+1=f(n)$ to get $f(n)=7f(n-1)-12f(n-2)Rightarrow a_n+1=7a_n-12a_n-1Rightarrow ldots$.
$endgroup$
– Jam
Jul 15 at 12:27
$begingroup$
@Jam I gave an explanation down.
$endgroup$
– Aqua
Jul 15 at 12:28
1
$begingroup$
@Jam: I don't mean 'how' as in the mechanics of it... I mean 'how' as in, like, the inspiration. It's... not obvious.
$endgroup$
– Mehrdad
Jul 15 at 17:35
|
show 1 more comment
$begingroup$
Write $a_n = f(n)$ instead.
- Step 1
You can note that $$a_n+1-4a_n = 3(a_n-4a_n-1)$$ so putting $b_n=a_n-4a_n-1$ you get $$b_n+1 = 3b_n$$ so $b_n$ is geometric progression, with $b_2=3$ so $b_1=1$ and thus $$b_n = 3^n-1$$ so $$boxeda_n+1-4a_n =3^n$$
- Step 2
You can also note that $$a_n+1-3a_n = 4(a_n-3a_n-1)$$ so putting $c_n=a_n-3a_n-1$ you get $$c_n+1 = 4c_n$$ so $c_n$ is geometric progression, with $c_2=4$ so $c_1=1$ and thus $$c_n = 4^n-1$$ so $$boxeda_n+1-3a_n = 4^n$$
- Step 3
If you substract those formulas in boxes you get:
$$boxeda_n = 4^n- 3^n$$
$endgroup$
7
$begingroup$
Well, that is elegant! (+1)
$endgroup$
– mrtaurho
Jul 14 at 15:35
2
$begingroup$
You should really explain how you just "note" that first step...
$endgroup$
– Mehrdad
Jul 15 at 3:06
$begingroup$
@Mehrdad it's a simple algebraic rearrangement using $a_n+1=f(n)$ to get $f(n)=7f(n-1)-12f(n-2)Rightarrow a_n+1=7a_n-12a_n-1Rightarrow ldots$.
$endgroup$
– Jam
Jul 15 at 12:27
$begingroup$
@Jam I gave an explanation down.
$endgroup$
– Aqua
Jul 15 at 12:28
1
$begingroup$
@Jam: I don't mean 'how' as in the mechanics of it... I mean 'how' as in, like, the inspiration. It's... not obvious.
$endgroup$
– Mehrdad
Jul 15 at 17:35
|
show 1 more comment
$begingroup$
Write $a_n = f(n)$ instead.
- Step 1
You can note that $$a_n+1-4a_n = 3(a_n-4a_n-1)$$ so putting $b_n=a_n-4a_n-1$ you get $$b_n+1 = 3b_n$$ so $b_n$ is geometric progression, with $b_2=3$ so $b_1=1$ and thus $$b_n = 3^n-1$$ so $$boxeda_n+1-4a_n =3^n$$
- Step 2
You can also note that $$a_n+1-3a_n = 4(a_n-3a_n-1)$$ so putting $c_n=a_n-3a_n-1$ you get $$c_n+1 = 4c_n$$ so $c_n$ is geometric progression, with $c_2=4$ so $c_1=1$ and thus $$c_n = 4^n-1$$ so $$boxeda_n+1-3a_n = 4^n$$
- Step 3
If you substract those formulas in boxes you get:
$$boxeda_n = 4^n- 3^n$$
$endgroup$
Write $a_n = f(n)$ instead.
- Step 1
You can note that $$a_n+1-4a_n = 3(a_n-4a_n-1)$$ so putting $b_n=a_n-4a_n-1$ you get $$b_n+1 = 3b_n$$ so $b_n$ is geometric progression, with $b_2=3$ so $b_1=1$ and thus $$b_n = 3^n-1$$ so $$boxeda_n+1-4a_n =3^n$$
- Step 2
You can also note that $$a_n+1-3a_n = 4(a_n-3a_n-1)$$ so putting $c_n=a_n-3a_n-1$ you get $$c_n+1 = 4c_n$$ so $c_n$ is geometric progression, with $c_2=4$ so $c_1=1$ and thus $$c_n = 4^n-1$$ so $$boxeda_n+1-3a_n = 4^n$$
- Step 3
If you substract those formulas in boxes you get:
$$boxeda_n = 4^n- 3^n$$
edited Jul 14 at 20:42
answered Jul 14 at 7:07
AquaAqua
60.1k15 gold badges76 silver badges149 bronze badges
60.1k15 gold badges76 silver badges149 bronze badges
7
$begingroup$
Well, that is elegant! (+1)
$endgroup$
– mrtaurho
Jul 14 at 15:35
2
$begingroup$
You should really explain how you just "note" that first step...
$endgroup$
– Mehrdad
Jul 15 at 3:06
$begingroup$
@Mehrdad it's a simple algebraic rearrangement using $a_n+1=f(n)$ to get $f(n)=7f(n-1)-12f(n-2)Rightarrow a_n+1=7a_n-12a_n-1Rightarrow ldots$.
$endgroup$
– Jam
Jul 15 at 12:27
$begingroup$
@Jam I gave an explanation down.
$endgroup$
– Aqua
Jul 15 at 12:28
1
$begingroup$
@Jam: I don't mean 'how' as in the mechanics of it... I mean 'how' as in, like, the inspiration. It's... not obvious.
$endgroup$
– Mehrdad
Jul 15 at 17:35
|
show 1 more comment
7
$begingroup$
Well, that is elegant! (+1)
$endgroup$
– mrtaurho
Jul 14 at 15:35
2
$begingroup$
You should really explain how you just "note" that first step...
$endgroup$
– Mehrdad
Jul 15 at 3:06
$begingroup$
@Mehrdad it's a simple algebraic rearrangement using $a_n+1=f(n)$ to get $f(n)=7f(n-1)-12f(n-2)Rightarrow a_n+1=7a_n-12a_n-1Rightarrow ldots$.
$endgroup$
– Jam
Jul 15 at 12:27
$begingroup$
@Jam I gave an explanation down.
$endgroup$
– Aqua
Jul 15 at 12:28
1
$begingroup$
@Jam: I don't mean 'how' as in the mechanics of it... I mean 'how' as in, like, the inspiration. It's... not obvious.
$endgroup$
– Mehrdad
Jul 15 at 17:35
7
7
$begingroup$
Well, that is elegant! (+1)
$endgroup$
– mrtaurho
Jul 14 at 15:35
$begingroup$
Well, that is elegant! (+1)
$endgroup$
– mrtaurho
Jul 14 at 15:35
2
2
$begingroup$
You should really explain how you just "note" that first step...
$endgroup$
– Mehrdad
Jul 15 at 3:06
$begingroup$
You should really explain how you just "note" that first step...
$endgroup$
– Mehrdad
Jul 15 at 3:06
$begingroup$
@Mehrdad it's a simple algebraic rearrangement using $a_n+1=f(n)$ to get $f(n)=7f(n-1)-12f(n-2)Rightarrow a_n+1=7a_n-12a_n-1Rightarrow ldots$.
$endgroup$
– Jam
Jul 15 at 12:27
$begingroup$
@Mehrdad it's a simple algebraic rearrangement using $a_n+1=f(n)$ to get $f(n)=7f(n-1)-12f(n-2)Rightarrow a_n+1=7a_n-12a_n-1Rightarrow ldots$.
$endgroup$
– Jam
Jul 15 at 12:27
$begingroup$
@Jam I gave an explanation down.
$endgroup$
– Aqua
Jul 15 at 12:28
$begingroup$
@Jam I gave an explanation down.
$endgroup$
– Aqua
Jul 15 at 12:28
1
1
$begingroup$
@Jam: I don't mean 'how' as in the mechanics of it... I mean 'how' as in, like, the inspiration. It's... not obvious.
$endgroup$
– Mehrdad
Jul 15 at 17:35
$begingroup$
@Jam: I don't mean 'how' as in the mechanics of it... I mean 'how' as in, like, the inspiration. It's... not obvious.
$endgroup$
– Mehrdad
Jul 15 at 17:35
|
show 1 more comment
$begingroup$
The characteristic equation is $x^2-7x+12=0$, which factors as $(x-3)(x-4)=0$, yielding two roots, 3 and 4. So $f(n)=acdot 3^n+bcdot 4^n$ for some constants $a$ and $b$. Now use the values of $f(1)$ and $f(2)$ to solve for $a$ and $b$.
$endgroup$
add a comment
|
$begingroup$
The characteristic equation is $x^2-7x+12=0$, which factors as $(x-3)(x-4)=0$, yielding two roots, 3 and 4. So $f(n)=acdot 3^n+bcdot 4^n$ for some constants $a$ and $b$. Now use the values of $f(1)$ and $f(2)$ to solve for $a$ and $b$.
$endgroup$
add a comment
|
$begingroup$
The characteristic equation is $x^2-7x+12=0$, which factors as $(x-3)(x-4)=0$, yielding two roots, 3 and 4. So $f(n)=acdot 3^n+bcdot 4^n$ for some constants $a$ and $b$. Now use the values of $f(1)$ and $f(2)$ to solve for $a$ and $b$.
$endgroup$
The characteristic equation is $x^2-7x+12=0$, which factors as $(x-3)(x-4)=0$, yielding two roots, 3 and 4. So $f(n)=acdot 3^n+bcdot 4^n$ for some constants $a$ and $b$. Now use the values of $f(1)$ and $f(2)$ to solve for $a$ and $b$.
answered Jul 14 at 3:55
Rob PrattRob Pratt
3,1641 gold badge4 silver badges13 bronze badges
3,1641 gold badge4 silver badges13 bronze badges
add a comment
|
add a comment
|
$begingroup$
Unfortunately I don't know what your mathematical background is to know if this is a useful answer, but I'll post it for the sake of completeness.
What you have is a linear constant-coefficient difference equation.
There are lots of ways to solve them, some specialized, but the usual generic one is linear algebra:
beginalign*
overbracebeginbmatrix a_n+1 \ a_nphantom+1 endbmatrix^x_n+1
&= overbracebeginbmatrix 7 & -12 \ 1 & 0 endbmatrix^A
overbracebeginbmatrix a_nphantom-1 \ a_n-1 endbmatrix^x_n \
&= beginbmatrix 7 & -12 \ 1 & 0 endbmatrix^n-1
beginbmatrix 7 \ 1 endbmatrix
endalign*
Now you want to compute $A^n-1$, for which you'd diagonalize $A$ and get
beginalign*
A^n = beginbmatrix 4 & 1 \ 3 & 1 endbmatrix^-1beginbmatrix 4^n & 0 \ 0 & 3^n endbmatrix beginbmatrix 4 & 1 \ 3 & 1 endbmatrix
endalign*
which you can substitute to obtain $a_n+1$.
$endgroup$
add a comment
|
$begingroup$
Unfortunately I don't know what your mathematical background is to know if this is a useful answer, but I'll post it for the sake of completeness.
What you have is a linear constant-coefficient difference equation.
There are lots of ways to solve them, some specialized, but the usual generic one is linear algebra:
beginalign*
overbracebeginbmatrix a_n+1 \ a_nphantom+1 endbmatrix^x_n+1
&= overbracebeginbmatrix 7 & -12 \ 1 & 0 endbmatrix^A
overbracebeginbmatrix a_nphantom-1 \ a_n-1 endbmatrix^x_n \
&= beginbmatrix 7 & -12 \ 1 & 0 endbmatrix^n-1
beginbmatrix 7 \ 1 endbmatrix
endalign*
Now you want to compute $A^n-1$, for which you'd diagonalize $A$ and get
beginalign*
A^n = beginbmatrix 4 & 1 \ 3 & 1 endbmatrix^-1beginbmatrix 4^n & 0 \ 0 & 3^n endbmatrix beginbmatrix 4 & 1 \ 3 & 1 endbmatrix
endalign*
which you can substitute to obtain $a_n+1$.
$endgroup$
add a comment
|
$begingroup$
Unfortunately I don't know what your mathematical background is to know if this is a useful answer, but I'll post it for the sake of completeness.
What you have is a linear constant-coefficient difference equation.
There are lots of ways to solve them, some specialized, but the usual generic one is linear algebra:
beginalign*
overbracebeginbmatrix a_n+1 \ a_nphantom+1 endbmatrix^x_n+1
&= overbracebeginbmatrix 7 & -12 \ 1 & 0 endbmatrix^A
overbracebeginbmatrix a_nphantom-1 \ a_n-1 endbmatrix^x_n \
&= beginbmatrix 7 & -12 \ 1 & 0 endbmatrix^n-1
beginbmatrix 7 \ 1 endbmatrix
endalign*
Now you want to compute $A^n-1$, for which you'd diagonalize $A$ and get
beginalign*
A^n = beginbmatrix 4 & 1 \ 3 & 1 endbmatrix^-1beginbmatrix 4^n & 0 \ 0 & 3^n endbmatrix beginbmatrix 4 & 1 \ 3 & 1 endbmatrix
endalign*
which you can substitute to obtain $a_n+1$.
$endgroup$
Unfortunately I don't know what your mathematical background is to know if this is a useful answer, but I'll post it for the sake of completeness.
What you have is a linear constant-coefficient difference equation.
There are lots of ways to solve them, some specialized, but the usual generic one is linear algebra:
beginalign*
overbracebeginbmatrix a_n+1 \ a_nphantom+1 endbmatrix^x_n+1
&= overbracebeginbmatrix 7 & -12 \ 1 & 0 endbmatrix^A
overbracebeginbmatrix a_nphantom-1 \ a_n-1 endbmatrix^x_n \
&= beginbmatrix 7 & -12 \ 1 & 0 endbmatrix^n-1
beginbmatrix 7 \ 1 endbmatrix
endalign*
Now you want to compute $A^n-1$, for which you'd diagonalize $A$ and get
beginalign*
A^n = beginbmatrix 4 & 1 \ 3 & 1 endbmatrix^-1beginbmatrix 4^n & 0 \ 0 & 3^n endbmatrix beginbmatrix 4 & 1 \ 3 & 1 endbmatrix
endalign*
which you can substitute to obtain $a_n+1$.
edited Jul 15 at 8:38
answered Jul 15 at 3:25
MehrdadMehrdad
7,2358 gold badges38 silver badges82 bronze badges
7,2358 gold badges38 silver badges82 bronze badges
add a comment
|
add a comment
|
$begingroup$
Added at request of Mehrdad.
Say we have $$boxeda_n+1 = (x+y)a_n-xya_n-1$$ then we can do: $$a_n+1-xa_n = y(a_n-xa_n-1)$$ and $$a_n+1-ya_n = x(a_n-ya_n-1)$$
Putting $boxedb_n =a_n-xa_n-1$ and $boxedc_n = a_n-ya_n-1$ we can finish as before.
In general $x,y$ are solution of quadratic (characteristic) equation $t^2-pt-q=0$ of recursion $$a_n+1 = pa_n+qa_n-1$$
One more example: $$a_n+1 = 2a_n+8a_n-1.$$ Then we can do $$a_n+1+2a_n = 4(a_n+2a_n-1)$$ and $$a_n+1-4a_n = -2(a_n-4a_n-1)$$
Then with $b_n =a_n+2a_n-1$ and $c_n = a_n-4a_n-1$ we are done...
$endgroup$
$begingroup$
Haha thanks for adding this! I'd have just added it to your previous answer though :P people might get confused on that one without realizing this one clarifies it...
$endgroup$
– Mehrdad
Jul 15 at 8:33
add a comment
|
$begingroup$
Added at request of Mehrdad.
Say we have $$boxeda_n+1 = (x+y)a_n-xya_n-1$$ then we can do: $$a_n+1-xa_n = y(a_n-xa_n-1)$$ and $$a_n+1-ya_n = x(a_n-ya_n-1)$$
Putting $boxedb_n =a_n-xa_n-1$ and $boxedc_n = a_n-ya_n-1$ we can finish as before.
In general $x,y$ are solution of quadratic (characteristic) equation $t^2-pt-q=0$ of recursion $$a_n+1 = pa_n+qa_n-1$$
One more example: $$a_n+1 = 2a_n+8a_n-1.$$ Then we can do $$a_n+1+2a_n = 4(a_n+2a_n-1)$$ and $$a_n+1-4a_n = -2(a_n-4a_n-1)$$
Then with $b_n =a_n+2a_n-1$ and $c_n = a_n-4a_n-1$ we are done...
$endgroup$
$begingroup$
Haha thanks for adding this! I'd have just added it to your previous answer though :P people might get confused on that one without realizing this one clarifies it...
$endgroup$
– Mehrdad
Jul 15 at 8:33
add a comment
|
$begingroup$
Added at request of Mehrdad.
Say we have $$boxeda_n+1 = (x+y)a_n-xya_n-1$$ then we can do: $$a_n+1-xa_n = y(a_n-xa_n-1)$$ and $$a_n+1-ya_n = x(a_n-ya_n-1)$$
Putting $boxedb_n =a_n-xa_n-1$ and $boxedc_n = a_n-ya_n-1$ we can finish as before.
In general $x,y$ are solution of quadratic (characteristic) equation $t^2-pt-q=0$ of recursion $$a_n+1 = pa_n+qa_n-1$$
One more example: $$a_n+1 = 2a_n+8a_n-1.$$ Then we can do $$a_n+1+2a_n = 4(a_n+2a_n-1)$$ and $$a_n+1-4a_n = -2(a_n-4a_n-1)$$
Then with $b_n =a_n+2a_n-1$ and $c_n = a_n-4a_n-1$ we are done...
$endgroup$
Added at request of Mehrdad.
Say we have $$boxeda_n+1 = (x+y)a_n-xya_n-1$$ then we can do: $$a_n+1-xa_n = y(a_n-xa_n-1)$$ and $$a_n+1-ya_n = x(a_n-ya_n-1)$$
Putting $boxedb_n =a_n-xa_n-1$ and $boxedc_n = a_n-ya_n-1$ we can finish as before.
In general $x,y$ are solution of quadratic (characteristic) equation $t^2-pt-q=0$ of recursion $$a_n+1 = pa_n+qa_n-1$$
One more example: $$a_n+1 = 2a_n+8a_n-1.$$ Then we can do $$a_n+1+2a_n = 4(a_n+2a_n-1)$$ and $$a_n+1-4a_n = -2(a_n-4a_n-1)$$
Then with $b_n =a_n+2a_n-1$ and $c_n = a_n-4a_n-1$ we are done...
edited Aug 7 at 11:35
answered Jul 15 at 4:41
AquaAqua
60.1k15 gold badges76 silver badges149 bronze badges
60.1k15 gold badges76 silver badges149 bronze badges
$begingroup$
Haha thanks for adding this! I'd have just added it to your previous answer though :P people might get confused on that one without realizing this one clarifies it...
$endgroup$
– Mehrdad
Jul 15 at 8:33
add a comment
|
$begingroup$
Haha thanks for adding this! I'd have just added it to your previous answer though :P people might get confused on that one without realizing this one clarifies it...
$endgroup$
– Mehrdad
Jul 15 at 8:33
$begingroup$
Haha thanks for adding this! I'd have just added it to your previous answer though :P people might get confused on that one without realizing this one clarifies it...
$endgroup$
– Mehrdad
Jul 15 at 8:33
$begingroup$
Haha thanks for adding this! I'd have just added it to your previous answer though :P people might get confused on that one without realizing this one clarifies it...
$endgroup$
– Mehrdad
Jul 15 at 8:33
add a comment
|
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3292475%2fwhat-is-the-closed-form-of-the-f-with-f1-1-f2-7-and-fn-7fn-1-12f%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown