Sequences I

<p><span style="font-size:18px;"><a href="https://www.prepswift.com/quizzes/quiz/prepswift-sequences-i" target="_blank">Sequences I Exercise</a></span></p><h2>What are they?</h2> <p>Just an ordered list. Usually, but not always, comprised of numbers. Here are some examples:</p> <p>$$1, 2, 3$$</p> <p>$$0, 0, 0, ... \rightarrow \textrm{ can be infinite}$$</p> <p>$$\frac{-1}{2}, 1, \frac{5}{2} \rightarrow \textrm{ don&#39;t have to all be integers} $$</p> <p>$$aaa, bbb, ccc \rightarrow \textrm { don&#39;t have to be numbers}$$</p> <h2>Types of sequences</h2> <ul> <li>The most common type of sequences you&#39;ll see are&nbsp;<em>arithmetic</em>&nbsp;sequences, where each succeeding term is obtained by adding or subtracting $k$ from the previous term. Here are some examples:&nbsp;<br /> <br /> $$2, 3, 4, ... \rightarrow \textrm { add 1}$$<br /> $$7, \frac{13}{2}, 6, ... \rightarrow \textrm { subtract 0.5}$$<br /> $$5, 5, 5, ..., \rightarrow \textrm { add 0}$$</li> <li>A&nbsp;<em>geometric</em>&nbsp;sequence is where each succeeding term is obtained by multiplying or dividing $k$ from the previous term. Here are some examples:<br /> <br /> $$2, 4, 8, ... \rightarrow \textrm{ multiply by 2}$$<br /> $$100, 25, \frac{25}{4}, ... \rightarrow \textrm { divide by 4}$$<br /> $$1, 1, 1, ... \rightarrow \textrm { multiply by 1}$$</li> </ul> <p>In the next mountain entry/PrepSwift video, we&#39;ll see some useful formulas for quickly finding out the $n$th term of an arithmetic or geometric sequence.&nbsp;</p> <p>There are also a couple of other types of sequences that are worth mentioning:</p> <ul> <li>A&nbsp;<em>harmonic sequence</em>&nbsp;is where the&nbsp;<strong>reciprocal</strong>&nbsp;of the terms is an arithmetic sequence:&nbsp;<br /> $$\frac{1}{2}, \frac{1}{3}, \frac{1}{4}, ... \rightarrow \textrm{ because 2, 3, 4 is an arithmetic sequence}$$</li> <li>A <i>quadratic sequence</i>&nbsp;is where the &quot;second difference&quot; of the terms is the same:<br /> $$1, 12, 36, 73, 123$$<br /> $$\textrm{First difference} = 11, 24, 37, 50, ...$$<br /> $$\textrm{Second difference} = 13, 13, 13, ...$$</li> </ul> <h2>Representing a sequence</h2> <p>Consider a sequence where the $n$<sup>th</sup>&nbsp;term is $a_n$:</p> <ul> <li>$a_n$ can be written in terms of $n$ itself. For example, $a_n = n^2 + 6n + 3$ and hence the third term would be just $a_3 = 3^2 + 6 \times 3 + 3 = 30$. Notice how easy it is to find the $n$<sup>th</sup>&nbsp;term - just substitute. The drawback is that representing the sequence in this form is not always easy.</li> <li>$a_n$ can be written in terms of previous terms of the sequence. For example, $a_n = 3 \times a_{n - 1} + 2$ (the&nbsp;<em>recurrence relation</em>)&nbsp;with $a_1 = 4$. Then, to find the third term, we first need to find the second term, which is $a_2 = 3 \times a_1 + 2 \rightarrow 3 \times 4 + 2 = 14$. Then we use this to find $a_3$: $a_3 = 3 \times 14 + 2 = 44$. The drawback is that it can be hard to find, for example, the $1000$<sup>th</sup>&nbsp;term of the sequence, as you&#39;ll need to first find all the previous $999$ terms.&nbsp;<br /> <br /> Notice that in the above example, we defined the first term $a_1$ as $4$. This is called the&nbsp;<em>base case</em>, and is required when defining the sequence, as otherwise we&#39;ll get potentially infinite sequences that meet the recurrence relation (try the above example with $a_1 = 2$ instead and see what you get).&nbsp;</li> </ul> <p>Notice how the two forms complement each other - for the GRE, you&#39;ll need to be able to work with both.&nbsp;</p>