Finding the general formula for a sequence: Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Finding the general formula $a_n$ for $a_n = frac12a_n-1 + 2a_n-2$Another quick induction question for a recursively defined sequence (with closed form formula given)Finding a closed-form formula for a sequence that is defined recursivelyFinding the formula for nth term of a sequenceSolve recurrence by generating functionsHow to find the general formula for this recursive problem?Find an explicit formula for a sequenceIterated sequence - general formulaFinding a closed form formula for a recursive sequence.What is the explicit formula for the general term of the sequence?

How discoverable are IPv6 addresses and AAAA names by potential attackers?

Is the Standard Deduction better than Itemized when both are the same amount?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

If 'B is more likely given A', then 'A is more likely given B'

What is a Meta algorithm?

Does surprise arrest existing movement?

Did Kevin spill real chili?

How to find all the available tools in macOS terminal?

Doubts about chords

How to deal with a team lead who never gives me credit?

Why is "Consequences inflicted." not a sentence?

Difference between these two cards?

The logistics of corpse disposal

Why does Python start at index -1 when indexing a list from the end?

Can a non-EU citizen traveling with me come with me through the EU passport line?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

What is this single-engine low-wing propeller plane?

Is it true to say that an hosting provider's DNS server is what links the entire hosting environment to ICANN?

What do you call a plan that's an alternative plan in case your initial plan fails?

Letter Boxed validator

Using et al. for a last / senior author rather than for a first author

Do I really need recursive chmod to restrict access to a folder?

How widely used is the term Treppenwitz? Is it something that most Germans know?

Single word antonym of "flightless"



Finding the general formula for a sequence:



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Finding the general formula $a_n$ for $a_n = frac12a_n-1 + 2a_n-2$Another quick induction question for a recursively defined sequence (with closed form formula given)Finding a closed-form formula for a sequence that is defined recursivelyFinding the formula for nth term of a sequenceSolve recurrence by generating functionsHow to find the general formula for this recursive problem?Find an explicit formula for a sequenceIterated sequence - general formulaFinding a closed form formula for a recursive sequence.What is the explicit formula for the general term of the sequence?










1












$begingroup$



I have a sequence:



$a_0 = 0; a_1 = 4; a_2 = 9; a_n = 4a_n-1 - 5a_n-2 + 2a_n-3$




I want to find the general formula.










share|cite|improve this question











$endgroup$







  • 2




    $begingroup$
    Are you familiar with the standard methods of solving such recursions (such as characteristic polynomials)? If you are, this is a standard example. If you are not, this is a good introduction.
    $endgroup$
    – lulu
    Apr 1 at 0:41







  • 2




    $begingroup$
    I believe your computations for the sequence start to go wrong at $84$.
    $endgroup$
    – amd
    Apr 1 at 1:22






  • 1




    $begingroup$
    I agree with @amd; I got 81 instead of 84
    $endgroup$
    – J. W. Tanner
    Apr 1 at 1:36















1












$begingroup$



I have a sequence:



$a_0 = 0; a_1 = 4; a_2 = 9; a_n = 4a_n-1 - 5a_n-2 + 2a_n-3$




I want to find the general formula.










share|cite|improve this question











$endgroup$







  • 2




    $begingroup$
    Are you familiar with the standard methods of solving such recursions (such as characteristic polynomials)? If you are, this is a standard example. If you are not, this is a good introduction.
    $endgroup$
    – lulu
    Apr 1 at 0:41







  • 2




    $begingroup$
    I believe your computations for the sequence start to go wrong at $84$.
    $endgroup$
    – amd
    Apr 1 at 1:22






  • 1




    $begingroup$
    I agree with @amd; I got 81 instead of 84
    $endgroup$
    – J. W. Tanner
    Apr 1 at 1:36













1












1








1


1



$begingroup$



I have a sequence:



$a_0 = 0; a_1 = 4; a_2 = 9; a_n = 4a_n-1 - 5a_n-2 + 2a_n-3$




I want to find the general formula.










share|cite|improve this question











$endgroup$





I have a sequence:



$a_0 = 0; a_1 = 4; a_2 = 9; a_n = 4a_n-1 - 5a_n-2 + 2a_n-3$




I want to find the general formula.







sequences-and-series combinatorics discrete-mathematics recurrence-relations characteristic-functions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Apr 4 at 11:31







J. Lastin

















asked Apr 1 at 0:38









J. LastinJ. Lastin

12412




12412







  • 2




    $begingroup$
    Are you familiar with the standard methods of solving such recursions (such as characteristic polynomials)? If you are, this is a standard example. If you are not, this is a good introduction.
    $endgroup$
    – lulu
    Apr 1 at 0:41







  • 2




    $begingroup$
    I believe your computations for the sequence start to go wrong at $84$.
    $endgroup$
    – amd
    Apr 1 at 1:22






  • 1




    $begingroup$
    I agree with @amd; I got 81 instead of 84
    $endgroup$
    – J. W. Tanner
    Apr 1 at 1:36












  • 2




    $begingroup$
    Are you familiar with the standard methods of solving such recursions (such as characteristic polynomials)? If you are, this is a standard example. If you are not, this is a good introduction.
    $endgroup$
    – lulu
    Apr 1 at 0:41







  • 2




    $begingroup$
    I believe your computations for the sequence start to go wrong at $84$.
    $endgroup$
    – amd
    Apr 1 at 1:22






  • 1




    $begingroup$
    I agree with @amd; I got 81 instead of 84
    $endgroup$
    – J. W. Tanner
    Apr 1 at 1:36







2




2




$begingroup$
Are you familiar with the standard methods of solving such recursions (such as characteristic polynomials)? If you are, this is a standard example. If you are not, this is a good introduction.
$endgroup$
– lulu
Apr 1 at 0:41





$begingroup$
Are you familiar with the standard methods of solving such recursions (such as characteristic polynomials)? If you are, this is a standard example. If you are not, this is a good introduction.
$endgroup$
– lulu
Apr 1 at 0:41





2




2




$begingroup$
I believe your computations for the sequence start to go wrong at $84$.
$endgroup$
– amd
Apr 1 at 1:22




$begingroup$
I believe your computations for the sequence start to go wrong at $84$.
$endgroup$
– amd
Apr 1 at 1:22




1




1




$begingroup$
I agree with @amd; I got 81 instead of 84
$endgroup$
– J. W. Tanner
Apr 1 at 1:36




$begingroup$
I agree with @amd; I got 81 instead of 84
$endgroup$
– J. W. Tanner
Apr 1 at 1:36










3 Answers
3






active

oldest

votes


















2












$begingroup$

These are called linear difference equations. Solve the characteristic equation and use the initial values to find the appropriate constants. After, working it out, the solution to your problem is $2^n+3n-1$.






share|cite|improve this answer









$endgroup$




















    1












    $begingroup$

    HINT: Note that for all $ninBbbN$ you have
    $$beginpmatrixa_n+3\ a_n+2\ a_n+1endpmatrix
    =beginpmatrix4&-5&2\1&0&0\0&1&0endpmatrix
    beginpmatrixa_n+2\ a_n+1\ a_nendpmatrix.$$






    share|cite|improve this answer









    $endgroup$




















      0












      $begingroup$

      $lambda^n = 4lambda^n-1 - 5lambda^n-2 + 2lambda^n-3$



      $lambda^3 - 4lambda^2 + 5lambda - 2 = (lambda - 2)(lambda -1)^2$



      $lambda_1 = 2; lambda_2,3 = 1$



      $a_n = alpha(lambda_1)^n + beta(lambda_2)^n + gammacdot n(lambda_3)^n$



      $a_0 = 0 = alpha + beta$



      $a_1 = 4 = 2alpha +beta +gamma$



      $a_2 = 9 = 4alpha +beta +2gamma$



      $alpha = 1; beta = -1; gamma = 3$



      $a_n = 2^n +3n - 1$






      share|cite|improve this answer









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



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3170067%2ffinding-the-general-formula-for-a-sequence%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        2












        $begingroup$

        These are called linear difference equations. Solve the characteristic equation and use the initial values to find the appropriate constants. After, working it out, the solution to your problem is $2^n+3n-1$.






        share|cite|improve this answer









        $endgroup$

















          2












          $begingroup$

          These are called linear difference equations. Solve the characteristic equation and use the initial values to find the appropriate constants. After, working it out, the solution to your problem is $2^n+3n-1$.






          share|cite|improve this answer









          $endgroup$















            2












            2








            2





            $begingroup$

            These are called linear difference equations. Solve the characteristic equation and use the initial values to find the appropriate constants. After, working it out, the solution to your problem is $2^n+3n-1$.






            share|cite|improve this answer









            $endgroup$



            These are called linear difference equations. Solve the characteristic equation and use the initial values to find the appropriate constants. After, working it out, the solution to your problem is $2^n+3n-1$.







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Apr 1 at 6:37









            Geethu JosephGeethu Joseph

            3358




            3358





















                1












                $begingroup$

                HINT: Note that for all $ninBbbN$ you have
                $$beginpmatrixa_n+3\ a_n+2\ a_n+1endpmatrix
                =beginpmatrix4&-5&2\1&0&0\0&1&0endpmatrix
                beginpmatrixa_n+2\ a_n+1\ a_nendpmatrix.$$






                share|cite|improve this answer









                $endgroup$

















                  1












                  $begingroup$

                  HINT: Note that for all $ninBbbN$ you have
                  $$beginpmatrixa_n+3\ a_n+2\ a_n+1endpmatrix
                  =beginpmatrix4&-5&2\1&0&0\0&1&0endpmatrix
                  beginpmatrixa_n+2\ a_n+1\ a_nendpmatrix.$$






                  share|cite|improve this answer









                  $endgroup$















                    1












                    1








                    1





                    $begingroup$

                    HINT: Note that for all $ninBbbN$ you have
                    $$beginpmatrixa_n+3\ a_n+2\ a_n+1endpmatrix
                    =beginpmatrix4&-5&2\1&0&0\0&1&0endpmatrix
                    beginpmatrixa_n+2\ a_n+1\ a_nendpmatrix.$$






                    share|cite|improve this answer









                    $endgroup$



                    HINT: Note that for all $ninBbbN$ you have
                    $$beginpmatrixa_n+3\ a_n+2\ a_n+1endpmatrix
                    =beginpmatrix4&-5&2\1&0&0\0&1&0endpmatrix
                    beginpmatrixa_n+2\ a_n+1\ a_nendpmatrix.$$







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Apr 1 at 2:26









                    ServaesServaes

                    30.6k342101




                    30.6k342101





















                        0












                        $begingroup$

                        $lambda^n = 4lambda^n-1 - 5lambda^n-2 + 2lambda^n-3$



                        $lambda^3 - 4lambda^2 + 5lambda - 2 = (lambda - 2)(lambda -1)^2$



                        $lambda_1 = 2; lambda_2,3 = 1$



                        $a_n = alpha(lambda_1)^n + beta(lambda_2)^n + gammacdot n(lambda_3)^n$



                        $a_0 = 0 = alpha + beta$



                        $a_1 = 4 = 2alpha +beta +gamma$



                        $a_2 = 9 = 4alpha +beta +2gamma$



                        $alpha = 1; beta = -1; gamma = 3$



                        $a_n = 2^n +3n - 1$






                        share|cite|improve this answer









                        $endgroup$

















                          0












                          $begingroup$

                          $lambda^n = 4lambda^n-1 - 5lambda^n-2 + 2lambda^n-3$



                          $lambda^3 - 4lambda^2 + 5lambda - 2 = (lambda - 2)(lambda -1)^2$



                          $lambda_1 = 2; lambda_2,3 = 1$



                          $a_n = alpha(lambda_1)^n + beta(lambda_2)^n + gammacdot n(lambda_3)^n$



                          $a_0 = 0 = alpha + beta$



                          $a_1 = 4 = 2alpha +beta +gamma$



                          $a_2 = 9 = 4alpha +beta +2gamma$



                          $alpha = 1; beta = -1; gamma = 3$



                          $a_n = 2^n +3n - 1$






                          share|cite|improve this answer









                          $endgroup$















                            0












                            0








                            0





                            $begingroup$

                            $lambda^n = 4lambda^n-1 - 5lambda^n-2 + 2lambda^n-3$



                            $lambda^3 - 4lambda^2 + 5lambda - 2 = (lambda - 2)(lambda -1)^2$



                            $lambda_1 = 2; lambda_2,3 = 1$



                            $a_n = alpha(lambda_1)^n + beta(lambda_2)^n + gammacdot n(lambda_3)^n$



                            $a_0 = 0 = alpha + beta$



                            $a_1 = 4 = 2alpha +beta +gamma$



                            $a_2 = 9 = 4alpha +beta +2gamma$



                            $alpha = 1; beta = -1; gamma = 3$



                            $a_n = 2^n +3n - 1$






                            share|cite|improve this answer









                            $endgroup$



                            $lambda^n = 4lambda^n-1 - 5lambda^n-2 + 2lambda^n-3$



                            $lambda^3 - 4lambda^2 + 5lambda - 2 = (lambda - 2)(lambda -1)^2$



                            $lambda_1 = 2; lambda_2,3 = 1$



                            $a_n = alpha(lambda_1)^n + beta(lambda_2)^n + gammacdot n(lambda_3)^n$



                            $a_0 = 0 = alpha + beta$



                            $a_1 = 4 = 2alpha +beta +gamma$



                            $a_2 = 9 = 4alpha +beta +2gamma$



                            $alpha = 1; beta = -1; gamma = 3$



                            $a_n = 2^n +3n - 1$







                            share|cite|improve this answer












                            share|cite|improve this answer



                            share|cite|improve this answer










                            answered Apr 4 at 11:32









                            J. LastinJ. Lastin

                            12412




                            12412



























                                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%2f3170067%2ffinding-the-general-formula-for-a-sequence%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

                                Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

                                Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

                                Հադիս Բովանդակություն Անվանում և նշանակություն | Դասակարգում | Աղբյուրներ | Նավարկման ցանկ