Finding the nth term of sequence of 3, 10, 31, 94, 283…Finding the nth term in a repeating number...

If your plane is out-of-control, why does military training instruct releasing the joystick to neutralize controls?

Credit score and financing new car

What does 「はった」 mean?

What steps should I take to lawfully visit the United States as a tourist immediately after visiting on a B-1 visa?

Referring to different instances of the same character in time travel

For a hashing function like MD5, how similar can two plaintext strings be and still generate the same hash?

What was the definition of "set" that resulted in Russell's Paradox

Print the last, middle and first character of your code

Can the Mage Hand cantrip be used to trip an enemy who is running away?

What's the minimum number of sensors for a hobby GPS waypoint-following UAV?

Why weren't bootable game disks ever common on the IBM PC?

Why do players in the past play much longer tournaments than today's top players?

Is "I do not want you to go nowhere" a case of "DOUBLE-NEGATIVES" as claimed by Grammarly?

Modulus Operandi

JSON.serialize Question - Slack integration

Cops: The Hidden OEIS Substring

Using Newton's shell theorem to accelerate a spaceship

As the Dungeon Master, how do I handle a player that insists on a specific class when I already know that choice will cause issues?

Does throwing a penny at a train stop the train?

Are there any sports for which the world's best player is female?

Can fluent English speakers distinguish “steel”, “still” and “steal”?

Single word for "refusing to move to next activity unless present one is completed."

Keep milk (or milk alternative) for a day without a fridge

How would vampires avoid contracting diseases?



Finding the nth term of sequence of 3, 10, 31, 94, 283…


Finding the nth term in a repeating number sequenceNth term of a sequencefinding nth term in a geometric sequenceFind nth term of sequenceFinding the nth term of a geometric sequenceProve that sequence $S_N(a, n, d) = ±1 pmod N$ if $N$ is prime.Finding the nth term of a numeric sequence- Newton's little formula explanationProof for nth term of the sequenceFinding the $nth$ term of a sequencenth term of the sequence 1,2,3,5,7,9…






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1












$begingroup$


How do you work out the nth term of a sequence that's neither arithmetic or geometric where two operations are used to get from one term to the next? For example, the sequence 3, 10, 31, 94, 283 where each term is the last term multiply 3 plus 1. (i.e $u_1 = 3$ and $u_{n+1} = 3u_n + 1$). Then is there a way to generalise it where $u_1 = a$ and $u_{n+1} = bu_n + c$?



This problem was part of a question on the Oxford MAT. I've tried to find common differences, substitute terms and many other methods. Also I found that this problem fits in an area of maths called recurrence relations but the Wikipedia page was far too confusing for me since I'm only year 11 (grade 10), so it didn't help answer my question. I wonder if there's a simpler explanation for this problem. Thanks in advance










share|cite|improve this question









New contributor



FailToWinPRO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$








  • 2




    $begingroup$
    The differences are $$7,21=3cdot 7,63=9cdot 7,189=27cdot 7$$
    $endgroup$
    – Dr. Sonnhard Graubner
    8 hours ago




















1












$begingroup$


How do you work out the nth term of a sequence that's neither arithmetic or geometric where two operations are used to get from one term to the next? For example, the sequence 3, 10, 31, 94, 283 where each term is the last term multiply 3 plus 1. (i.e $u_1 = 3$ and $u_{n+1} = 3u_n + 1$). Then is there a way to generalise it where $u_1 = a$ and $u_{n+1} = bu_n + c$?



This problem was part of a question on the Oxford MAT. I've tried to find common differences, substitute terms and many other methods. Also I found that this problem fits in an area of maths called recurrence relations but the Wikipedia page was far too confusing for me since I'm only year 11 (grade 10), so it didn't help answer my question. I wonder if there's a simpler explanation for this problem. Thanks in advance










share|cite|improve this question









New contributor



FailToWinPRO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$








  • 2




    $begingroup$
    The differences are $$7,21=3cdot 7,63=9cdot 7,189=27cdot 7$$
    $endgroup$
    – Dr. Sonnhard Graubner
    8 hours ago
















1












1








1





$begingroup$


How do you work out the nth term of a sequence that's neither arithmetic or geometric where two operations are used to get from one term to the next? For example, the sequence 3, 10, 31, 94, 283 where each term is the last term multiply 3 plus 1. (i.e $u_1 = 3$ and $u_{n+1} = 3u_n + 1$). Then is there a way to generalise it where $u_1 = a$ and $u_{n+1} = bu_n + c$?



This problem was part of a question on the Oxford MAT. I've tried to find common differences, substitute terms and many other methods. Also I found that this problem fits in an area of maths called recurrence relations but the Wikipedia page was far too confusing for me since I'm only year 11 (grade 10), so it didn't help answer my question. I wonder if there's a simpler explanation for this problem. Thanks in advance










share|cite|improve this question









New contributor



FailToWinPRO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$




How do you work out the nth term of a sequence that's neither arithmetic or geometric where two operations are used to get from one term to the next? For example, the sequence 3, 10, 31, 94, 283 where each term is the last term multiply 3 plus 1. (i.e $u_1 = 3$ and $u_{n+1} = 3u_n + 1$). Then is there a way to generalise it where $u_1 = a$ and $u_{n+1} = bu_n + c$?



This problem was part of a question on the Oxford MAT. I've tried to find common differences, substitute terms and many other methods. Also I found that this problem fits in an area of maths called recurrence relations but the Wikipedia page was far too confusing for me since I'm only year 11 (grade 10), so it didn't help answer my question. I wonder if there's a simpler explanation for this problem. Thanks in advance







sequences-and-series






share|cite|improve this question









New contributor



FailToWinPRO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|cite|improve this question









New contributor



FailToWinPRO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|cite|improve this question




share|cite|improve this question








edited 8 hours ago









Greg Martin

37.9k2 gold badges35 silver badges66 bronze badges




37.9k2 gold badges35 silver badges66 bronze badges






New contributor



FailToWinPRO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 8 hours ago









FailToWinPROFailToWinPRO

82 bronze badges




82 bronze badges




New contributor



FailToWinPRO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




FailToWinPRO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










  • 2




    $begingroup$
    The differences are $$7,21=3cdot 7,63=9cdot 7,189=27cdot 7$$
    $endgroup$
    – Dr. Sonnhard Graubner
    8 hours ago
















  • 2




    $begingroup$
    The differences are $$7,21=3cdot 7,63=9cdot 7,189=27cdot 7$$
    $endgroup$
    – Dr. Sonnhard Graubner
    8 hours ago










2




2




$begingroup$
The differences are $$7,21=3cdot 7,63=9cdot 7,189=27cdot 7$$
$endgroup$
– Dr. Sonnhard Graubner
8 hours ago






$begingroup$
The differences are $$7,21=3cdot 7,63=9cdot 7,189=27cdot 7$$
$endgroup$
– Dr. Sonnhard Graubner
8 hours ago












5 Answers
5






active

oldest

votes


















6












$begingroup$

There's a nice trick for recursive sequences of this type, where $u_{n+1}$ is a linear function of $u_n$: find a constant $r$ such that $u_{n+1}-r$ is a constant multiple of $u_n-r$. In this case, the multiplication factor in the linear function is $3$, so we're searching for an $r$ with $u_{n+1}-r = 3(u_n-r)$. Solving for $r$:
begin{align*}
u_{n+1}-r &= 3(u_n-r) \
(3u_n+1)-r &= 3u_n-3r \
1+2r &= 0 \
r &= -tfrac12.
end{align*}



Why does this help us? Because $u_{n+1}+frac12 = 3(u_n+frac12)$, it's easy to prove by induction that $u_n+frac12 = 3^{n-1}(u_1+frac12)$ for all $nge1$. (In other words, this slightly shifted version of the sequence really is geometric.) Solving for $u_n$:
begin{align*}
u_n+tfrac12 &= 3^{n-1}(u_1+tfrac12) \
u_n &= 3^{n-1}(3+tfrac12)-tfrac12 \
u_n &= tfrac12(7cdot3^{n-1}-1).
end{align*}

(Of course there's some formula we could memorize that gives the answer immediately, which is fine ... but it's always best to know how such formulas are derived in the first place.)






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks, that result seems correct. However, although it's probably obvious, I can't quite wrap my head around the proof by induction. Could you give a detailed step by step of why since $u_{n+1} + frac{1}{2} = 3(u_n + frac{1}{2}), u_n + frac{1}{2} = 3^{n-1}(u_1+ frac{1}{2})$ is true?
    $endgroup$
    – FailToWinPRO
    8 hours ago





















2












$begingroup$

Observe that
begin{align*}
u_{n+1}&=3u_n+1\
u_n&=3u_{n-1}+1
end{align*}



Then



$$(u_{n+1}-u_n)=3(u_n-u_{n-1}).$$



Let us define $a_n=u_n-u_{n-1}$, then the above equation can be written as
$$a_{n+1}=3a_n.$$
This gives us



begin{align*}
a_3&=3a_2\
vdots & =vdots\
a_{n+1}&=3a_n
end{align*}

If we multiply these out, we get



$$a_{n+1}=3^{n-1}a_2$$



So we have
$$u_{n+1}-u_n=3^{n-1}(u_2-u_1)=3^{n-1} ,7.$$



Now add these:



begin{align*}
u_2-u_1 &=3^{0} ,7\
u_3-u_2 &=3^{1} ,7\
u_4-u_3 &=3^{2} ,7\
vdots & =vdots\
u_{n+1}-u_n &=3^{n-1} ,7
end{align*}

To get
$$u_{n+1}-u_1=7(3^0+3^1+dotsb +3^{n-1})$$
Thus,




$$u_{n+1}=7left(frac{3^n-1}{2}right)+3 =frac{1}{2}left(7. , 3^{n}-1right)quad text{ for } n geq
color{red}{0}.$$

In fact, you can test that validity of this expression by plugging $n=0$ to get $u_1=3$, with $n=1$ we get $u_2=10$ and so on.







share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    This doesn't require any tool beyond what you may have already seen in high school mathematics.
    $endgroup$
    – Anurag A
    7 hours ago



















0












$begingroup$

Try writing down the first few terms then observe how the coefficients are truncated. if the first term is $u_1$,



I found that the $n^{th}$ term is:



$$u_n = b^{n-1}u_1 + c*sum_{i=2}^n a^{n-i}$$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    In your case, take $u_1=3$, $b = 3$, $c = 1$.
    $endgroup$
    – Book Book Book
    8 hours ago



















0












$begingroup$

Set $v_n=u_n+a$ to try to get the recurrence to be $v_{n+1}=3v_n$. So, you want
$$u_{n+1}+a=3u_n+3a$$
that is
$$3u_n+1+a=3u_n+3a.$$
Therefore you want $a=1/2$. So the sequence $v_n$ is $7/2$, $21/2$, $63/2$ etc. Then
$$v_n=3^{n-1}frac72$$
and
$$u_n=3^{n-1}frac72-frac12.$$






share|cite|improve this answer









$endgroup$





















    0












    $begingroup$

    I have worked out this sum for your sequence: $$u_{n}=left (sum_{i=0}^{n}3^{i} right ) - 3^{n-1}$$. You can easily find it if you substitute recursively values in the formula. For example for $n=4$ it's $3^{4}+3^{2}+3^{1}+1$. I obtain a geometric progression (but there isn't $3^{3}$) and the sum in general is: $$u_{n}=frac{1-3^{n+1}}{1-3}-3^{n-1}$$.
    In the end: $$u_{n}=frac{1}{2}(3^{n+1}-1)-3^{n-1}$$



    For the second question: $$u_{n}=ab^{n-1}+sum_{i=0}^{n-1}cb^{i}=ab^{n-1}+frac{(cb)^{n-1}-1}{cb-1}$$






    share|cite|improve this answer










    New contributor



    Matteo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





    $endgroup$
















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "69"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });






      FailToWinPRO is a new contributor. Be nice, and check out our Code of Conduct.










      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3289168%2ffinding-the-nth-term-of-sequence-of-3-10-31-94-283%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6












      $begingroup$

      There's a nice trick for recursive sequences of this type, where $u_{n+1}$ is a linear function of $u_n$: find a constant $r$ such that $u_{n+1}-r$ is a constant multiple of $u_n-r$. In this case, the multiplication factor in the linear function is $3$, so we're searching for an $r$ with $u_{n+1}-r = 3(u_n-r)$. Solving for $r$:
      begin{align*}
      u_{n+1}-r &= 3(u_n-r) \
      (3u_n+1)-r &= 3u_n-3r \
      1+2r &= 0 \
      r &= -tfrac12.
      end{align*}



      Why does this help us? Because $u_{n+1}+frac12 = 3(u_n+frac12)$, it's easy to prove by induction that $u_n+frac12 = 3^{n-1}(u_1+frac12)$ for all $nge1$. (In other words, this slightly shifted version of the sequence really is geometric.) Solving for $u_n$:
      begin{align*}
      u_n+tfrac12 &= 3^{n-1}(u_1+tfrac12) \
      u_n &= 3^{n-1}(3+tfrac12)-tfrac12 \
      u_n &= tfrac12(7cdot3^{n-1}-1).
      end{align*}

      (Of course there's some formula we could memorize that gives the answer immediately, which is fine ... but it's always best to know how such formulas are derived in the first place.)






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        Thanks, that result seems correct. However, although it's probably obvious, I can't quite wrap my head around the proof by induction. Could you give a detailed step by step of why since $u_{n+1} + frac{1}{2} = 3(u_n + frac{1}{2}), u_n + frac{1}{2} = 3^{n-1}(u_1+ frac{1}{2})$ is true?
        $endgroup$
        – FailToWinPRO
        8 hours ago


















      6












      $begingroup$

      There's a nice trick for recursive sequences of this type, where $u_{n+1}$ is a linear function of $u_n$: find a constant $r$ such that $u_{n+1}-r$ is a constant multiple of $u_n-r$. In this case, the multiplication factor in the linear function is $3$, so we're searching for an $r$ with $u_{n+1}-r = 3(u_n-r)$. Solving for $r$:
      begin{align*}
      u_{n+1}-r &= 3(u_n-r) \
      (3u_n+1)-r &= 3u_n-3r \
      1+2r &= 0 \
      r &= -tfrac12.
      end{align*}



      Why does this help us? Because $u_{n+1}+frac12 = 3(u_n+frac12)$, it's easy to prove by induction that $u_n+frac12 = 3^{n-1}(u_1+frac12)$ for all $nge1$. (In other words, this slightly shifted version of the sequence really is geometric.) Solving for $u_n$:
      begin{align*}
      u_n+tfrac12 &= 3^{n-1}(u_1+tfrac12) \
      u_n &= 3^{n-1}(3+tfrac12)-tfrac12 \
      u_n &= tfrac12(7cdot3^{n-1}-1).
      end{align*}

      (Of course there's some formula we could memorize that gives the answer immediately, which is fine ... but it's always best to know how such formulas are derived in the first place.)






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        Thanks, that result seems correct. However, although it's probably obvious, I can't quite wrap my head around the proof by induction. Could you give a detailed step by step of why since $u_{n+1} + frac{1}{2} = 3(u_n + frac{1}{2}), u_n + frac{1}{2} = 3^{n-1}(u_1+ frac{1}{2})$ is true?
        $endgroup$
        – FailToWinPRO
        8 hours ago
















      6












      6








      6





      $begingroup$

      There's a nice trick for recursive sequences of this type, where $u_{n+1}$ is a linear function of $u_n$: find a constant $r$ such that $u_{n+1}-r$ is a constant multiple of $u_n-r$. In this case, the multiplication factor in the linear function is $3$, so we're searching for an $r$ with $u_{n+1}-r = 3(u_n-r)$. Solving for $r$:
      begin{align*}
      u_{n+1}-r &= 3(u_n-r) \
      (3u_n+1)-r &= 3u_n-3r \
      1+2r &= 0 \
      r &= -tfrac12.
      end{align*}



      Why does this help us? Because $u_{n+1}+frac12 = 3(u_n+frac12)$, it's easy to prove by induction that $u_n+frac12 = 3^{n-1}(u_1+frac12)$ for all $nge1$. (In other words, this slightly shifted version of the sequence really is geometric.) Solving for $u_n$:
      begin{align*}
      u_n+tfrac12 &= 3^{n-1}(u_1+tfrac12) \
      u_n &= 3^{n-1}(3+tfrac12)-tfrac12 \
      u_n &= tfrac12(7cdot3^{n-1}-1).
      end{align*}

      (Of course there's some formula we could memorize that gives the answer immediately, which is fine ... but it's always best to know how such formulas are derived in the first place.)






      share|cite|improve this answer









      $endgroup$



      There's a nice trick for recursive sequences of this type, where $u_{n+1}$ is a linear function of $u_n$: find a constant $r$ such that $u_{n+1}-r$ is a constant multiple of $u_n-r$. In this case, the multiplication factor in the linear function is $3$, so we're searching for an $r$ with $u_{n+1}-r = 3(u_n-r)$. Solving for $r$:
      begin{align*}
      u_{n+1}-r &= 3(u_n-r) \
      (3u_n+1)-r &= 3u_n-3r \
      1+2r &= 0 \
      r &= -tfrac12.
      end{align*}



      Why does this help us? Because $u_{n+1}+frac12 = 3(u_n+frac12)$, it's easy to prove by induction that $u_n+frac12 = 3^{n-1}(u_1+frac12)$ for all $nge1$. (In other words, this slightly shifted version of the sequence really is geometric.) Solving for $u_n$:
      begin{align*}
      u_n+tfrac12 &= 3^{n-1}(u_1+tfrac12) \
      u_n &= 3^{n-1}(3+tfrac12)-tfrac12 \
      u_n &= tfrac12(7cdot3^{n-1}-1).
      end{align*}

      (Of course there's some formula we could memorize that gives the answer immediately, which is fine ... but it's always best to know how such formulas are derived in the first place.)







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered 8 hours ago









      Greg MartinGreg Martin

      37.9k2 gold badges35 silver badges66 bronze badges




      37.9k2 gold badges35 silver badges66 bronze badges












      • $begingroup$
        Thanks, that result seems correct. However, although it's probably obvious, I can't quite wrap my head around the proof by induction. Could you give a detailed step by step of why since $u_{n+1} + frac{1}{2} = 3(u_n + frac{1}{2}), u_n + frac{1}{2} = 3^{n-1}(u_1+ frac{1}{2})$ is true?
        $endgroup$
        – FailToWinPRO
        8 hours ago




















      • $begingroup$
        Thanks, that result seems correct. However, although it's probably obvious, I can't quite wrap my head around the proof by induction. Could you give a detailed step by step of why since $u_{n+1} + frac{1}{2} = 3(u_n + frac{1}{2}), u_n + frac{1}{2} = 3^{n-1}(u_1+ frac{1}{2})$ is true?
        $endgroup$
        – FailToWinPRO
        8 hours ago


















      $begingroup$
      Thanks, that result seems correct. However, although it's probably obvious, I can't quite wrap my head around the proof by induction. Could you give a detailed step by step of why since $u_{n+1} + frac{1}{2} = 3(u_n + frac{1}{2}), u_n + frac{1}{2} = 3^{n-1}(u_1+ frac{1}{2})$ is true?
      $endgroup$
      – FailToWinPRO
      8 hours ago






      $begingroup$
      Thanks, that result seems correct. However, although it's probably obvious, I can't quite wrap my head around the proof by induction. Could you give a detailed step by step of why since $u_{n+1} + frac{1}{2} = 3(u_n + frac{1}{2}), u_n + frac{1}{2} = 3^{n-1}(u_1+ frac{1}{2})$ is true?
      $endgroup$
      – FailToWinPRO
      8 hours ago















      2












      $begingroup$

      Observe that
      begin{align*}
      u_{n+1}&=3u_n+1\
      u_n&=3u_{n-1}+1
      end{align*}



      Then



      $$(u_{n+1}-u_n)=3(u_n-u_{n-1}).$$



      Let us define $a_n=u_n-u_{n-1}$, then the above equation can be written as
      $$a_{n+1}=3a_n.$$
      This gives us



      begin{align*}
      a_3&=3a_2\
      vdots & =vdots\
      a_{n+1}&=3a_n
      end{align*}

      If we multiply these out, we get



      $$a_{n+1}=3^{n-1}a_2$$



      So we have
      $$u_{n+1}-u_n=3^{n-1}(u_2-u_1)=3^{n-1} ,7.$$



      Now add these:



      begin{align*}
      u_2-u_1 &=3^{0} ,7\
      u_3-u_2 &=3^{1} ,7\
      u_4-u_3 &=3^{2} ,7\
      vdots & =vdots\
      u_{n+1}-u_n &=3^{n-1} ,7
      end{align*}

      To get
      $$u_{n+1}-u_1=7(3^0+3^1+dotsb +3^{n-1})$$
      Thus,




      $$u_{n+1}=7left(frac{3^n-1}{2}right)+3 =frac{1}{2}left(7. , 3^{n}-1right)quad text{ for } n geq
      color{red}{0}.$$

      In fact, you can test that validity of this expression by plugging $n=0$ to get $u_1=3$, with $n=1$ we get $u_2=10$ and so on.







      share|cite|improve this answer











      $endgroup$









      • 1




        $begingroup$
        This doesn't require any tool beyond what you may have already seen in high school mathematics.
        $endgroup$
        – Anurag A
        7 hours ago
















      2












      $begingroup$

      Observe that
      begin{align*}
      u_{n+1}&=3u_n+1\
      u_n&=3u_{n-1}+1
      end{align*}



      Then



      $$(u_{n+1}-u_n)=3(u_n-u_{n-1}).$$



      Let us define $a_n=u_n-u_{n-1}$, then the above equation can be written as
      $$a_{n+1}=3a_n.$$
      This gives us



      begin{align*}
      a_3&=3a_2\
      vdots & =vdots\
      a_{n+1}&=3a_n
      end{align*}

      If we multiply these out, we get



      $$a_{n+1}=3^{n-1}a_2$$



      So we have
      $$u_{n+1}-u_n=3^{n-1}(u_2-u_1)=3^{n-1} ,7.$$



      Now add these:



      begin{align*}
      u_2-u_1 &=3^{0} ,7\
      u_3-u_2 &=3^{1} ,7\
      u_4-u_3 &=3^{2} ,7\
      vdots & =vdots\
      u_{n+1}-u_n &=3^{n-1} ,7
      end{align*}

      To get
      $$u_{n+1}-u_1=7(3^0+3^1+dotsb +3^{n-1})$$
      Thus,




      $$u_{n+1}=7left(frac{3^n-1}{2}right)+3 =frac{1}{2}left(7. , 3^{n}-1right)quad text{ for } n geq
      color{red}{0}.$$

      In fact, you can test that validity of this expression by plugging $n=0$ to get $u_1=3$, with $n=1$ we get $u_2=10$ and so on.







      share|cite|improve this answer











      $endgroup$









      • 1




        $begingroup$
        This doesn't require any tool beyond what you may have already seen in high school mathematics.
        $endgroup$
        – Anurag A
        7 hours ago














      2












      2








      2





      $begingroup$

      Observe that
      begin{align*}
      u_{n+1}&=3u_n+1\
      u_n&=3u_{n-1}+1
      end{align*}



      Then



      $$(u_{n+1}-u_n)=3(u_n-u_{n-1}).$$



      Let us define $a_n=u_n-u_{n-1}$, then the above equation can be written as
      $$a_{n+1}=3a_n.$$
      This gives us



      begin{align*}
      a_3&=3a_2\
      vdots & =vdots\
      a_{n+1}&=3a_n
      end{align*}

      If we multiply these out, we get



      $$a_{n+1}=3^{n-1}a_2$$



      So we have
      $$u_{n+1}-u_n=3^{n-1}(u_2-u_1)=3^{n-1} ,7.$$



      Now add these:



      begin{align*}
      u_2-u_1 &=3^{0} ,7\
      u_3-u_2 &=3^{1} ,7\
      u_4-u_3 &=3^{2} ,7\
      vdots & =vdots\
      u_{n+1}-u_n &=3^{n-1} ,7
      end{align*}

      To get
      $$u_{n+1}-u_1=7(3^0+3^1+dotsb +3^{n-1})$$
      Thus,




      $$u_{n+1}=7left(frac{3^n-1}{2}right)+3 =frac{1}{2}left(7. , 3^{n}-1right)quad text{ for } n geq
      color{red}{0}.$$

      In fact, you can test that validity of this expression by plugging $n=0$ to get $u_1=3$, with $n=1$ we get $u_2=10$ and so on.







      share|cite|improve this answer











      $endgroup$



      Observe that
      begin{align*}
      u_{n+1}&=3u_n+1\
      u_n&=3u_{n-1}+1
      end{align*}



      Then



      $$(u_{n+1}-u_n)=3(u_n-u_{n-1}).$$



      Let us define $a_n=u_n-u_{n-1}$, then the above equation can be written as
      $$a_{n+1}=3a_n.$$
      This gives us



      begin{align*}
      a_3&=3a_2\
      vdots & =vdots\
      a_{n+1}&=3a_n
      end{align*}

      If we multiply these out, we get



      $$a_{n+1}=3^{n-1}a_2$$



      So we have
      $$u_{n+1}-u_n=3^{n-1}(u_2-u_1)=3^{n-1} ,7.$$



      Now add these:



      begin{align*}
      u_2-u_1 &=3^{0} ,7\
      u_3-u_2 &=3^{1} ,7\
      u_4-u_3 &=3^{2} ,7\
      vdots & =vdots\
      u_{n+1}-u_n &=3^{n-1} ,7
      end{align*}

      To get
      $$u_{n+1}-u_1=7(3^0+3^1+dotsb +3^{n-1})$$
      Thus,




      $$u_{n+1}=7left(frac{3^n-1}{2}right)+3 =frac{1}{2}left(7. , 3^{n}-1right)quad text{ for } n geq
      color{red}{0}.$$

      In fact, you can test that validity of this expression by plugging $n=0$ to get $u_1=3$, with $n=1$ we get $u_2=10$ and so on.








      share|cite|improve this answer














      share|cite|improve this answer



      share|cite|improve this answer








      edited 8 hours ago

























      answered 8 hours ago









      Anurag AAnurag A

      28.1k1 gold badge23 silver badges52 bronze badges




      28.1k1 gold badge23 silver badges52 bronze badges








      • 1




        $begingroup$
        This doesn't require any tool beyond what you may have already seen in high school mathematics.
        $endgroup$
        – Anurag A
        7 hours ago














      • 1




        $begingroup$
        This doesn't require any tool beyond what you may have already seen in high school mathematics.
        $endgroup$
        – Anurag A
        7 hours ago








      1




      1




      $begingroup$
      This doesn't require any tool beyond what you may have already seen in high school mathematics.
      $endgroup$
      – Anurag A
      7 hours ago




      $begingroup$
      This doesn't require any tool beyond what you may have already seen in high school mathematics.
      $endgroup$
      – Anurag A
      7 hours ago











      0












      $begingroup$

      Try writing down the first few terms then observe how the coefficients are truncated. if the first term is $u_1$,



      I found that the $n^{th}$ term is:



      $$u_n = b^{n-1}u_1 + c*sum_{i=2}^n a^{n-i}$$






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        In your case, take $u_1=3$, $b = 3$, $c = 1$.
        $endgroup$
        – Book Book Book
        8 hours ago
















      0












      $begingroup$

      Try writing down the first few terms then observe how the coefficients are truncated. if the first term is $u_1$,



      I found that the $n^{th}$ term is:



      $$u_n = b^{n-1}u_1 + c*sum_{i=2}^n a^{n-i}$$






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        In your case, take $u_1=3$, $b = 3$, $c = 1$.
        $endgroup$
        – Book Book Book
        8 hours ago














      0












      0








      0





      $begingroup$

      Try writing down the first few terms then observe how the coefficients are truncated. if the first term is $u_1$,



      I found that the $n^{th}$ term is:



      $$u_n = b^{n-1}u_1 + c*sum_{i=2}^n a^{n-i}$$






      share|cite|improve this answer









      $endgroup$



      Try writing down the first few terms then observe how the coefficients are truncated. if the first term is $u_1$,



      I found that the $n^{th}$ term is:



      $$u_n = b^{n-1}u_1 + c*sum_{i=2}^n a^{n-i}$$







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered 8 hours ago









      Book Book BookBook Book Book

      4897 bronze badges




      4897 bronze badges












      • $begingroup$
        In your case, take $u_1=3$, $b = 3$, $c = 1$.
        $endgroup$
        – Book Book Book
        8 hours ago


















      • $begingroup$
        In your case, take $u_1=3$, $b = 3$, $c = 1$.
        $endgroup$
        – Book Book Book
        8 hours ago
















      $begingroup$
      In your case, take $u_1=3$, $b = 3$, $c = 1$.
      $endgroup$
      – Book Book Book
      8 hours ago




      $begingroup$
      In your case, take $u_1=3$, $b = 3$, $c = 1$.
      $endgroup$
      – Book Book Book
      8 hours ago











      0












      $begingroup$

      Set $v_n=u_n+a$ to try to get the recurrence to be $v_{n+1}=3v_n$. So, you want
      $$u_{n+1}+a=3u_n+3a$$
      that is
      $$3u_n+1+a=3u_n+3a.$$
      Therefore you want $a=1/2$. So the sequence $v_n$ is $7/2$, $21/2$, $63/2$ etc. Then
      $$v_n=3^{n-1}frac72$$
      and
      $$u_n=3^{n-1}frac72-frac12.$$






      share|cite|improve this answer









      $endgroup$


















        0












        $begingroup$

        Set $v_n=u_n+a$ to try to get the recurrence to be $v_{n+1}=3v_n$. So, you want
        $$u_{n+1}+a=3u_n+3a$$
        that is
        $$3u_n+1+a=3u_n+3a.$$
        Therefore you want $a=1/2$. So the sequence $v_n$ is $7/2$, $21/2$, $63/2$ etc. Then
        $$v_n=3^{n-1}frac72$$
        and
        $$u_n=3^{n-1}frac72-frac12.$$






        share|cite|improve this answer









        $endgroup$
















          0












          0








          0





          $begingroup$

          Set $v_n=u_n+a$ to try to get the recurrence to be $v_{n+1}=3v_n$. So, you want
          $$u_{n+1}+a=3u_n+3a$$
          that is
          $$3u_n+1+a=3u_n+3a.$$
          Therefore you want $a=1/2$. So the sequence $v_n$ is $7/2$, $21/2$, $63/2$ etc. Then
          $$v_n=3^{n-1}frac72$$
          and
          $$u_n=3^{n-1}frac72-frac12.$$






          share|cite|improve this answer









          $endgroup$



          Set $v_n=u_n+a$ to try to get the recurrence to be $v_{n+1}=3v_n$. So, you want
          $$u_{n+1}+a=3u_n+3a$$
          that is
          $$3u_n+1+a=3u_n+3a.$$
          Therefore you want $a=1/2$. So the sequence $v_n$ is $7/2$, $21/2$, $63/2$ etc. Then
          $$v_n=3^{n-1}frac72$$
          and
          $$u_n=3^{n-1}frac72-frac12.$$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered 8 hours ago









          Lord Shark the UnknownLord Shark the Unknown

          116k11 gold badges67 silver badges147 bronze badges




          116k11 gold badges67 silver badges147 bronze badges























              0












              $begingroup$

              I have worked out this sum for your sequence: $$u_{n}=left (sum_{i=0}^{n}3^{i} right ) - 3^{n-1}$$. You can easily find it if you substitute recursively values in the formula. For example for $n=4$ it's $3^{4}+3^{2}+3^{1}+1$. I obtain a geometric progression (but there isn't $3^{3}$) and the sum in general is: $$u_{n}=frac{1-3^{n+1}}{1-3}-3^{n-1}$$.
              In the end: $$u_{n}=frac{1}{2}(3^{n+1}-1)-3^{n-1}$$



              For the second question: $$u_{n}=ab^{n-1}+sum_{i=0}^{n-1}cb^{i}=ab^{n-1}+frac{(cb)^{n-1}-1}{cb-1}$$






              share|cite|improve this answer










              New contributor



              Matteo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.





              $endgroup$


















                0












                $begingroup$

                I have worked out this sum for your sequence: $$u_{n}=left (sum_{i=0}^{n}3^{i} right ) - 3^{n-1}$$. You can easily find it if you substitute recursively values in the formula. For example for $n=4$ it's $3^{4}+3^{2}+3^{1}+1$. I obtain a geometric progression (but there isn't $3^{3}$) and the sum in general is: $$u_{n}=frac{1-3^{n+1}}{1-3}-3^{n-1}$$.
                In the end: $$u_{n}=frac{1}{2}(3^{n+1}-1)-3^{n-1}$$



                For the second question: $$u_{n}=ab^{n-1}+sum_{i=0}^{n-1}cb^{i}=ab^{n-1}+frac{(cb)^{n-1}-1}{cb-1}$$






                share|cite|improve this answer










                New contributor



                Matteo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  I have worked out this sum for your sequence: $$u_{n}=left (sum_{i=0}^{n}3^{i} right ) - 3^{n-1}$$. You can easily find it if you substitute recursively values in the formula. For example for $n=4$ it's $3^{4}+3^{2}+3^{1}+1$. I obtain a geometric progression (but there isn't $3^{3}$) and the sum in general is: $$u_{n}=frac{1-3^{n+1}}{1-3}-3^{n-1}$$.
                  In the end: $$u_{n}=frac{1}{2}(3^{n+1}-1)-3^{n-1}$$



                  For the second question: $$u_{n}=ab^{n-1}+sum_{i=0}^{n-1}cb^{i}=ab^{n-1}+frac{(cb)^{n-1}-1}{cb-1}$$






                  share|cite|improve this answer










                  New contributor



                  Matteo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  $endgroup$



                  I have worked out this sum for your sequence: $$u_{n}=left (sum_{i=0}^{n}3^{i} right ) - 3^{n-1}$$. You can easily find it if you substitute recursively values in the formula. For example for $n=4$ it's $3^{4}+3^{2}+3^{1}+1$. I obtain a geometric progression (but there isn't $3^{3}$) and the sum in general is: $$u_{n}=frac{1-3^{n+1}}{1-3}-3^{n-1}$$.
                  In the end: $$u_{n}=frac{1}{2}(3^{n+1}-1)-3^{n-1}$$



                  For the second question: $$u_{n}=ab^{n-1}+sum_{i=0}^{n-1}cb^{i}=ab^{n-1}+frac{(cb)^{n-1}-1}{cb-1}$$







                  share|cite|improve this answer










                  New contributor



                  Matteo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited 7 hours ago





















                  New contributor



                  Matteo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  answered 7 hours ago









                  MatteoMatteo

                  144 bronze badges




                  144 bronze badges




                  New contributor



                  Matteo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.




                  New contributor




                  Matteo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.
























                      FailToWinPRO is a new contributor. Be nice, and check out our Code of Conduct.










                      draft saved

                      draft discarded


















                      FailToWinPRO is a new contributor. Be nice, and check out our Code of Conduct.













                      FailToWinPRO is a new contributor. Be nice, and check out our Code of Conduct.












                      FailToWinPRO is a new contributor. Be nice, and check out our Code of Conduct.
















                      Thanks for contributing an answer to Mathematics Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3289168%2ffinding-the-nth-term-of-sequence-of-3-10-31-94-283%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                      Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                      Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...