Problem with solving the recurrence relation $a_n=a_{n-1}+6a_{n-2}+30$ for $ngeq2$, $a_0=0$, $a_1=-10$












1












$begingroup$


My task:
$a_n=a_{n-1}+6a_{n-2}+30$ for $ngeq2$, $a_0=0$, $a_1=-10$



My solution
$x^{2}-x-6$



$Delta=25$



$x1=-2 $



$x2=3$



So I am gonna use following formula:
$a_n=ar^{n}+br^{n}$



$a_n=a*(-2)^{n}+b*3^{n}$



$a_0=0=a+b$



$a_1=-10=-2a+3b$



$b=-2$



$a=2$



$a_n=2*(-2)^{n}-2*3^{n}+30$



I calculate $a_2$



$a_2=-10+0+30=20$



Which is correct with above formula



$a_2=2*(-2)^{2}-2*3^{2}+30=20$



but for $a_3$ and above results are not matching, am I doing something wrong here?










share|cite|improve this question











$endgroup$

















    1












    $begingroup$


    My task:
    $a_n=a_{n-1}+6a_{n-2}+30$ for $ngeq2$, $a_0=0$, $a_1=-10$



    My solution
    $x^{2}-x-6$



    $Delta=25$



    $x1=-2 $



    $x2=3$



    So I am gonna use following formula:
    $a_n=ar^{n}+br^{n}$



    $a_n=a*(-2)^{n}+b*3^{n}$



    $a_0=0=a+b$



    $a_1=-10=-2a+3b$



    $b=-2$



    $a=2$



    $a_n=2*(-2)^{n}-2*3^{n}+30$



    I calculate $a_2$



    $a_2=-10+0+30=20$



    Which is correct with above formula



    $a_2=2*(-2)^{2}-2*3^{2}+30=20$



    but for $a_3$ and above results are not matching, am I doing something wrong here?










    share|cite|improve this question











    $endgroup$















      1












      1








      1


      1



      $begingroup$


      My task:
      $a_n=a_{n-1}+6a_{n-2}+30$ for $ngeq2$, $a_0=0$, $a_1=-10$



      My solution
      $x^{2}-x-6$



      $Delta=25$



      $x1=-2 $



      $x2=3$



      So I am gonna use following formula:
      $a_n=ar^{n}+br^{n}$



      $a_n=a*(-2)^{n}+b*3^{n}$



      $a_0=0=a+b$



      $a_1=-10=-2a+3b$



      $b=-2$



      $a=2$



      $a_n=2*(-2)^{n}-2*3^{n}+30$



      I calculate $a_2$



      $a_2=-10+0+30=20$



      Which is correct with above formula



      $a_2=2*(-2)^{2}-2*3^{2}+30=20$



      but for $a_3$ and above results are not matching, am I doing something wrong here?










      share|cite|improve this question











      $endgroup$




      My task:
      $a_n=a_{n-1}+6a_{n-2}+30$ for $ngeq2$, $a_0=0$, $a_1=-10$



      My solution
      $x^{2}-x-6$



      $Delta=25$



      $x1=-2 $



      $x2=3$



      So I am gonna use following formula:
      $a_n=ar^{n}+br^{n}$



      $a_n=a*(-2)^{n}+b*3^{n}$



      $a_0=0=a+b$



      $a_1=-10=-2a+3b$



      $b=-2$



      $a=2$



      $a_n=2*(-2)^{n}-2*3^{n}+30$



      I calculate $a_2$



      $a_2=-10+0+30=20$



      Which is correct with above formula



      $a_2=2*(-2)^{2}-2*3^{2}+30=20$



      but for $a_3$ and above results are not matching, am I doing something wrong here?







      discrete-mathematics






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Jan 27 at 16:23







      Gorosso

















      asked Jan 27 at 16:17









      GorossoGorosso

      315




      315






















          2 Answers
          2






          active

          oldest

          votes


















          1












          $begingroup$

          The $+30$ is the problem. Find $c$ such that $b_n:=a_n+cimplies b_n=b_{n-1}+6b_{n-2}$, then use your usual techniques.



          Edit to add detail:



          $$b_n=b_{n-1}-c+6(b_{n-2}-c)+30+c=b_{n-1}+6b_{n-2}+30-6c$$ Set $c=5$ so $$b_n=b_{n-1}+6b_{n-2}impliesexists a,,b:,b_n=a(-2)^n+b3^n.$$From $b_0=5,,b_1=-5$, you can find $a,,b$. Then $a_n=b_n-5$.






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            I don't really get it, could you show me how its supposed to look in my case? That's the best way for me to understand it.
            $endgroup$
            – Gorosso
            Jan 27 at 16:41










          • $begingroup$
            @Gorosso See my edit.
            $endgroup$
            – J.G.
            Jan 27 at 17:15










          • $begingroup$
            Where does c=5 come from? Also what I am supposed to do with $a_n=b_n-5$?
            $endgroup$
            – Gorosso
            Jan 27 at 18:00










          • $begingroup$
            @Gorosso The technique you used originally only works when there isn't a constant in the recursion relation, so I chose $c$ to delete it. Once you have a formula for $b_n$, you have one for $a_n$.
            $endgroup$
            – J.G.
            Jan 27 at 18:14










          • $begingroup$
            Now results are matching, so I guess I did everything according to your tips. But I am having some issue in similar reccurence using your method, could you check it out? math.stackexchange.com/questions/3090006/…
            $endgroup$
            – Gorosso
            Jan 27 at 19:22



















          1












          $begingroup$

          Since for all $n$ we have $$a_n-a_{n-1}-6a_{n-2}=30$$ we have also



          $$a_{n-1}-a_{n-2}-6a_{n-3}=30$$



          so $$a_n-a_{n-1}-6a_{n-2}=a_{n-1}-a_{n-2}-6a_{n-3}$$



          and thus we get l.r. :



          $$a_n-2a_{n-1}-5a_{n-2}+6a_{n-3}=0$$



          and so on...






          share|cite|improve this answer









          $endgroup$













            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            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
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3089757%2fproblem-with-solving-the-recurrence-relation-a-n-a-n-16a-n-230-for-n-ge%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1












            $begingroup$

            The $+30$ is the problem. Find $c$ such that $b_n:=a_n+cimplies b_n=b_{n-1}+6b_{n-2}$, then use your usual techniques.



            Edit to add detail:



            $$b_n=b_{n-1}-c+6(b_{n-2}-c)+30+c=b_{n-1}+6b_{n-2}+30-6c$$ Set $c=5$ so $$b_n=b_{n-1}+6b_{n-2}impliesexists a,,b:,b_n=a(-2)^n+b3^n.$$From $b_0=5,,b_1=-5$, you can find $a,,b$. Then $a_n=b_n-5$.






            share|cite|improve this answer











            $endgroup$













            • $begingroup$
              I don't really get it, could you show me how its supposed to look in my case? That's the best way for me to understand it.
              $endgroup$
              – Gorosso
              Jan 27 at 16:41










            • $begingroup$
              @Gorosso See my edit.
              $endgroup$
              – J.G.
              Jan 27 at 17:15










            • $begingroup$
              Where does c=5 come from? Also what I am supposed to do with $a_n=b_n-5$?
              $endgroup$
              – Gorosso
              Jan 27 at 18:00










            • $begingroup$
              @Gorosso The technique you used originally only works when there isn't a constant in the recursion relation, so I chose $c$ to delete it. Once you have a formula for $b_n$, you have one for $a_n$.
              $endgroup$
              – J.G.
              Jan 27 at 18:14










            • $begingroup$
              Now results are matching, so I guess I did everything according to your tips. But I am having some issue in similar reccurence using your method, could you check it out? math.stackexchange.com/questions/3090006/…
              $endgroup$
              – Gorosso
              Jan 27 at 19:22
















            1












            $begingroup$

            The $+30$ is the problem. Find $c$ such that $b_n:=a_n+cimplies b_n=b_{n-1}+6b_{n-2}$, then use your usual techniques.



            Edit to add detail:



            $$b_n=b_{n-1}-c+6(b_{n-2}-c)+30+c=b_{n-1}+6b_{n-2}+30-6c$$ Set $c=5$ so $$b_n=b_{n-1}+6b_{n-2}impliesexists a,,b:,b_n=a(-2)^n+b3^n.$$From $b_0=5,,b_1=-5$, you can find $a,,b$. Then $a_n=b_n-5$.






            share|cite|improve this answer











            $endgroup$













            • $begingroup$
              I don't really get it, could you show me how its supposed to look in my case? That's the best way for me to understand it.
              $endgroup$
              – Gorosso
              Jan 27 at 16:41










            • $begingroup$
              @Gorosso See my edit.
              $endgroup$
              – J.G.
              Jan 27 at 17:15










            • $begingroup$
              Where does c=5 come from? Also what I am supposed to do with $a_n=b_n-5$?
              $endgroup$
              – Gorosso
              Jan 27 at 18:00










            • $begingroup$
              @Gorosso The technique you used originally only works when there isn't a constant in the recursion relation, so I chose $c$ to delete it. Once you have a formula for $b_n$, you have one for $a_n$.
              $endgroup$
              – J.G.
              Jan 27 at 18:14










            • $begingroup$
              Now results are matching, so I guess I did everything according to your tips. But I am having some issue in similar reccurence using your method, could you check it out? math.stackexchange.com/questions/3090006/…
              $endgroup$
              – Gorosso
              Jan 27 at 19:22














            1












            1








            1





            $begingroup$

            The $+30$ is the problem. Find $c$ such that $b_n:=a_n+cimplies b_n=b_{n-1}+6b_{n-2}$, then use your usual techniques.



            Edit to add detail:



            $$b_n=b_{n-1}-c+6(b_{n-2}-c)+30+c=b_{n-1}+6b_{n-2}+30-6c$$ Set $c=5$ so $$b_n=b_{n-1}+6b_{n-2}impliesexists a,,b:,b_n=a(-2)^n+b3^n.$$From $b_0=5,,b_1=-5$, you can find $a,,b$. Then $a_n=b_n-5$.






            share|cite|improve this answer











            $endgroup$



            The $+30$ is the problem. Find $c$ such that $b_n:=a_n+cimplies b_n=b_{n-1}+6b_{n-2}$, then use your usual techniques.



            Edit to add detail:



            $$b_n=b_{n-1}-c+6(b_{n-2}-c)+30+c=b_{n-1}+6b_{n-2}+30-6c$$ Set $c=5$ so $$b_n=b_{n-1}+6b_{n-2}impliesexists a,,b:,b_n=a(-2)^n+b3^n.$$From $b_0=5,,b_1=-5$, you can find $a,,b$. Then $a_n=b_n-5$.







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Jan 27 at 17:15

























            answered Jan 27 at 16:21









            J.G.J.G.

            31.9k23250




            31.9k23250












            • $begingroup$
              I don't really get it, could you show me how its supposed to look in my case? That's the best way for me to understand it.
              $endgroup$
              – Gorosso
              Jan 27 at 16:41










            • $begingroup$
              @Gorosso See my edit.
              $endgroup$
              – J.G.
              Jan 27 at 17:15










            • $begingroup$
              Where does c=5 come from? Also what I am supposed to do with $a_n=b_n-5$?
              $endgroup$
              – Gorosso
              Jan 27 at 18:00










            • $begingroup$
              @Gorosso The technique you used originally only works when there isn't a constant in the recursion relation, so I chose $c$ to delete it. Once you have a formula for $b_n$, you have one for $a_n$.
              $endgroup$
              – J.G.
              Jan 27 at 18:14










            • $begingroup$
              Now results are matching, so I guess I did everything according to your tips. But I am having some issue in similar reccurence using your method, could you check it out? math.stackexchange.com/questions/3090006/…
              $endgroup$
              – Gorosso
              Jan 27 at 19:22


















            • $begingroup$
              I don't really get it, could you show me how its supposed to look in my case? That's the best way for me to understand it.
              $endgroup$
              – Gorosso
              Jan 27 at 16:41










            • $begingroup$
              @Gorosso See my edit.
              $endgroup$
              – J.G.
              Jan 27 at 17:15










            • $begingroup$
              Where does c=5 come from? Also what I am supposed to do with $a_n=b_n-5$?
              $endgroup$
              – Gorosso
              Jan 27 at 18:00










            • $begingroup$
              @Gorosso The technique you used originally only works when there isn't a constant in the recursion relation, so I chose $c$ to delete it. Once you have a formula for $b_n$, you have one for $a_n$.
              $endgroup$
              – J.G.
              Jan 27 at 18:14










            • $begingroup$
              Now results are matching, so I guess I did everything according to your tips. But I am having some issue in similar reccurence using your method, could you check it out? math.stackexchange.com/questions/3090006/…
              $endgroup$
              – Gorosso
              Jan 27 at 19:22
















            $begingroup$
            I don't really get it, could you show me how its supposed to look in my case? That's the best way for me to understand it.
            $endgroup$
            – Gorosso
            Jan 27 at 16:41




            $begingroup$
            I don't really get it, could you show me how its supposed to look in my case? That's the best way for me to understand it.
            $endgroup$
            – Gorosso
            Jan 27 at 16:41












            $begingroup$
            @Gorosso See my edit.
            $endgroup$
            – J.G.
            Jan 27 at 17:15




            $begingroup$
            @Gorosso See my edit.
            $endgroup$
            – J.G.
            Jan 27 at 17:15












            $begingroup$
            Where does c=5 come from? Also what I am supposed to do with $a_n=b_n-5$?
            $endgroup$
            – Gorosso
            Jan 27 at 18:00




            $begingroup$
            Where does c=5 come from? Also what I am supposed to do with $a_n=b_n-5$?
            $endgroup$
            – Gorosso
            Jan 27 at 18:00












            $begingroup$
            @Gorosso The technique you used originally only works when there isn't a constant in the recursion relation, so I chose $c$ to delete it. Once you have a formula for $b_n$, you have one for $a_n$.
            $endgroup$
            – J.G.
            Jan 27 at 18:14




            $begingroup$
            @Gorosso The technique you used originally only works when there isn't a constant in the recursion relation, so I chose $c$ to delete it. Once you have a formula for $b_n$, you have one for $a_n$.
            $endgroup$
            – J.G.
            Jan 27 at 18:14












            $begingroup$
            Now results are matching, so I guess I did everything according to your tips. But I am having some issue in similar reccurence using your method, could you check it out? math.stackexchange.com/questions/3090006/…
            $endgroup$
            – Gorosso
            Jan 27 at 19:22




            $begingroup$
            Now results are matching, so I guess I did everything according to your tips. But I am having some issue in similar reccurence using your method, could you check it out? math.stackexchange.com/questions/3090006/…
            $endgroup$
            – Gorosso
            Jan 27 at 19:22











            1












            $begingroup$

            Since for all $n$ we have $$a_n-a_{n-1}-6a_{n-2}=30$$ we have also



            $$a_{n-1}-a_{n-2}-6a_{n-3}=30$$



            so $$a_n-a_{n-1}-6a_{n-2}=a_{n-1}-a_{n-2}-6a_{n-3}$$



            and thus we get l.r. :



            $$a_n-2a_{n-1}-5a_{n-2}+6a_{n-3}=0$$



            and so on...






            share|cite|improve this answer









            $endgroup$


















              1












              $begingroup$

              Since for all $n$ we have $$a_n-a_{n-1}-6a_{n-2}=30$$ we have also



              $$a_{n-1}-a_{n-2}-6a_{n-3}=30$$



              so $$a_n-a_{n-1}-6a_{n-2}=a_{n-1}-a_{n-2}-6a_{n-3}$$



              and thus we get l.r. :



              $$a_n-2a_{n-1}-5a_{n-2}+6a_{n-3}=0$$



              and so on...






              share|cite|improve this answer









              $endgroup$
















                1












                1








                1





                $begingroup$

                Since for all $n$ we have $$a_n-a_{n-1}-6a_{n-2}=30$$ we have also



                $$a_{n-1}-a_{n-2}-6a_{n-3}=30$$



                so $$a_n-a_{n-1}-6a_{n-2}=a_{n-1}-a_{n-2}-6a_{n-3}$$



                and thus we get l.r. :



                $$a_n-2a_{n-1}-5a_{n-2}+6a_{n-3}=0$$



                and so on...






                share|cite|improve this answer









                $endgroup$



                Since for all $n$ we have $$a_n-a_{n-1}-6a_{n-2}=30$$ we have also



                $$a_{n-1}-a_{n-2}-6a_{n-3}=30$$



                so $$a_n-a_{n-1}-6a_{n-2}=a_{n-1}-a_{n-2}-6a_{n-3}$$



                and thus we get l.r. :



                $$a_n-2a_{n-1}-5a_{n-2}+6a_{n-3}=0$$



                and so on...







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Jan 27 at 17:23









                Maria MazurMaria Mazur

                48.4k1260121




                48.4k1260121






























                    draft saved

                    draft discarded




















































                    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%2f3089757%2fproblem-with-solving-the-recurrence-relation-a-n-a-n-16a-n-230-for-n-ge%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

                    android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                    SQL update select statement

                    'app-layout' is not a known element: how to share Component with different Modules