Solve the following recurrence $b(n)=0.9*b(n-1)+60, b(1)=300$












0












$begingroup$


How to solve the following recurrence: $$b(n)=0.9*b(n-1)+60, b(1)=300$$



I do it with telescoping, like this:



$$b(n)=0.9*(0.9*b(n-2)+60)+60$$
$$b(n)=0.9*(0.9*(0.9*b(n-3)+60)+60)+60$$



Which means that for $n=4$ we get $$b(n)=0.9^{(n-1)}*300+(60)^n-1$$



But the correct solution is $b(n)=-300*(0.9^n)+600$



Can someone please explain where is my mistake?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Looks like a geometric sum to me.
    $endgroup$
    – Matti P.
    Jan 18 at 12:02
















0












$begingroup$


How to solve the following recurrence: $$b(n)=0.9*b(n-1)+60, b(1)=300$$



I do it with telescoping, like this:



$$b(n)=0.9*(0.9*b(n-2)+60)+60$$
$$b(n)=0.9*(0.9*(0.9*b(n-3)+60)+60)+60$$



Which means that for $n=4$ we get $$b(n)=0.9^{(n-1)}*300+(60)^n-1$$



But the correct solution is $b(n)=-300*(0.9^n)+600$



Can someone please explain where is my mistake?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Looks like a geometric sum to me.
    $endgroup$
    – Matti P.
    Jan 18 at 12:02














0












0








0





$begingroup$


How to solve the following recurrence: $$b(n)=0.9*b(n-1)+60, b(1)=300$$



I do it with telescoping, like this:



$$b(n)=0.9*(0.9*b(n-2)+60)+60$$
$$b(n)=0.9*(0.9*(0.9*b(n-3)+60)+60)+60$$



Which means that for $n=4$ we get $$b(n)=0.9^{(n-1)}*300+(60)^n-1$$



But the correct solution is $b(n)=-300*(0.9^n)+600$



Can someone please explain where is my mistake?










share|cite|improve this question











$endgroup$




How to solve the following recurrence: $$b(n)=0.9*b(n-1)+60, b(1)=300$$



I do it with telescoping, like this:



$$b(n)=0.9*(0.9*b(n-2)+60)+60$$
$$b(n)=0.9*(0.9*(0.9*b(n-3)+60)+60)+60$$



Which means that for $n=4$ we get $$b(n)=0.9^{(n-1)}*300+(60)^n-1$$



But the correct solution is $b(n)=-300*(0.9^n)+600$



Can someone please explain where is my mistake?







discrete-mathematics recurrence-relations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 18 at 12:06









Thomas Shelby

3,7092525




3,7092525










asked Jan 18 at 11:58









ponikoliponikoli

416




416












  • $begingroup$
    Looks like a geometric sum to me.
    $endgroup$
    – Matti P.
    Jan 18 at 12:02


















  • $begingroup$
    Looks like a geometric sum to me.
    $endgroup$
    – Matti P.
    Jan 18 at 12:02
















$begingroup$
Looks like a geometric sum to me.
$endgroup$
– Matti P.
Jan 18 at 12:02




$begingroup$
Looks like a geometric sum to me.
$endgroup$
– Matti P.
Jan 18 at 12:02










2 Answers
2






active

oldest

votes


















2












$begingroup$

Let $b_n = ab_{n-1} + c, b_1 = d$. Then by expanding, one gets: $b_n = a(ab_{n-2} + c) + c = a^{n-1}b_1 + sum_{i=0}^{n-1}{a^ic}$. Finally $b_n =a^{n-1}d + cfrac{a^n-1}{a-1}$.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    This answer is a better one since it does not depend on any choice to nullify a part of the expression.
    $endgroup$
    – Martigan
    Jan 18 at 12:28



















1












$begingroup$

Let
$$b_{n}=a_n+c$$
So we have that
$$a_n+c=0.9(a_{n-1}+c)+60$$
$$a_n=0.9a_{n-1}+60-0.1c$$
So if we let $60-0.1c=0$, we get that $c=600$. But this means that
$$a_n=0.9a_{n-1}$$
Which I think you can solve. From this, we will get that
$$b_n=a_n+600$$






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%2f3078150%2fsolve-the-following-recurrence-bn-0-9bn-160-b1-300%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









    2












    $begingroup$

    Let $b_n = ab_{n-1} + c, b_1 = d$. Then by expanding, one gets: $b_n = a(ab_{n-2} + c) + c = a^{n-1}b_1 + sum_{i=0}^{n-1}{a^ic}$. Finally $b_n =a^{n-1}d + cfrac{a^n-1}{a-1}$.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      This answer is a better one since it does not depend on any choice to nullify a part of the expression.
      $endgroup$
      – Martigan
      Jan 18 at 12:28
















    2












    $begingroup$

    Let $b_n = ab_{n-1} + c, b_1 = d$. Then by expanding, one gets: $b_n = a(ab_{n-2} + c) + c = a^{n-1}b_1 + sum_{i=0}^{n-1}{a^ic}$. Finally $b_n =a^{n-1}d + cfrac{a^n-1}{a-1}$.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      This answer is a better one since it does not depend on any choice to nullify a part of the expression.
      $endgroup$
      – Martigan
      Jan 18 at 12:28














    2












    2








    2





    $begingroup$

    Let $b_n = ab_{n-1} + c, b_1 = d$. Then by expanding, one gets: $b_n = a(ab_{n-2} + c) + c = a^{n-1}b_1 + sum_{i=0}^{n-1}{a^ic}$. Finally $b_n =a^{n-1}d + cfrac{a^n-1}{a-1}$.






    share|cite|improve this answer









    $endgroup$



    Let $b_n = ab_{n-1} + c, b_1 = d$. Then by expanding, one gets: $b_n = a(ab_{n-2} + c) + c = a^{n-1}b_1 + sum_{i=0}^{n-1}{a^ic}$. Finally $b_n =a^{n-1}d + cfrac{a^n-1}{a-1}$.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Jan 18 at 12:10









    lightxbulblightxbulb

    945311




    945311












    • $begingroup$
      This answer is a better one since it does not depend on any choice to nullify a part of the expression.
      $endgroup$
      – Martigan
      Jan 18 at 12:28


















    • $begingroup$
      This answer is a better one since it does not depend on any choice to nullify a part of the expression.
      $endgroup$
      – Martigan
      Jan 18 at 12:28
















    $begingroup$
    This answer is a better one since it does not depend on any choice to nullify a part of the expression.
    $endgroup$
    – Martigan
    Jan 18 at 12:28




    $begingroup$
    This answer is a better one since it does not depend on any choice to nullify a part of the expression.
    $endgroup$
    – Martigan
    Jan 18 at 12:28











    1












    $begingroup$

    Let
    $$b_{n}=a_n+c$$
    So we have that
    $$a_n+c=0.9(a_{n-1}+c)+60$$
    $$a_n=0.9a_{n-1}+60-0.1c$$
    So if we let $60-0.1c=0$, we get that $c=600$. But this means that
    $$a_n=0.9a_{n-1}$$
    Which I think you can solve. From this, we will get that
    $$b_n=a_n+600$$






    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      Let
      $$b_{n}=a_n+c$$
      So we have that
      $$a_n+c=0.9(a_{n-1}+c)+60$$
      $$a_n=0.9a_{n-1}+60-0.1c$$
      So if we let $60-0.1c=0$, we get that $c=600$. But this means that
      $$a_n=0.9a_{n-1}$$
      Which I think you can solve. From this, we will get that
      $$b_n=a_n+600$$






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        Let
        $$b_{n}=a_n+c$$
        So we have that
        $$a_n+c=0.9(a_{n-1}+c)+60$$
        $$a_n=0.9a_{n-1}+60-0.1c$$
        So if we let $60-0.1c=0$, we get that $c=600$. But this means that
        $$a_n=0.9a_{n-1}$$
        Which I think you can solve. From this, we will get that
        $$b_n=a_n+600$$






        share|cite|improve this answer









        $endgroup$



        Let
        $$b_{n}=a_n+c$$
        So we have that
        $$a_n+c=0.9(a_{n-1}+c)+60$$
        $$a_n=0.9a_{n-1}+60-0.1c$$
        So if we let $60-0.1c=0$, we get that $c=600$. But this means that
        $$a_n=0.9a_{n-1}$$
        Which I think you can solve. From this, we will get that
        $$b_n=a_n+600$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 18 at 12:12









        BotondBotond

        5,8802832




        5,8802832






























            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%2f3078150%2fsolve-the-following-recurrence-bn-0-9bn-160-b1-300%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

            MongoDB - Not Authorized To Execute Command

            Npm cannot find a required file even through it is in the searched directory

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith