Closed form solution of Fibonacci-like sequence
$begingroup$
Could someone please tell me the closed form solution of the equation below.
$$F(n) = 2F(n-1) + 2F(n-2)$$
$$F(1) = 1$$
$$F(2) = 3$$
Is there any way it can be easily deduced if the closed form solution of Fibonacci is known?
fibonacci-numbers closed-form recurrence-relations
$endgroup$
add a comment |
$begingroup$
Could someone please tell me the closed form solution of the equation below.
$$F(n) = 2F(n-1) + 2F(n-2)$$
$$F(1) = 1$$
$$F(2) = 3$$
Is there any way it can be easily deduced if the closed form solution of Fibonacci is known?
fibonacci-numbers closed-form recurrence-relations
$endgroup$
1
$begingroup$
The same solution method should work....
$endgroup$
– Hurkyl
Jul 7 '12 at 19:11
$begingroup$
Well, how would you derive the Binet formula for Fibonacci numbers in the first place? You can adapt the same technique to this case.
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:15
$begingroup$
I think we should know two "base cases," e.g. $$F(0)=1\F(1)=1$$ otherwise we can never get the numerical value of $F(n)$.
$endgroup$
– Argon
Jul 7 '12 at 19:17
$begingroup$
@Argon, of course, but in the absence of base cases, we could still have a formula with two arbitrary constants...
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:23
$begingroup$
For your particular initial conditions, you should be getting $$frac1{12}left((3-sqrt{3})left(1-sqrt{3}right)^k+(3+sqrt{3})(1+sqrt 3)^kright)$$
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:43
add a comment |
$begingroup$
Could someone please tell me the closed form solution of the equation below.
$$F(n) = 2F(n-1) + 2F(n-2)$$
$$F(1) = 1$$
$$F(2) = 3$$
Is there any way it can be easily deduced if the closed form solution of Fibonacci is known?
fibonacci-numbers closed-form recurrence-relations
$endgroup$
Could someone please tell me the closed form solution of the equation below.
$$F(n) = 2F(n-1) + 2F(n-2)$$
$$F(1) = 1$$
$$F(2) = 3$$
Is there any way it can be easily deduced if the closed form solution of Fibonacci is known?
fibonacci-numbers closed-form recurrence-relations
fibonacci-numbers closed-form recurrence-relations
edited Jul 7 '12 at 19:46
Argon
16.4k673122
16.4k673122
asked Jul 7 '12 at 19:10
RajRaj
2314
2314
1
$begingroup$
The same solution method should work....
$endgroup$
– Hurkyl
Jul 7 '12 at 19:11
$begingroup$
Well, how would you derive the Binet formula for Fibonacci numbers in the first place? You can adapt the same technique to this case.
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:15
$begingroup$
I think we should know two "base cases," e.g. $$F(0)=1\F(1)=1$$ otherwise we can never get the numerical value of $F(n)$.
$endgroup$
– Argon
Jul 7 '12 at 19:17
$begingroup$
@Argon, of course, but in the absence of base cases, we could still have a formula with two arbitrary constants...
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:23
$begingroup$
For your particular initial conditions, you should be getting $$frac1{12}left((3-sqrt{3})left(1-sqrt{3}right)^k+(3+sqrt{3})(1+sqrt 3)^kright)$$
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:43
add a comment |
1
$begingroup$
The same solution method should work....
$endgroup$
– Hurkyl
Jul 7 '12 at 19:11
$begingroup$
Well, how would you derive the Binet formula for Fibonacci numbers in the first place? You can adapt the same technique to this case.
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:15
$begingroup$
I think we should know two "base cases," e.g. $$F(0)=1\F(1)=1$$ otherwise we can never get the numerical value of $F(n)$.
$endgroup$
– Argon
Jul 7 '12 at 19:17
$begingroup$
@Argon, of course, but in the absence of base cases, we could still have a formula with two arbitrary constants...
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:23
$begingroup$
For your particular initial conditions, you should be getting $$frac1{12}left((3-sqrt{3})left(1-sqrt{3}right)^k+(3+sqrt{3})(1+sqrt 3)^kright)$$
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:43
1
1
$begingroup$
The same solution method should work....
$endgroup$
– Hurkyl
Jul 7 '12 at 19:11
$begingroup$
The same solution method should work....
$endgroup$
– Hurkyl
Jul 7 '12 at 19:11
$begingroup$
Well, how would you derive the Binet formula for Fibonacci numbers in the first place? You can adapt the same technique to this case.
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:15
$begingroup$
Well, how would you derive the Binet formula for Fibonacci numbers in the first place? You can adapt the same technique to this case.
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:15
$begingroup$
I think we should know two "base cases," e.g. $$F(0)=1\F(1)=1$$ otherwise we can never get the numerical value of $F(n)$.
$endgroup$
– Argon
Jul 7 '12 at 19:17
$begingroup$
I think we should know two "base cases," e.g. $$F(0)=1\F(1)=1$$ otherwise we can never get the numerical value of $F(n)$.
$endgroup$
– Argon
Jul 7 '12 at 19:17
$begingroup$
@Argon, of course, but in the absence of base cases, we could still have a formula with two arbitrary constants...
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:23
$begingroup$
@Argon, of course, but in the absence of base cases, we could still have a formula with two arbitrary constants...
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:23
$begingroup$
For your particular initial conditions, you should be getting $$frac1{12}left((3-sqrt{3})left(1-sqrt{3}right)^k+(3+sqrt{3})(1+sqrt 3)^kright)$$
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:43
$begingroup$
For your particular initial conditions, you should be getting $$frac1{12}left((3-sqrt{3})left(1-sqrt{3}right)^k+(3+sqrt{3})(1+sqrt 3)^kright)$$
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:43
add a comment |
4 Answers
4
active
oldest
votes
$begingroup$
Any of the standard methods for solving such recurrences will work. In particular, whatever method you would use to get the Binet formula for the Fibonacci numbers will work here, once you establish initial conditions. If you set $F(0)=0$ and $F(1)=1$, as with the Fibonacci numbers, the closed form is
$$F(n)=frac{(1+sqrt3)^n-(1-sqrt3)^n}{2sqrt3};;$$
I don’t see any way to derive this directly from the corresponding closed form for the Fibonacci numbers, however.
By the way, with those initial values the sequence is OEIS A002605.
Added: The general solution is $$F(n)=A(1+sqrt3)^n+B(1-sqrt3)^n;;tag{1}$$ Argon’s answer already shows you one of the standard methods of obtaining this. To find $A$ and $B$ for a given set of initial conditions, just substitute the known values of $n$ in $(1)$. If you want $F(1)=1$, you must have $$1=F(1)=A(1+sqrt3)^1+B(1-sqrt3)^1;,$$ or $A+B+sqrt3(A-B)=1$. To get $F(2)=3$, you must have $$begin{align*}3&=F(2)=A(1+sqrt3)^2+B(1-sqrt3)^2\
&=A(4+2sqrt3)+B(4-2sqrt3);,
end{align*}$$
or $4(A+B)+2sqrt3(A-B)=3$. You now have the system
$$left{begin{align*}&A+B+sqrt3(A-B)=1\
&4(A+B)+2sqrt3(A-B)=3;.
end{align*}right.$$
Multiply the first equation by $2$ and subtract from the second to get $2(A+B)=1$, and multiply the first equation by $4$ and subtract the second from it to get $2sqrt3(A-B)=1$. Then you have the simple system $$left{begin{align*}&A+B=frac12\&A-B=frac1{2sqrt3};,end{align*}right.$$ which you should have no trouble solving for $A$ and $B$.
$endgroup$
$begingroup$
can you please tell the corresponding F(n) with F(1) = 1 and F(2) = 3
$endgroup$
– Raj
Jul 7 '12 at 19:40
$begingroup$
@Raj: you don't know how to derive it yourself?
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:47
$begingroup$
@Brian and J.M : Thanks you so much for your help.It means a lot to me.
$endgroup$
– Raj
Jul 7 '12 at 20:10
add a comment |
$begingroup$
$$F(n)=2F(n−1)+2F(n−2)=2(F(n-1)+F(n-2))$$
Gives us the recurrence relation
$$r^n=2(r^{n-1}+r^{n-2})$$
we divide by $r^{n-2}$ to get
$$r^2=2(r+1) implies r^2-2r-2=0$$
which is our characteristic equation. The characteristic roots are
$$lambda_1=1-sqrt{3} \
lambda_2=1+sqrt{3}$$
Thus (because we have two different solutions)
$$F(n)=c_1 lambda_1^n+c_2lambda_2^n = c_1(1-sqrt{3})^n+c_2(1+sqrt{3})^n$$
Where $c_1$ and $c_2$ are constants that are chosen based on the base cases $F(n)$.
Brian M. Scott's answer explains how to obtain $c_1$ and $c_2$.
$endgroup$
add a comment |
$begingroup$
Any solution sequence can be written, with real constants $A,B,$ as
$$ A ; left(1 + sqrt 3 right)^n + B ; left(1 - sqrt 3 right)^n. $$
The set of such sequences is a vector space over $mathbb R,$ of dimension 2. The expression below shows a linear combination of basis elements for the vector space.
In comparison, suppose we took
$$ G(n) = 8 G(n-1) - 15 G(n-2).$$ Then, with real constants $A,B$ to be determined, we would have
$$ G(n) = A cdot 5^n + B cdot 3^n $$
$endgroup$
add a comment |
$begingroup$
Define $g(z) = sum_{n ge 0} F(n + 1) z^n$, write the recurrence as:
$$
F(n + 3) = 2 F(n + 2) + 2 F(n + 1) qquad F(1) = 1, F(2) = 3
$$
Multiply the recurrence by $z$, sum over $n ge 0$ and get:
$$
frac{g(z) - F(1) - F(2)}{z^2} = 2 frac{g(z) - F(1)}{z} + 2 g(z)
$$
Solve for $g(z)$:
$$
g(z) = frac{1 + z}{1 - 2 z - 2 z^2}
= frac{2 + sqrt{3}}{2 sqrt{3}} cdot frac{1}{1 - (1 + sqrt{3}) z)}
+ frac{2 - sqrt{3}}{2 sqrt{3}} cdot frac{1}{1 + (1 - sqrt{3})z}
$$
Two geometric series:
$$
T(n+ 1) = frac{2 + sqrt{3}}{2 sqrt{3}} cdot (1 + sqrt{3})^n
+ frac{2 - sqrt{3}}{2 sqrt{3}} cdot (1 - sqrt{3})^n
$$
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
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/3.0/"u003ecc by-sa 3.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%2f167957%2fclosed-form-solution-of-fibonacci-like-sequence%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$
Any of the standard methods for solving such recurrences will work. In particular, whatever method you would use to get the Binet formula for the Fibonacci numbers will work here, once you establish initial conditions. If you set $F(0)=0$ and $F(1)=1$, as with the Fibonacci numbers, the closed form is
$$F(n)=frac{(1+sqrt3)^n-(1-sqrt3)^n}{2sqrt3};;$$
I don’t see any way to derive this directly from the corresponding closed form for the Fibonacci numbers, however.
By the way, with those initial values the sequence is OEIS A002605.
Added: The general solution is $$F(n)=A(1+sqrt3)^n+B(1-sqrt3)^n;;tag{1}$$ Argon’s answer already shows you one of the standard methods of obtaining this. To find $A$ and $B$ for a given set of initial conditions, just substitute the known values of $n$ in $(1)$. If you want $F(1)=1$, you must have $$1=F(1)=A(1+sqrt3)^1+B(1-sqrt3)^1;,$$ or $A+B+sqrt3(A-B)=1$. To get $F(2)=3$, you must have $$begin{align*}3&=F(2)=A(1+sqrt3)^2+B(1-sqrt3)^2\
&=A(4+2sqrt3)+B(4-2sqrt3);,
end{align*}$$
or $4(A+B)+2sqrt3(A-B)=3$. You now have the system
$$left{begin{align*}&A+B+sqrt3(A-B)=1\
&4(A+B)+2sqrt3(A-B)=3;.
end{align*}right.$$
Multiply the first equation by $2$ and subtract from the second to get $2(A+B)=1$, and multiply the first equation by $4$ and subtract the second from it to get $2sqrt3(A-B)=1$. Then you have the simple system $$left{begin{align*}&A+B=frac12\&A-B=frac1{2sqrt3};,end{align*}right.$$ which you should have no trouble solving for $A$ and $B$.
$endgroup$
$begingroup$
can you please tell the corresponding F(n) with F(1) = 1 and F(2) = 3
$endgroup$
– Raj
Jul 7 '12 at 19:40
$begingroup$
@Raj: you don't know how to derive it yourself?
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:47
$begingroup$
@Brian and J.M : Thanks you so much for your help.It means a lot to me.
$endgroup$
– Raj
Jul 7 '12 at 20:10
add a comment |
$begingroup$
Any of the standard methods for solving such recurrences will work. In particular, whatever method you would use to get the Binet formula for the Fibonacci numbers will work here, once you establish initial conditions. If you set $F(0)=0$ and $F(1)=1$, as with the Fibonacci numbers, the closed form is
$$F(n)=frac{(1+sqrt3)^n-(1-sqrt3)^n}{2sqrt3};;$$
I don’t see any way to derive this directly from the corresponding closed form for the Fibonacci numbers, however.
By the way, with those initial values the sequence is OEIS A002605.
Added: The general solution is $$F(n)=A(1+sqrt3)^n+B(1-sqrt3)^n;;tag{1}$$ Argon’s answer already shows you one of the standard methods of obtaining this. To find $A$ and $B$ for a given set of initial conditions, just substitute the known values of $n$ in $(1)$. If you want $F(1)=1$, you must have $$1=F(1)=A(1+sqrt3)^1+B(1-sqrt3)^1;,$$ or $A+B+sqrt3(A-B)=1$. To get $F(2)=3$, you must have $$begin{align*}3&=F(2)=A(1+sqrt3)^2+B(1-sqrt3)^2\
&=A(4+2sqrt3)+B(4-2sqrt3);,
end{align*}$$
or $4(A+B)+2sqrt3(A-B)=3$. You now have the system
$$left{begin{align*}&A+B+sqrt3(A-B)=1\
&4(A+B)+2sqrt3(A-B)=3;.
end{align*}right.$$
Multiply the first equation by $2$ and subtract from the second to get $2(A+B)=1$, and multiply the first equation by $4$ and subtract the second from it to get $2sqrt3(A-B)=1$. Then you have the simple system $$left{begin{align*}&A+B=frac12\&A-B=frac1{2sqrt3};,end{align*}right.$$ which you should have no trouble solving for $A$ and $B$.
$endgroup$
$begingroup$
can you please tell the corresponding F(n) with F(1) = 1 and F(2) = 3
$endgroup$
– Raj
Jul 7 '12 at 19:40
$begingroup$
@Raj: you don't know how to derive it yourself?
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:47
$begingroup$
@Brian and J.M : Thanks you so much for your help.It means a lot to me.
$endgroup$
– Raj
Jul 7 '12 at 20:10
add a comment |
$begingroup$
Any of the standard methods for solving such recurrences will work. In particular, whatever method you would use to get the Binet formula for the Fibonacci numbers will work here, once you establish initial conditions. If you set $F(0)=0$ and $F(1)=1$, as with the Fibonacci numbers, the closed form is
$$F(n)=frac{(1+sqrt3)^n-(1-sqrt3)^n}{2sqrt3};;$$
I don’t see any way to derive this directly from the corresponding closed form for the Fibonacci numbers, however.
By the way, with those initial values the sequence is OEIS A002605.
Added: The general solution is $$F(n)=A(1+sqrt3)^n+B(1-sqrt3)^n;;tag{1}$$ Argon’s answer already shows you one of the standard methods of obtaining this. To find $A$ and $B$ for a given set of initial conditions, just substitute the known values of $n$ in $(1)$. If you want $F(1)=1$, you must have $$1=F(1)=A(1+sqrt3)^1+B(1-sqrt3)^1;,$$ or $A+B+sqrt3(A-B)=1$. To get $F(2)=3$, you must have $$begin{align*}3&=F(2)=A(1+sqrt3)^2+B(1-sqrt3)^2\
&=A(4+2sqrt3)+B(4-2sqrt3);,
end{align*}$$
or $4(A+B)+2sqrt3(A-B)=3$. You now have the system
$$left{begin{align*}&A+B+sqrt3(A-B)=1\
&4(A+B)+2sqrt3(A-B)=3;.
end{align*}right.$$
Multiply the first equation by $2$ and subtract from the second to get $2(A+B)=1$, and multiply the first equation by $4$ and subtract the second from it to get $2sqrt3(A-B)=1$. Then you have the simple system $$left{begin{align*}&A+B=frac12\&A-B=frac1{2sqrt3};,end{align*}right.$$ which you should have no trouble solving for $A$ and $B$.
$endgroup$
Any of the standard methods for solving such recurrences will work. In particular, whatever method you would use to get the Binet formula for the Fibonacci numbers will work here, once you establish initial conditions. If you set $F(0)=0$ and $F(1)=1$, as with the Fibonacci numbers, the closed form is
$$F(n)=frac{(1+sqrt3)^n-(1-sqrt3)^n}{2sqrt3};;$$
I don’t see any way to derive this directly from the corresponding closed form for the Fibonacci numbers, however.
By the way, with those initial values the sequence is OEIS A002605.
Added: The general solution is $$F(n)=A(1+sqrt3)^n+B(1-sqrt3)^n;;tag{1}$$ Argon’s answer already shows you one of the standard methods of obtaining this. To find $A$ and $B$ for a given set of initial conditions, just substitute the known values of $n$ in $(1)$. If you want $F(1)=1$, you must have $$1=F(1)=A(1+sqrt3)^1+B(1-sqrt3)^1;,$$ or $A+B+sqrt3(A-B)=1$. To get $F(2)=3$, you must have $$begin{align*}3&=F(2)=A(1+sqrt3)^2+B(1-sqrt3)^2\
&=A(4+2sqrt3)+B(4-2sqrt3);,
end{align*}$$
or $4(A+B)+2sqrt3(A-B)=3$. You now have the system
$$left{begin{align*}&A+B+sqrt3(A-B)=1\
&4(A+B)+2sqrt3(A-B)=3;.
end{align*}right.$$
Multiply the first equation by $2$ and subtract from the second to get $2(A+B)=1$, and multiply the first equation by $4$ and subtract the second from it to get $2sqrt3(A-B)=1$. Then you have the simple system $$left{begin{align*}&A+B=frac12\&A-B=frac1{2sqrt3};,end{align*}right.$$ which you should have no trouble solving for $A$ and $B$.
edited Jul 7 '12 at 20:00
answered Jul 7 '12 at 19:27
Brian M. ScottBrian M. Scott
458k38511913
458k38511913
$begingroup$
can you please tell the corresponding F(n) with F(1) = 1 and F(2) = 3
$endgroup$
– Raj
Jul 7 '12 at 19:40
$begingroup$
@Raj: you don't know how to derive it yourself?
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:47
$begingroup$
@Brian and J.M : Thanks you so much for your help.It means a lot to me.
$endgroup$
– Raj
Jul 7 '12 at 20:10
add a comment |
$begingroup$
can you please tell the corresponding F(n) with F(1) = 1 and F(2) = 3
$endgroup$
– Raj
Jul 7 '12 at 19:40
$begingroup$
@Raj: you don't know how to derive it yourself?
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:47
$begingroup$
@Brian and J.M : Thanks you so much for your help.It means a lot to me.
$endgroup$
– Raj
Jul 7 '12 at 20:10
$begingroup$
can you please tell the corresponding F(n) with F(1) = 1 and F(2) = 3
$endgroup$
– Raj
Jul 7 '12 at 19:40
$begingroup$
can you please tell the corresponding F(n) with F(1) = 1 and F(2) = 3
$endgroup$
– Raj
Jul 7 '12 at 19:40
$begingroup$
@Raj: you don't know how to derive it yourself?
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:47
$begingroup$
@Raj: you don't know how to derive it yourself?
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:47
$begingroup$
@Brian and J.M : Thanks you so much for your help.It means a lot to me.
$endgroup$
– Raj
Jul 7 '12 at 20:10
$begingroup$
@Brian and J.M : Thanks you so much for your help.It means a lot to me.
$endgroup$
– Raj
Jul 7 '12 at 20:10
add a comment |
$begingroup$
$$F(n)=2F(n−1)+2F(n−2)=2(F(n-1)+F(n-2))$$
Gives us the recurrence relation
$$r^n=2(r^{n-1}+r^{n-2})$$
we divide by $r^{n-2}$ to get
$$r^2=2(r+1) implies r^2-2r-2=0$$
which is our characteristic equation. The characteristic roots are
$$lambda_1=1-sqrt{3} \
lambda_2=1+sqrt{3}$$
Thus (because we have two different solutions)
$$F(n)=c_1 lambda_1^n+c_2lambda_2^n = c_1(1-sqrt{3})^n+c_2(1+sqrt{3})^n$$
Where $c_1$ and $c_2$ are constants that are chosen based on the base cases $F(n)$.
Brian M. Scott's answer explains how to obtain $c_1$ and $c_2$.
$endgroup$
add a comment |
$begingroup$
$$F(n)=2F(n−1)+2F(n−2)=2(F(n-1)+F(n-2))$$
Gives us the recurrence relation
$$r^n=2(r^{n-1}+r^{n-2})$$
we divide by $r^{n-2}$ to get
$$r^2=2(r+1) implies r^2-2r-2=0$$
which is our characteristic equation. The characteristic roots are
$$lambda_1=1-sqrt{3} \
lambda_2=1+sqrt{3}$$
Thus (because we have two different solutions)
$$F(n)=c_1 lambda_1^n+c_2lambda_2^n = c_1(1-sqrt{3})^n+c_2(1+sqrt{3})^n$$
Where $c_1$ and $c_2$ are constants that are chosen based on the base cases $F(n)$.
Brian M. Scott's answer explains how to obtain $c_1$ and $c_2$.
$endgroup$
add a comment |
$begingroup$
$$F(n)=2F(n−1)+2F(n−2)=2(F(n-1)+F(n-2))$$
Gives us the recurrence relation
$$r^n=2(r^{n-1}+r^{n-2})$$
we divide by $r^{n-2}$ to get
$$r^2=2(r+1) implies r^2-2r-2=0$$
which is our characteristic equation. The characteristic roots are
$$lambda_1=1-sqrt{3} \
lambda_2=1+sqrt{3}$$
Thus (because we have two different solutions)
$$F(n)=c_1 lambda_1^n+c_2lambda_2^n = c_1(1-sqrt{3})^n+c_2(1+sqrt{3})^n$$
Where $c_1$ and $c_2$ are constants that are chosen based on the base cases $F(n)$.
Brian M. Scott's answer explains how to obtain $c_1$ and $c_2$.
$endgroup$
$$F(n)=2F(n−1)+2F(n−2)=2(F(n-1)+F(n-2))$$
Gives us the recurrence relation
$$r^n=2(r^{n-1}+r^{n-2})$$
we divide by $r^{n-2}$ to get
$$r^2=2(r+1) implies r^2-2r-2=0$$
which is our characteristic equation. The characteristic roots are
$$lambda_1=1-sqrt{3} \
lambda_2=1+sqrt{3}$$
Thus (because we have two different solutions)
$$F(n)=c_1 lambda_1^n+c_2lambda_2^n = c_1(1-sqrt{3})^n+c_2(1+sqrt{3})^n$$
Where $c_1$ and $c_2$ are constants that are chosen based on the base cases $F(n)$.
Brian M. Scott's answer explains how to obtain $c_1$ and $c_2$.
edited Jul 12 '12 at 18:48
answered Jul 7 '12 at 19:40
ArgonArgon
16.4k673122
16.4k673122
add a comment |
add a comment |
$begingroup$
Any solution sequence can be written, with real constants $A,B,$ as
$$ A ; left(1 + sqrt 3 right)^n + B ; left(1 - sqrt 3 right)^n. $$
The set of such sequences is a vector space over $mathbb R,$ of dimension 2. The expression below shows a linear combination of basis elements for the vector space.
In comparison, suppose we took
$$ G(n) = 8 G(n-1) - 15 G(n-2).$$ Then, with real constants $A,B$ to be determined, we would have
$$ G(n) = A cdot 5^n + B cdot 3^n $$
$endgroup$
add a comment |
$begingroup$
Any solution sequence can be written, with real constants $A,B,$ as
$$ A ; left(1 + sqrt 3 right)^n + B ; left(1 - sqrt 3 right)^n. $$
The set of such sequences is a vector space over $mathbb R,$ of dimension 2. The expression below shows a linear combination of basis elements for the vector space.
In comparison, suppose we took
$$ G(n) = 8 G(n-1) - 15 G(n-2).$$ Then, with real constants $A,B$ to be determined, we would have
$$ G(n) = A cdot 5^n + B cdot 3^n $$
$endgroup$
add a comment |
$begingroup$
Any solution sequence can be written, with real constants $A,B,$ as
$$ A ; left(1 + sqrt 3 right)^n + B ; left(1 - sqrt 3 right)^n. $$
The set of such sequences is a vector space over $mathbb R,$ of dimension 2. The expression below shows a linear combination of basis elements for the vector space.
In comparison, suppose we took
$$ G(n) = 8 G(n-1) - 15 G(n-2).$$ Then, with real constants $A,B$ to be determined, we would have
$$ G(n) = A cdot 5^n + B cdot 3^n $$
$endgroup$
Any solution sequence can be written, with real constants $A,B,$ as
$$ A ; left(1 + sqrt 3 right)^n + B ; left(1 - sqrt 3 right)^n. $$
The set of such sequences is a vector space over $mathbb R,$ of dimension 2. The expression below shows a linear combination of basis elements for the vector space.
In comparison, suppose we took
$$ G(n) = 8 G(n-1) - 15 G(n-2).$$ Then, with real constants $A,B$ to be determined, we would have
$$ G(n) = A cdot 5^n + B cdot 3^n $$
edited Jul 7 '12 at 19:43
answered Jul 7 '12 at 19:30
Will JagyWill Jagy
103k5102200
103k5102200
add a comment |
add a comment |
$begingroup$
Define $g(z) = sum_{n ge 0} F(n + 1) z^n$, write the recurrence as:
$$
F(n + 3) = 2 F(n + 2) + 2 F(n + 1) qquad F(1) = 1, F(2) = 3
$$
Multiply the recurrence by $z$, sum over $n ge 0$ and get:
$$
frac{g(z) - F(1) - F(2)}{z^2} = 2 frac{g(z) - F(1)}{z} + 2 g(z)
$$
Solve for $g(z)$:
$$
g(z) = frac{1 + z}{1 - 2 z - 2 z^2}
= frac{2 + sqrt{3}}{2 sqrt{3}} cdot frac{1}{1 - (1 + sqrt{3}) z)}
+ frac{2 - sqrt{3}}{2 sqrt{3}} cdot frac{1}{1 + (1 - sqrt{3})z}
$$
Two geometric series:
$$
T(n+ 1) = frac{2 + sqrt{3}}{2 sqrt{3}} cdot (1 + sqrt{3})^n
+ frac{2 - sqrt{3}}{2 sqrt{3}} cdot (1 - sqrt{3})^n
$$
$endgroup$
add a comment |
$begingroup$
Define $g(z) = sum_{n ge 0} F(n + 1) z^n$, write the recurrence as:
$$
F(n + 3) = 2 F(n + 2) + 2 F(n + 1) qquad F(1) = 1, F(2) = 3
$$
Multiply the recurrence by $z$, sum over $n ge 0$ and get:
$$
frac{g(z) - F(1) - F(2)}{z^2} = 2 frac{g(z) - F(1)}{z} + 2 g(z)
$$
Solve for $g(z)$:
$$
g(z) = frac{1 + z}{1 - 2 z - 2 z^2}
= frac{2 + sqrt{3}}{2 sqrt{3}} cdot frac{1}{1 - (1 + sqrt{3}) z)}
+ frac{2 - sqrt{3}}{2 sqrt{3}} cdot frac{1}{1 + (1 - sqrt{3})z}
$$
Two geometric series:
$$
T(n+ 1) = frac{2 + sqrt{3}}{2 sqrt{3}} cdot (1 + sqrt{3})^n
+ frac{2 - sqrt{3}}{2 sqrt{3}} cdot (1 - sqrt{3})^n
$$
$endgroup$
add a comment |
$begingroup$
Define $g(z) = sum_{n ge 0} F(n + 1) z^n$, write the recurrence as:
$$
F(n + 3) = 2 F(n + 2) + 2 F(n + 1) qquad F(1) = 1, F(2) = 3
$$
Multiply the recurrence by $z$, sum over $n ge 0$ and get:
$$
frac{g(z) - F(1) - F(2)}{z^2} = 2 frac{g(z) - F(1)}{z} + 2 g(z)
$$
Solve for $g(z)$:
$$
g(z) = frac{1 + z}{1 - 2 z - 2 z^2}
= frac{2 + sqrt{3}}{2 sqrt{3}} cdot frac{1}{1 - (1 + sqrt{3}) z)}
+ frac{2 - sqrt{3}}{2 sqrt{3}} cdot frac{1}{1 + (1 - sqrt{3})z}
$$
Two geometric series:
$$
T(n+ 1) = frac{2 + sqrt{3}}{2 sqrt{3}} cdot (1 + sqrt{3})^n
+ frac{2 - sqrt{3}}{2 sqrt{3}} cdot (1 - sqrt{3})^n
$$
$endgroup$
Define $g(z) = sum_{n ge 0} F(n + 1) z^n$, write the recurrence as:
$$
F(n + 3) = 2 F(n + 2) + 2 F(n + 1) qquad F(1) = 1, F(2) = 3
$$
Multiply the recurrence by $z$, sum over $n ge 0$ and get:
$$
frac{g(z) - F(1) - F(2)}{z^2} = 2 frac{g(z) - F(1)}{z} + 2 g(z)
$$
Solve for $g(z)$:
$$
g(z) = frac{1 + z}{1 - 2 z - 2 z^2}
= frac{2 + sqrt{3}}{2 sqrt{3}} cdot frac{1}{1 - (1 + sqrt{3}) z)}
+ frac{2 - sqrt{3}}{2 sqrt{3}} cdot frac{1}{1 + (1 - sqrt{3})z}
$$
Two geometric series:
$$
T(n+ 1) = frac{2 + sqrt{3}}{2 sqrt{3}} cdot (1 + sqrt{3})^n
+ frac{2 - sqrt{3}}{2 sqrt{3}} cdot (1 - sqrt{3})^n
$$
answered May 15 '13 at 17:22
vonbrandvonbrand
20k63160
20k63160
add a comment |
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%2f167957%2fclosed-form-solution-of-fibonacci-like-sequence%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
1
$begingroup$
The same solution method should work....
$endgroup$
– Hurkyl
Jul 7 '12 at 19:11
$begingroup$
Well, how would you derive the Binet formula for Fibonacci numbers in the first place? You can adapt the same technique to this case.
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:15
$begingroup$
I think we should know two "base cases," e.g. $$F(0)=1\F(1)=1$$ otherwise we can never get the numerical value of $F(n)$.
$endgroup$
– Argon
Jul 7 '12 at 19:17
$begingroup$
@Argon, of course, but in the absence of base cases, we could still have a formula with two arbitrary constants...
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:23
$begingroup$
For your particular initial conditions, you should be getting $$frac1{12}left((3-sqrt{3})left(1-sqrt{3}right)^k+(3+sqrt{3})(1+sqrt 3)^kright)$$
$endgroup$
– J. M. is not a mathematician
Jul 7 '12 at 19:43