Solve the following for \(a_n\) given that \(a_0=0\) and \(a_1=1\)
an=an−1+2an−2+n
an=an−1+2an−2+n2
an=2an−1−an−2+n2
an=an−1+2an−2+2n
an=an−1an−2 (with initial conditions a0=1 and a1=2)
an2=an−1an−2 (with initial conditions a0=1 and a1=2)
an=nan−1+an−2
an=an−12+an−2
an=an−12+an−22
#RecurrenceRelations
#HelpMe!
#Proofs
#MathProblem
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
For numbers 1-3, the trick is to use the characteristic equation to solve. First, eliminate all terms that are not in the form of iaj:
anan−1=an−2+2an−3+(n−1)=an−1+2an−2+n
Subtracting the two, we get
an−an−1=an−1+an−2−2an−3+1
But there's still a 1 in there! Do it again!
an−an−1=an−1+an−2−2an−3+1an−1−an−2=an−2+an−3−2an−4+1
Subtract:
an−2an−1+an−2=an−1−3an−3+2an−4an−3an−1+an−2+3an−3−2an−4=0
Finally, we have it in the form we want. Now, we'll use the characteristic equation, which is an equation that looks like this:
x4−3x3+x2+3x−2=0
Basically, it takes its coefficients from the recurrence relation. Solving, we get x=−1,1,1,2. From generating functions, we can now say that
an=c1⋅(−1)n+(c2+c3n)⋅1n+c4⋅2n
What we did here was take the roots of the equation and use their exponentials to develop the relation. For repeated roots, we have to create an entire polynomial with an ascending degree: if the root x0 is repeated k times, it'll be (c0+c1n+c2n2+⋯+cknk−1)x0n. Lastly, we solve for c1,c2,c3,c4 using a system of equations. Note that since there are four constants, we need to know four terms of the sequence, so we must compute a2=3 and a3=8. Solve the system of equations
⎩⎪⎪⎪⎨⎪⎪⎪⎧0=c1⋅(−1)0+(c2+c3⋅0)⋅10+c4⋅201=c1⋅(−1)1+(c2+c3⋅1)⋅11+c4⋅203=c1⋅(−1)2+(c2+c3⋅2)⋅12+c4⋅228=c1⋅(−1)3+(c2+c3⋅3)⋅13+c4⋅23
Eventually, we get (c1,c2,c3,c4)=(−121,−45,−21,34), so
an=−121⋅(−1)n−45−2n+34⋅2n
That technique takes care of 1-3. It also takes care of 5 as you can let an=2bn with b0=0 and b1=1 such that bn=bn−1+bn−2, the famous Fibonacci sequence. Similarly, 6 has an=2bn, b0=0, b1=1, and 2bn=bn−1+bn−2.
Log in to reply
Cody !!!! Even question 4 can be solved by your technique !!!! Just a little manipulation
Given thing an=an−1+2an−2+2n
Next recurrence an−1=an−2+2an−3+2n−1
JUST MULTIPLY THIS BY 2 ON BOTH SIDES
2an−1=2an−2+4an−3+2n
Now subtract from given !!!!
You get an−3an−1+4an−3=0
comparable to x3−3x2+4=0
Has roots x=−1,2,2
And then we get an=c1(−1)n+(c2+nc3)2n
Solve to get c1=91 , c2=9−1 . c3=32
And then an=91(−1)n−92n+32n2n
Log in to reply
Very good!
Wow, nice thought @Aditya Raut :)
Thank you very very much Cody !!! Now please try for last three questions ...I found no way to solve them :(
There is a typo at line 7: should be an instead of an−2.
Wow, that's insane. :P
Try with generating functions.
The questions 7 to 9 are extremely tricky ..... No method worked :(
Log in to reply
I don't think the method of characteristics equation will work here... Instead, multiply the RHS (an) and LHS by xn, then sum the terms with respect to n. Then, look for power series and simplify the expression,
Log in to reply
@Happy Melodies what are the terms LBS and RHS?
Log in to reply
Hmm Qn 7 is hard... (Refer to this link)[http://www.math.upenn.edu/~wilf/gfology2.pdf]. I think can still multiply by xn on both sides then take sum. Differentiate the n(an−1) term (with summation) then solve differential eqn.... Haven't worked that out but I think it might work. If you have no idea what I am talking about, the link above is a good guide to Generating Functions, which is very useful in solving recurrence type problems.
Log in to reply
x2f′(x)+(x2+x−1)f(x)+x=0 where f(x)=∑n=0∞anxn
I have worked that out the differential equation and it turns out to be unsolvable. The differential equaiton turns out to beLog in to reply
Log in to reply
Log in to reply
Solve an in terms of function of n only with initial values a0=0,a1=1,an=an−12+an−22
Here we observe one inequality. As series is growing,
an=>an−1 It implies
an−12+an−22<=2an−12
i.e.2an+12<=an<=2an−12
Observe an=2an−12 is a series whose solution is
a_{n}=2^2^n
Hence we conclude that our solution will be of the same type
a_{n}=f^2^n
where f is a real number less than 2 (and definitely greater than zero.) Now all our efforts are to find f which satisfies above equation. As I worked out for calculating f,I came to know that it is irrational number and its value depends upon value of
a0,a1,a2,a3...
For exact expression for f see this ,
" www.fq.math.ca/Scanned/11-4/aho-a.pdf "
Value of f up to fourteen significant digit is 1.11148222558297....
Another thing to point here is that an=nearest integer to f^2^n
as value may be floating we have to take into account only integer values.
This is analytic solution but is correct for first 8th term.....For other terms more accurate value of f is needed otherwise it is perfect solution. Below is the verification of my solution...As i had said more significant digits are required for correctness.
n an f^2^n
Log in to reply
Haa...one thing.....Not applicable for n=0 case
See i guess that n cannot take values 0 & 1 but when you start with n=2 and go on till 3 or 4 then you will start getting values now the difference of 2 consecutive terms will start forming an A.P. or G.P. that can be solved by method of differences,see if this works!!!
Anyone knows how to solve Q2? I'm stuck with the characteristic equation method as well as generating funcs method...
Log in to reply
Do as Cody did !!!
given thing is an=an−1+2an−2+n2
Do for an−1=an−2+2an−3+(n−1)2
Which is an−1=an−2+2an−3+n2−2n+1.....(i)
Subtract this from Given one......... you will get an=2an−1+an−2−2an−3+2n−1.........(ii)
Now write the next recurrence............. an−1=2an−2+an−3−2an−4+2(n−1)−1
an−1=2an−2+an−3−2an−4+2n−3................(iii)
Subtract (iii) from (ii) to get
an=3an−1−an−2−3an−3+2an−4+2
But we got "2" here ...... Eliminate it from again one more recurrence !!!!!!!! an−1=3an−2−an−3−3an−4+2an−5+2
Subtracting, you get an=3an−1−4an−2−2an−3+5an−4−2an−5
And now we find characteristic equation
x5−4x4+4x3+2x2−5x+2=0
Has it's roots x=−1,1,1,1,2
Next things you can find in Cody's solution :)
What's q2?
Log in to reply
As in the above point 2? Solving for an