Notes on Sequences and Recurrence

Sequences: Basic Concepts A sequence is simply an ordered list of items or numbers. Unlike a set, the order of elements in a sequence is important. Sequences can be either: - Finite: They have a specific number of terms, meaning there's a last term. - Infinite: They continue indefinitely, with no last term. We typically use U<em>nU<em>n to represent the '$n$-th' term in a sequence, with U</em>1U</em>1 being the very first term.

Notation and Indexing of Sequences

There are two main ways to define a sequence:

  1. Explicit (Direct) Definition: This gives a direct formula for finding any term U<em>nU<em>n using only its position nn. It looks like U</em>n=f(n)U</em>n = f(n).

    • Example: The sequence of odd numbers can be explicitly defined by the formula U<em>n=2n1.U<em>n = 2n - 1. Using this, we can find any term: U</em>1=1U</em>1 = 1, U<em>2=3U<em>2 = 3, U</em>3=5U</em>3 = 5, and so on.

  2. Recursive (Recurrence) Definition: This defines each term based on one or more of the previous terms in the sequence. It requires initial values (like U<em>1U<em>1 or U</em>2U</em>2) to get started. It looks like U<em>n=g(U</em>n1,Un2,)U<em>n = g(U</em>{n-1}, U_{n-2}, \ldots).

    • In the recursive formula U<em>n=g(U</em>n1,Un2,)U<em>n = g(U</em>{n-1}, U_{n-2}, \ldots):

      • UnU_n represents the current term in the sequence that you are trying to find.

      • nn is the position or index of the term you are calculating (e.g., if n=3n=3, you are finding the third term).

      • gg represents the function or rule that defines how the current term is derived from previous terms.

      • U<em>n1U<em>{n-1} refers to the term immediately preceding U</em>nU</em>n (the term at position n1n-1).

      • U<em>n2U<em>{n-2} refers to the term two positions before U</em>nU</em>n (the term at position n2n-2).

      • The "\ldots" indicates that a term might depend on even earlier terms (e.g., U<em>n3U<em>{n-3}, U</em>n4U</em>{n-4}), depending on the specific sequence's rule.

    • Example: The famous Fibonacci sequence is defined recursively by the formula U<em>n=U</em>n1+U<em>n2 for n3,U<em>n = U</em>{n-1} + U<em>{n-2} \text{ for } n \ge 3, with its first two terms being U</em>1=1 and U2=1.U</em>1 = 1 \text{ and } U_2 = 1. This means each term (from the third one onwards) is the sum of the two preceding terms. The sequence unfolds as: 1,1,2,3,5,8,13,21,34,55,1, 1, 2, 3, 5, 8, 13, 21, 34, 55, \ldots

In general, we are interested in both the formula that defines the sequence and the actual numbers it generates.

Arithmetic (Linear) Sequences

Arithmetic sequences, also known as linear sequences, have a constant difference between any two consecutive terms. This consistent difference is called the common difference, denoted by dd. They can be written using one of these equivalent formulas:

  • Un=an+bU_n = a n + b (where aa is the common difference and bb is a constant)

  • U<em>n=U</em>1+(n1)dU<em>n = U</em>1 + (n-1)d (where U<em>1U<em>1 is the first term and dd is the common difference) The common difference dd can always be found by subtracting any term from the term that immediately follows it: d=U</em>n+1Und = U</em>{n+1} - U_n. This value will always be the same for all terms in an arithmetic sequence.

  • Specific Example: Consider the sequence defined by Un=4n+15U_n = -4n + 15. Let's find its first term and common difference.

    • The first term is U1=4(1)+15=11U_1 = -4(1) + 15 = 11.

    • The common difference is d=U<em>n+1U</em>nd = U<em>{n+1} - U</em>n. If we apply the formula: d=4.d = -4. (You can see this because the coefficient of nn is 4-4.) This means the sequence starts at 11 and decreases by 4 with each step, giving the terms: 11,7,3,1,5,11, 7, 3, -1, -5, \ldots

Sequences: Basic Concepts A sequence is simply an ordered list of items or numbers. Unlike a set, where the arrangement of elements doesn't matter (e.g., 1,2,3{\sqrt{1}, 2, 3} is the same as 3,2,1{\sqrt{3}, 2, 1}), the order of elements in a sequence is crucial. For example, the sequence (1,2,3)(1, 2, 3) is distinct from (3,2,1)(3, 2, 1)). Sequences can be either:

  • Finite: These sequences have a specific, countable number of terms, implying there is a definitive last term. An example would be the sequence of days in a week: (Monday,Tuesday,,Sunday)(Monday, Tuesday, \ldots, Sunday).

  • Infinite: These sequences continue indefinitely without a last term. The sequence of natural numbers (1,2,3,)(1, 2, 3, \ldots) is an infinite sequence.

We typically use U<em>nU<em>n to represent the '$n$-th' term in a sequence, with U</em>1U</em>1 being the very first term, U2U_2 the second, and so on. The subscript nn indicates the position of the term in the sequence.

Notation and Indexing of Sequences

There are two primary methods for defining a sequence:

  1. Explicit (Direct) Definition:
    This method provides a direct formula, U<em>n=f(n)U<em>n = f(n), that allows you to calculate any term U</em>nU</em>n solely based on its position nn in the sequence. You don't need any preceding terms to find the current one.

    • Example: The sequence of odd numbers can be explicitly defined by the formula Un=2n1U_n = 2n - 1. Using this formula, we can directly find any term:

      • For n=1n=1 (the first term): U1=2(1)1=1U_1 = 2(1) - 1 = 1

      • For n=2n=2 (the second term): U2=2(2)1=3U_2 = 2(2) - 1 = 3

      • For n=3n=3 (the third term): U3=2(3)1=5U_3 = 2(3) - 1 = 5
        …and so on.

  2. Recursive (Recurrence) Definition:
    This approach defines each term in the sequence by relating it to one or more of the previous terms. To use a recursive definition, you must be given one or more initial values (base cases), such as U<em>1U<em>1 or U</em>2U</em>2 (or more, depending on the sequence), to start the sequence. The general form is U<em>n=g(U</em>n1,Un2,)U<em>n = g(U</em>{n-1}, U_{n-2}, \ldots).

    • Let's break down the recursive formula Un = g(U{n-1}, U_{n-2}, \ldots)$ rearrangements:

      • U_n:Thisisthecurrenttermyouaretryingtofind.</p></li><li><p>: This is the current term you are trying to find.</p></li><li><p>n:Thisisthepositionorindexofthetermyouarecalculating.Forinstance,if: This is the position or index of the term you are calculating. For instance, ifn=3,youarefindingthethirdterm.</p></li><li><p>, you are finding the third term.</p></li><li><p>g:Thisrepresentsthefunctionorrulethatspecifieshowthecurrenttermisderivedfromitspredecessors.</p></li><li><p>: This represents the function or rule that specifies how the current term is derived from its predecessors.</p></li><li><p>U{n-1}:Referstothetermimmediatelypreceding: Refers to the term immediately precedingUn(thetermatposition(the term at positionn-1).</p></li><li><p>).</p></li><li><p>U{n-2}:Referstothetermtwopositionsbefore: Refers to the term two positions beforeUn(thetermatposition(the term at positionn-2).</p></li><li><p>The").</p></li><li><p>The "\ldots":Indicatesthatatermmightdependonevenearlierterms(e.g.,": Indicates that a term might depend on even earlier terms (e.g.,U{n-3},,U{n-4}),dependingonthespecificruleofthesequence.</p></li></ul></li><li><p><strong>Example:</strong>ThefamousFibonaccisequenceisaclassicexampledefinedrecursivelybytheformula), depending on the specific rule of the sequence.</p></li></ul></li><li><p><strong>Example:</strong> The famous Fibonacci sequence is a classic example defined recursively by the formulaUn = U{n-1} + U{n-2} \text{ for } n \ge 3.Itrequirestwoinitialtermstobegin:. It requires two initial terms to begin:U1 = 1 \text{ and } U_2 = 1.Usingthese,thesequenceunfoldsasfollows:</p><ul><li><p>. Using these, the sequence unfolds as follows:</p><ul><li><p>U3 = U2 + U_1 = 1 + 1 = 2</p></li><li><p></p></li><li><p>U4 = U3 + U_2 = 2 + 1 = 3</p></li><li><p></p></li><li><p>U5 = U4 + U_3 = 3 + 2 = 5<br>Thesequenceis:<br>The sequence is:1, 1, 2, 3, 5, 8, 13, 21, 34, 55, \ldots</p></li></ul></li></ul></li></ol><p>Inessence,understandingasequenceinvolvesgraspingboththeunderlyingformulathatdefinesitandtheactualorderedlistofnumbers(oritems)itgenerates.</p><p>Arithmetic(Linear)Sequences</p><p>Arithmeticsequences,alsooftencalledlinearsequences,arecharacterizedbyaconstant<em>difference</em>betweenanytwoconsecutiveterms.Thisconsistentdifferenceisknownasthe<strong>commondifference</strong>,denotedby</p></li></ul></li></ul></li></ol><p>In essence, understanding a sequence involves grasping both the underlying formula that defines it and the actual ordered list of numbers (or items) it generates.</p><p>Arithmetic (Linear) Sequences</p><p>Arithmetic sequences, also often called linear sequences, are characterized by a constant <em>difference</em> between any two consecutive terms. This consistent difference is known as the <strong>common difference</strong>, denoted byd.Itsakeyfeature:togetfromonetermtothenext,youalwaysadd(orsubtract,if. It's a key feature: to get from one term to the next, you always add (or subtract, ifdisnegative)thesamevalue.</p><p>Thesesequencescanbedescribedusingoneofthesetwoequivalentexplicitformulas:</p><ol><li><p><strong>is negative) the same value.</p><p>These sequences can be described using one of these two equivalent explicit formulas:</p><ol><li><p><strong>U_n = a n + b</strong></p><ul><li><p>Inthisform,</strong></p><ul><li><p>In this form,adirectlyrepresentsthecommondifference.Thisisbecauseifyouconsiderdirectly represents the common difference. This is because if you considerUn = an + bandandU{n+1} = a(n+1) + b,thenthedifference, then the differenceU{n+1} - Un = (a(n+1) + b) - (an + b) = an + a + b - an - b = a.Thus,. Thus,aistheconstantamountaddedtoeachtermtogetthenextone.</p></li><li><p>is the constant amount added to each term to get the next one.</p></li><li><p>bisaconstantthatadjuststhesequencetoitsstartingpoint.Itcanbethoughtofasis a constant that adjusts the sequence to its starting point. It can be thought of asU_0(the"zeroth"term)ifthesequencestartedfrom(the "zeroth" term) if the sequence started fromn=0.</p></li></ul></li><li><p><strong>.</p></li></ul></li><li><p><strong>Un = U1 + (n-1)d</strong></p><ul><li><p>Here,</strong></p><ul><li><p>Here,U_1isthefirsttermofthesequence.</p></li><li><p>is the first term of the sequence.</p></li><li><p>disthecommondifference.</p></li><li><p>Thetermis the common difference.</p></li><li><p>The term(n-1)representsthenumberof"steps"orcommondifferencesyouneedtoaddtothefirstterm(represents the number of "steps" or common differences you need to add to the first term (U_1)toreachthe) to reach thenthterm.</p><ul><li><p>Togetto-th term.</p><ul><li><p>To get toU2fromfromU1,youtakeonestep:, you take one step:U1 + (2-1)d = U1 + d.</p></li><li><p>Togetto.</p></li><li><p>To get toU3fromfromU1,youtaketwosteps:, you take two steps:U1 + (3-1)d = U1 + 2d.</p></li><li><p>Andsoon,forthe.</p></li><li><p>And so on, for thenthterm,youtake-th term, you take(n-1)stepsfromsteps fromU_1.</p></li></ul></li></ul></li></ol><p>Thecommondifference.</p></li></ul></li></ul></li></ol><p>The common differencedcanalwaysbecalculatedbysubtractinganytermfromthetermthatimmediatelyfollowsit:can always be calculated by subtracting any term from the term that immediately follows it:d = U{n+1} - Un.Thisvaluewillconsistentlybeidenticalforallpairsofconsecutivetermswithinagivenarithmeticsequence.</p><ul><li><p><strong>SpecificExample:</strong>Letsexaminethesequencedefinedby. This value will consistently be identical for all pairs of consecutive terms within a given arithmetic sequence.</p><ul><li><p><strong>Specific Example:</strong> Let's examine the sequence defined byU_n = -4n + 15.</p><ul><li><p>Tofinditsfirstterm(.</p><ul><li><p>To find its first term (U1):Substitute): Substituten=1intotheformula:into the formula:U1 = -4(1) + 15 = -4 + 15 = 11.</p></li><li><p>Tofindthecommondifference(.</p></li><li><p>To find the common difference (d):Wecanobservethatthecoefficientof): We can observe that the coefficient ofninthein thean+bformisform is-4,so, sod = -4.Alternatively,wecancalculateitusingtheformula. Alternatively, we can calculate it using the formulad = U{n+1} - Un:<br>Calculate:<br>CalculateU2::U2 = -4(2) + 15 = -8 + 15 = 7.<br>Then,.<br>Then,d = U2 - U1 = 7 - 11 = -4.<br>Thismeansthesequencestartsat11anddecreasesby4witheachsubsequentstep,generatingtheterms:.<br>This means the sequence starts at 11 and decreases by 4 with each subsequent step, generating the terms:11, 7, 3, -1, -