If a 1 = 1 , a 2 = 0 , a 3 = 2 and a n + 3 = − a n + 2 + a n + 1 + a n for n > 0 , find a 2 0 1 6 .
See part 1 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Such beautiful and elegant solution :)
I have still one doubt... For first summation, ( a 1 + a 2 ) + ( a 3 + a 4 ) + 1 0 0 6 ( a 5 + a 6 ) How to proceed further- To get what you got shouldn't that require putting n = 3 and n = 2 in given relation (and substituting) which isn't allowed....... Or I have proceeded in the wrong direction....??
Log in to reply
All the 1008 sums in parentheses in ( a 1 + a 2 ) + ( a 3 + a 4 ) + . . . + ( a 2 0 1 5 + a 2 0 1 6 ) are equal, by a n + 3 + a n + 2 = a n + 1 + a n , applied to odd numbers n = 1 , . . , 2 0 1 3 , so that the common sum is 1008 times a 1 + a 2 = 1 .
But you are right: There was a typo in the problem: It should say n > 0 for the recursion. The way it was initially phrased ( n > 3 ), the problem cannot be solved. Thanks for pointing that out!
Log in to reply
But n > 3 as stated in question..?? I have confused myself.. Please help...
Log in to reply
@Rishabh Jain – Yes that was a typo that I corrected. With n > 3 the problem cannot be solved, of course.
Log in to reply
@Otto Bretscher – Thanks... I'll delete this comment now....
Log in to reply
@Rishabh Jain – No no it's fine... I'm glad you caught it.
Oh... No problem... :-)
As usual, again a beautiful two-line solution by you sir. However, I solved it using the Generating Functions method and the method of Characteristic Equation.
Log in to reply
Yes, that's the systematic way! Show us!
Log in to reply
Ok, then I'll post my solution
Log in to reply
@Raushan Sharma – It will be great to see a closed formula for a n .
a n + 3 = − a n + 2 + a n + 1 + a n = 2 a n + 1 − a n + 1 = − 2 a n + a n − 1 + 2 a n − 2 = 3 a n − 1 − 2 a n − 3 = − 3 a n − 2 + a n − 3 + 3 a n − 4 ⋯ ⋯ = − 2 n + 1 ( a 3 ) + a 2 + 2 n + 1 ( a 1 ) , n → odd = ( 2 n + 1 ) a 3 − 2 n a 1 , n → even In our case since n = 2 0 1 3 is odd putting we get: a 2 0 1 6 = − 1 0 0 7 a 3 + a 2 + 1 0 0 7 a 1 = − 1 0 0 7
Yes that's a good way to do it! (+1) Let me see whether I can squeeze a solution into two lines ;)
Log in to reply
Yep... I'm learning to use recurrences.... Maybe after some time I would learn writing one-two liners on recurrences too.. . ;-). BTW Thanks...
Log in to reply
I'm sure your detailed solutions are more helpful to most members ;)
Does my solution make sense or is it too cryptic? Do I need to add a line (reluctantly)? I know I have a weird way of thinking ;)
Log in to reply
@Otto Bretscher – Seems good to me... It took a bit of time for me to understand but the method is quite weird (and short too!!)..... (+1)...
Log in to reply
@Rishabh Jain – OK let me add a line...thanks for the feedback!
We have the recursion : a n = − a n − 1 + a n − 2 + a n − 3
Now, we write the characteristic equation of this recursion by replacing a n with x n
We get: x n = − x n − 1 + x n − 2 + x n − 3
Or, x 3 = − x 2 + x + 1
Or, x 3 + x 2 − x − 1 = 0
⇒ ( x − 1 ) ( x + 1 ) 2 = 0
So, the roots of the characteristic equation are 1 , − 1 , − 1
So, a n = u ⋅ ( 1 ) n + ( v + w n ) ⋅ ( − 1 ) n
Now, we have, a 1 = 1 , a 2 = 0 , a 3 = 2
So, we form three equations, putting n = 1 , 2 , 3 :
a 1 = u − v − w = 1
a 2 = u + v + 2 w = 0
a 3 = u − v − 3 w = 2
Solving these three equations, we get : u = 4 3 , v = 4 1 , w = 2 − 1
Therefore, a n = 4 3 + ( − 1 ) n ⋅ ( 4 1 − 2 n )
i.e. a n = 4 3 + ( − 1 ) n ⋅ 4 1 − 2 n
Putting n = 2 0 1 6 , we get a 2 0 1 6 = − 1 0 0 7
This question can also be solved by the method of generating functions, but that method is a bit lengthy....
Yes, great! Thank you! (+1) It's good to have both: A systematic solution but also some shortcuts.
Log in to reply
Thank you sir. And, yeah, that master of shortcuts is none other than you!! _/_ You are really an inspiration for me.... :D
Log in to reply
I'm delighted to be in the company of so many talented and enthusiastic people on Brilliant! You guys are amazing!
An explicit form of the sequence is a 2 n + 1 = n + 1 and a 2 n = − n + 1 .
This can be proven by induction. a 4 = − 1 and a 5 = 3 , so this is already ok.
Now suppose a 2 n + 1 = n + 1 , for some n, then we should prove that a 2 n + 2 = − n .
Proof : a 2 n + 2 = − a 2 n + 1 + a 2 n + a 2 n − 1 = − n − 1 − n + 1 + n = − n .
Now suppose a 2 n = − n + 1 , for some n, then we should prove that a 2 n + 1 = n + 1 .
Proof : a 2 n + 1 = − a 2 n + a 2 n − 1 + a 2 n − 2 = n − 1 + n − n + 2 = n + 1 .
So a 2 0 1 6 = a 2 . 1 0 0 8 = − 1 0 0 8 + 1 = − 1 0 0 7 .
Yes this works! (+1) Good observation!
Checking out few terms we have the series as 1 , 0 , 2 , − 1 , 3 , − 2 , 4 . . . . . Hence a 2 0 1 6 is clearly equal to − 1 0 0 7
You never know for sure whether a pattern persists after "a few terms". Better to give a proof as @Tom Van Lier did.
It is easy to recognize the pattern is that when n is odd a(n) is simply (n+1)/2,then a(n+1) is -n/2+1/2.Above conclusion can be proven by mathematical induction.
a2016 =1-1+2-3+4-5+...+2014-2015=-1007 so the answer is -1007
Problem Loading...
Note Loading...
Set Loading...
We know that a n + 3 + a n + 2 = a n + 1 + a n so that
k = 1 ∑ 2 0 1 6 a k = ( a 1 + a 2 ) + ( a 3 + a 4 ) + . . . + ( a 2 0 1 5 + a 2 0 1 6 ) = 1 0 0 8 ( a 1 + a 2 ) = 1 0 0 8
and ∑ k = 2 2 0 1 5 a k = 1 0 0 7 ( a 2 + a 3 ) = 2 0 1 4 . Subtraction yields a 1 + a 2 0 1 6 = − 1 0 0 6 and a 2 0 1 6 = − 1 0 0 7