Sequencing

Algebra Level 2

A sequence S n S_{n} is defined such that S 0 = 0 S_{0}=0 , S 1 = 1 S_{1}=1 and S n = S n 1 S n 2 S_{n}= S_{n-1}-S_{n-2} .

What is the value of S 2017 S_{2017} ?


The answer is 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.

4 solutions

Chew-Seong Cheong
Jun 19, 2017

For the linear recurrence relation S n = S n 1 S n 2 S_n = S_{n-1}-S_{n-2} , the characteristic equation is:

r 2 = r 1 r 2 r + 1 = 0 r = 1 ± 3 i 2 = e ± π 3 i \begin{aligned} r^2 & = r-1 \\ \implies r^2 - r + 1 & = 0 \\ \implies r & = \frac {1 \pm \sqrt 3i}2 = e^{\pm \frac \pi 3 i} \end{aligned}

S n = c 1 e π 3 n i + c 2 e π 3 n i S 0 = c 1 + c 2 = 0 c 2 = c 1 S 1 = c 1 ( e π 3 i e π 3 i ) = 1 c 1 3 i = 1 c 1 = i 3 S n = i 3 ( e π 3 n i e π 3 n i ) = 2 3 sin n π 3 S 2017 = 2 3 sin 2017 π 3 = 2 3 sin π 3 = 1 \begin{aligned} \implies S_n & = c_1e^{\frac \pi 3ni} + c_2 e^{-\frac \pi 3ni} \\ S_0 & = c_1 + c_2 = 0 \\ \implies c_2 & =-c_1 \\ S_1 & = c_1 \left(e^{\frac \pi 3i} - e^{-\frac \pi 3i}\right) = 1 \\ c_1 \sqrt 3 i & = 1 \\ \implies c_1 & = - \frac i{\sqrt 3} \\ \implies S_n & = \frac i{\sqrt 3} \left( e^{-\frac \pi 3ni} - e^{\frac \pi 3ni} \right) \\ & = \frac 2{\sqrt 3} \sin \frac {n\pi} 3 \\ \implies S_{2017} & = \frac 2{\sqrt 3} \sin \frac {2017\pi} 3 \\ & = \frac 2{\sqrt 3} \sin \frac \pi 3 \\ & = \boxed{1} \end{aligned}

Calculating some terms we see that S=[0,1,1,0,-1,-1,0,1,...] This repeats with period 6 so the answer is the same as the 2017 mod 6 th term. 2017=1 mod 6 so the answer is one.

Since S 0 = 0 S_0 = 0 , S 2017 S_{2017} is actually the 201 8 t h 2018^{th} term, so we must find 2018 ( m o d 6 ) 2018 \pmod{6} , which is 2 2 . This corresponds to the second term in the periodic sequence, which is 1 1 .

I think your reasoning that " 2017 1 ( m o d 6 ) 2017 \equiv 1 \pmod{6} so the answer is one" is flawed, because by that logic, if 2018 2 ( m o d 6 ) 2018 \equiv 2 \pmod{6} , then the answer is 2 2 . Be careful: remember that n m ( m o d 6 ) n \equiv m \pmod{6} corresponds to the m t h m^{th} term in the periodic sequence 0 , 1 , 1 , 0 , 1 , 1 0, 1, 1, 0, - 1, - 1 .

Zach Abueg - 3 years, 11 months ago

Log in to reply

Sorry. That was what IO was trying to get at, I guess I just didn't make it obvious

William Whitehouse - 3 years, 11 months ago

Log in to reply

No worries my friend (:

Zach Abueg - 3 years, 11 months ago

I did it with 2017 mod 6, just had to remember the numbering of the terms starts with 0th term. No problem. Do it in computer science all the time.

Marta Reece - 3 years, 11 months ago

Log in to reply

Fair enough (:

Zach Abueg - 3 years, 11 months ago
Tom Engelsman
Jun 19, 2017

Let us solve this linear recursion by the following method. It has the characteristic equation r 2 r + 1 = 0 r^2 - r + 1 = 0 , or r = 1 ± 3 i 2 r = \frac{1 \pm \sqrt{3}i}{2} . This leads to the general form:

S n = A ( 1 + 3 i 2 ) n + B ( 1 3 i 2 ) n = A e i n π 3 + B e i n π 3 S_n = A(\frac{1 + \sqrt{3}i}{2})^{n} + B(\frac{1 - \sqrt{3}i}{2})^{n} = Ae^{i \frac{n\pi}{3}} + Be^{-i \frac{n\pi}{3}}

Implementing the initial conditions S 0 = 0 , S 1 = 1 S_0 = 0, S_1 = 1 now solves the real constants A A and B B :

0 = A + B 0 = A + B

1 = A ( 1 + 3 i 2 ) + B ( 1 3 i 2 ) 1 = A(\frac{1 + \sqrt{3}i}{2}) + B(\frac{1 - \sqrt{3}i}{2})

which yields A = 1 3 i A = \frac{1}{\sqrt{3}i} and B = 1 3 i B = -\frac{1}{\sqrt{3}i} . We ultimately end up with:

S n = 1 3 i [ e i n π 3 e i n π 3 ] = 2 2 3 i [ e i n π 3 e i n π 3 ] = 2 3 [ e i n π 3 e i n π 3 2 i ] = 2 3 s i n ( n π 3 ) S_n = \frac{1}{\sqrt{3}i} \cdot [e^{i \frac{n\pi}{3}} - e^{-i \frac{n\pi}{3}}] = \frac{2}{2 \sqrt{3}i} \cdot [e^{i \frac{n\pi}{3}} - e^{-i \frac{n\pi}{3}}] = \frac{2}{\sqrt{3}} \cdot [\frac{e^{i \frac{n\pi}{3}} - e^{-i \frac{n\pi}{3}}}{2i}] = \frac{2}{\sqrt{3}} sin(\frac{n\pi}{3})

Computing S 2017 S_{2017} gives 2 3 s i n ( 2017 π 3 ) = 2 3 3 2 = 1 . \frac{2}{\sqrt{3}} sin(\frac{2017\pi}{3}) = \frac{2}{\sqrt{3}} \cdot \frac{\sqrt{3}}{2} = \boxed{1}.

Genis Dude
Jun 22, 2017

S2017 = S2016-S2015

(S2015-S2014)-S2015

-S2014

-(S2013-S2012)

-(S2012-S2011-S2012)

S2011

Therefore,S2017=S2017-6x,Where x is a

integer and 6x<2017

Let x be 336, Therefore S2017=S2017-2016

S2017=S1=1

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...