How can I solve the linear recurrence problem $f(n)=f(n-1)+3 cdot f(n-3)+2n$ using matrix exponentiation when...












0












$begingroup$


The porblem is $f(n)=f(n-1)+3f(n-3)+2n$. I solved $f(n)=f(n-1)+3f(n-3)$ and adding summation of $2n$ upto $n$. But this is wrong. It requires too much of pre calculation.
I tried this problem based on the concept as given here https://comeoncodeon.wordpress.com/2011/05/08/recurrence-relation-and-matrix-exponentiation/










share|cite|improve this question











$endgroup$












  • $begingroup$
    1) The second sentence in your title is not understandable. 2) If you mention "using matrix", it means that you have had already exercises on this subject. What method is advised there ? 3) You do not mention initial conditions $f(1),f(2),f(3)$ ? What are they ? Arbitrary constants ?
    $endgroup$
    – Jean Marie
    Jan 20 at 9:49










  • $begingroup$
    I'm voting to close this question as off-topic because it's taken from a live coding competition, the NIT codathon.
    $endgroup$
    – lulu
    Jan 20 at 12:29










  • $begingroup$
    This problem has shown up a lot lately, see, e.g., this question. Nobody should respond to it until the competition has ended.
    $endgroup$
    – lulu
    Jan 20 at 12:31
















0












$begingroup$


The porblem is $f(n)=f(n-1)+3f(n-3)+2n$. I solved $f(n)=f(n-1)+3f(n-3)$ and adding summation of $2n$ upto $n$. But this is wrong. It requires too much of pre calculation.
I tried this problem based on the concept as given here https://comeoncodeon.wordpress.com/2011/05/08/recurrence-relation-and-matrix-exponentiation/










share|cite|improve this question











$endgroup$












  • $begingroup$
    1) The second sentence in your title is not understandable. 2) If you mention "using matrix", it means that you have had already exercises on this subject. What method is advised there ? 3) You do not mention initial conditions $f(1),f(2),f(3)$ ? What are they ? Arbitrary constants ?
    $endgroup$
    – Jean Marie
    Jan 20 at 9:49










  • $begingroup$
    I'm voting to close this question as off-topic because it's taken from a live coding competition, the NIT codathon.
    $endgroup$
    – lulu
    Jan 20 at 12:29










  • $begingroup$
    This problem has shown up a lot lately, see, e.g., this question. Nobody should respond to it until the competition has ended.
    $endgroup$
    – lulu
    Jan 20 at 12:31














0












0








0





$begingroup$


The porblem is $f(n)=f(n-1)+3f(n-3)+2n$. I solved $f(n)=f(n-1)+3f(n-3)$ and adding summation of $2n$ upto $n$. But this is wrong. It requires too much of pre calculation.
I tried this problem based on the concept as given here https://comeoncodeon.wordpress.com/2011/05/08/recurrence-relation-and-matrix-exponentiation/










share|cite|improve this question











$endgroup$




The porblem is $f(n)=f(n-1)+3f(n-3)+2n$. I solved $f(n)=f(n-1)+3f(n-3)$ and adding summation of $2n$ upto $n$. But this is wrong. It requires too much of pre calculation.
I tried this problem based on the concept as given here https://comeoncodeon.wordpress.com/2011/05/08/recurrence-relation-and-matrix-exponentiation/







linear-algebra






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 20 at 10:23









user289143

1,002313




1,002313










asked Jan 20 at 9:38









KUNDAN NAYAKKUNDAN NAYAK

11




11












  • $begingroup$
    1) The second sentence in your title is not understandable. 2) If you mention "using matrix", it means that you have had already exercises on this subject. What method is advised there ? 3) You do not mention initial conditions $f(1),f(2),f(3)$ ? What are they ? Arbitrary constants ?
    $endgroup$
    – Jean Marie
    Jan 20 at 9:49










  • $begingroup$
    I'm voting to close this question as off-topic because it's taken from a live coding competition, the NIT codathon.
    $endgroup$
    – lulu
    Jan 20 at 12:29










  • $begingroup$
    This problem has shown up a lot lately, see, e.g., this question. Nobody should respond to it until the competition has ended.
    $endgroup$
    – lulu
    Jan 20 at 12:31


















  • $begingroup$
    1) The second sentence in your title is not understandable. 2) If you mention "using matrix", it means that you have had already exercises on this subject. What method is advised there ? 3) You do not mention initial conditions $f(1),f(2),f(3)$ ? What are they ? Arbitrary constants ?
    $endgroup$
    – Jean Marie
    Jan 20 at 9:49










  • $begingroup$
    I'm voting to close this question as off-topic because it's taken from a live coding competition, the NIT codathon.
    $endgroup$
    – lulu
    Jan 20 at 12:29










  • $begingroup$
    This problem has shown up a lot lately, see, e.g., this question. Nobody should respond to it until the competition has ended.
    $endgroup$
    – lulu
    Jan 20 at 12:31
















$begingroup$
1) The second sentence in your title is not understandable. 2) If you mention "using matrix", it means that you have had already exercises on this subject. What method is advised there ? 3) You do not mention initial conditions $f(1),f(2),f(3)$ ? What are they ? Arbitrary constants ?
$endgroup$
– Jean Marie
Jan 20 at 9:49




$begingroup$
1) The second sentence in your title is not understandable. 2) If you mention "using matrix", it means that you have had already exercises on this subject. What method is advised there ? 3) You do not mention initial conditions $f(1),f(2),f(3)$ ? What are they ? Arbitrary constants ?
$endgroup$
– Jean Marie
Jan 20 at 9:49












$begingroup$
I'm voting to close this question as off-topic because it's taken from a live coding competition, the NIT codathon.
$endgroup$
– lulu
Jan 20 at 12:29




$begingroup$
I'm voting to close this question as off-topic because it's taken from a live coding competition, the NIT codathon.
$endgroup$
– lulu
Jan 20 at 12:29












$begingroup$
This problem has shown up a lot lately, see, e.g., this question. Nobody should respond to it until the competition has ended.
$endgroup$
– lulu
Jan 20 at 12:31




$begingroup$
This problem has shown up a lot lately, see, e.g., this question. Nobody should respond to it until the competition has ended.
$endgroup$
– lulu
Jan 20 at 12:31










3 Answers
3






active

oldest

votes


















1












$begingroup$

Let $v_n$ be the vector
$$ v_n=begin{pmatrix}1\n\f(n)\f(n-1)\f(n-2)end{pmatrix}.$$
Then apparently we can compute $v_n$ from $v_{n-1}$
by a matrix multiplication:
$$ begin{pmatrix}1\n\f(n)\f(n-1)\f(n-2)end{pmatrix}=begin{pmatrix}
1&0&0&0&0\
1&1&0&0&0\
0&2&1&0&3\
0&0&1&0&0\
0&0&0&1&0end{pmatrix}begin{pmatrix}1\n-1\f(n-1)\f(n-2)\f(n-3)end{pmatrix}.$$





Nevertheless, you might be able to proceed faster if you consider $g(n):=f(n)+an+b$ for suitable constants $a,b$. We find the recurrence relation
$$begin{align}g(n)&=f(n)+an+b\
&=f(n-1)+3f(n-3)+2n+an+b\
&=g(n-1)-a(n-1)-b+3g(n-3)-3a(n-3)-3b+2n+an+b\
&=g(n-1)+3g(n-3)+(2-3a)n+(10a-3b)end{align}$$

and this looks particularly nice if you pick $a,b$ such that $2-3a=10a-3b=0$.






share|cite|improve this answer









$endgroup$





















    0












    $begingroup$

    Define $g(n):=f(n)+an+b$ for constants $a,,b$ we'll choose later so $g(n)=g(n-1)+3g(n-3)+(2-3a)n+10a-3b$ (you should double-check my arithmetic). With $a=2/3,,b=10a/3=20/9$ this simplifies to $g(n)=g(n-1)+g(n-3)$, which you already know how to solve. Then $f(n)=g(n)-an-b$.






    share|cite|improve this answer









    $endgroup$





















      0












      $begingroup$

      Your problem looks to read
      $$
      left{ matrix{
      f(1) = a hfill cr
      f(2) = b hfill cr
      f(3) = c hfill cr
      f(n) = f(n - 1) + 3f(n - 3) + 2nquad left| {;4 le n} right. hfill cr} right.
      $$

      that is
      $$
      eqalign{
      & f(n) - f(n - 1) - 3f(n - 3) = cr
      & + 2nleft[ {4 le n} right] + aleft[ {1 = n} right] + bleft[ {2 = n} right] + cleft[ {3 = n} right] cr}
      $$

      where $[P]$ denotes the Iverson bracket
      $$
      left[ P right] = left{ {begin{array}{*{20}c}
      1 & {P = TRUE} \
      0 & {P = FALSE} \
      end{array} } right.
      $$



      If you want to use the matrix notation, then
      indicating with $bf E$ the shift matrix
      $$
      {bf E} = left( {matrix{
      0 & 0 & 0 & 0 & cdots cr
      1 & 0 & 0 & 0 & cdots cr
      0 & 1 & 0 & 0 & cdots cr
      0 & 0 & 1 & 0 & cdots cr
      vdots & vdots & vdots & ddots & ddots cr
      } } right)
      $$

      then the equation is
      $$
      left( {{bf I} - {bf E} - 3,{bf E}^{,{bf 3}} } right){bf f} = {bf v} = left( {a,b,c,8,10, cdots } right)^T
      $$

      which gives
      $$
      eqalign{
      & {bf f} = {{bf I} over {{bf I} - {bf E} - 3,{bf E}^{,{bf 3}} }}{bf v} = cr
      & = left( {sumlimits_{0, le ,n} {{bf E}^{,{bf n}} left( {{bf I}
      + sqrt 3 ,{bf E}} right)^{,{bf n}} left( {{bf I} - sqrt 3 ,{bf E}} right)^{,{bf n}} } } right){bf v} = cr
      & = quad cdots cr}
      $$






      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%2f3080369%2fhow-can-i-solve-the-linear-recurrence-problem-fn-fn-13-cdot-fn-32n-us%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









        1












        $begingroup$

        Let $v_n$ be the vector
        $$ v_n=begin{pmatrix}1\n\f(n)\f(n-1)\f(n-2)end{pmatrix}.$$
        Then apparently we can compute $v_n$ from $v_{n-1}$
        by a matrix multiplication:
        $$ begin{pmatrix}1\n\f(n)\f(n-1)\f(n-2)end{pmatrix}=begin{pmatrix}
        1&0&0&0&0\
        1&1&0&0&0\
        0&2&1&0&3\
        0&0&1&0&0\
        0&0&0&1&0end{pmatrix}begin{pmatrix}1\n-1\f(n-1)\f(n-2)\f(n-3)end{pmatrix}.$$





        Nevertheless, you might be able to proceed faster if you consider $g(n):=f(n)+an+b$ for suitable constants $a,b$. We find the recurrence relation
        $$begin{align}g(n)&=f(n)+an+b\
        &=f(n-1)+3f(n-3)+2n+an+b\
        &=g(n-1)-a(n-1)-b+3g(n-3)-3a(n-3)-3b+2n+an+b\
        &=g(n-1)+3g(n-3)+(2-3a)n+(10a-3b)end{align}$$

        and this looks particularly nice if you pick $a,b$ such that $2-3a=10a-3b=0$.






        share|cite|improve this answer









        $endgroup$


















          1












          $begingroup$

          Let $v_n$ be the vector
          $$ v_n=begin{pmatrix}1\n\f(n)\f(n-1)\f(n-2)end{pmatrix}.$$
          Then apparently we can compute $v_n$ from $v_{n-1}$
          by a matrix multiplication:
          $$ begin{pmatrix}1\n\f(n)\f(n-1)\f(n-2)end{pmatrix}=begin{pmatrix}
          1&0&0&0&0\
          1&1&0&0&0\
          0&2&1&0&3\
          0&0&1&0&0\
          0&0&0&1&0end{pmatrix}begin{pmatrix}1\n-1\f(n-1)\f(n-2)\f(n-3)end{pmatrix}.$$





          Nevertheless, you might be able to proceed faster if you consider $g(n):=f(n)+an+b$ for suitable constants $a,b$. We find the recurrence relation
          $$begin{align}g(n)&=f(n)+an+b\
          &=f(n-1)+3f(n-3)+2n+an+b\
          &=g(n-1)-a(n-1)-b+3g(n-3)-3a(n-3)-3b+2n+an+b\
          &=g(n-1)+3g(n-3)+(2-3a)n+(10a-3b)end{align}$$

          and this looks particularly nice if you pick $a,b$ such that $2-3a=10a-3b=0$.






          share|cite|improve this answer









          $endgroup$
















            1












            1








            1





            $begingroup$

            Let $v_n$ be the vector
            $$ v_n=begin{pmatrix}1\n\f(n)\f(n-1)\f(n-2)end{pmatrix}.$$
            Then apparently we can compute $v_n$ from $v_{n-1}$
            by a matrix multiplication:
            $$ begin{pmatrix}1\n\f(n)\f(n-1)\f(n-2)end{pmatrix}=begin{pmatrix}
            1&0&0&0&0\
            1&1&0&0&0\
            0&2&1&0&3\
            0&0&1&0&0\
            0&0&0&1&0end{pmatrix}begin{pmatrix}1\n-1\f(n-1)\f(n-2)\f(n-3)end{pmatrix}.$$





            Nevertheless, you might be able to proceed faster if you consider $g(n):=f(n)+an+b$ for suitable constants $a,b$. We find the recurrence relation
            $$begin{align}g(n)&=f(n)+an+b\
            &=f(n-1)+3f(n-3)+2n+an+b\
            &=g(n-1)-a(n-1)-b+3g(n-3)-3a(n-3)-3b+2n+an+b\
            &=g(n-1)+3g(n-3)+(2-3a)n+(10a-3b)end{align}$$

            and this looks particularly nice if you pick $a,b$ such that $2-3a=10a-3b=0$.






            share|cite|improve this answer









            $endgroup$



            Let $v_n$ be the vector
            $$ v_n=begin{pmatrix}1\n\f(n)\f(n-1)\f(n-2)end{pmatrix}.$$
            Then apparently we can compute $v_n$ from $v_{n-1}$
            by a matrix multiplication:
            $$ begin{pmatrix}1\n\f(n)\f(n-1)\f(n-2)end{pmatrix}=begin{pmatrix}
            1&0&0&0&0\
            1&1&0&0&0\
            0&2&1&0&3\
            0&0&1&0&0\
            0&0&0&1&0end{pmatrix}begin{pmatrix}1\n-1\f(n-1)\f(n-2)\f(n-3)end{pmatrix}.$$





            Nevertheless, you might be able to proceed faster if you consider $g(n):=f(n)+an+b$ for suitable constants $a,b$. We find the recurrence relation
            $$begin{align}g(n)&=f(n)+an+b\
            &=f(n-1)+3f(n-3)+2n+an+b\
            &=g(n-1)-a(n-1)-b+3g(n-3)-3a(n-3)-3b+2n+an+b\
            &=g(n-1)+3g(n-3)+(2-3a)n+(10a-3b)end{align}$$

            and this looks particularly nice if you pick $a,b$ such that $2-3a=10a-3b=0$.







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Jan 20 at 10:31









            Hagen von EitzenHagen von Eitzen

            282k23272505




            282k23272505























                0












                $begingroup$

                Define $g(n):=f(n)+an+b$ for constants $a,,b$ we'll choose later so $g(n)=g(n-1)+3g(n-3)+(2-3a)n+10a-3b$ (you should double-check my arithmetic). With $a=2/3,,b=10a/3=20/9$ this simplifies to $g(n)=g(n-1)+g(n-3)$, which you already know how to solve. Then $f(n)=g(n)-an-b$.






                share|cite|improve this answer









                $endgroup$


















                  0












                  $begingroup$

                  Define $g(n):=f(n)+an+b$ for constants $a,,b$ we'll choose later so $g(n)=g(n-1)+3g(n-3)+(2-3a)n+10a-3b$ (you should double-check my arithmetic). With $a=2/3,,b=10a/3=20/9$ this simplifies to $g(n)=g(n-1)+g(n-3)$, which you already know how to solve. Then $f(n)=g(n)-an-b$.






                  share|cite|improve this answer









                  $endgroup$
















                    0












                    0








                    0





                    $begingroup$

                    Define $g(n):=f(n)+an+b$ for constants $a,,b$ we'll choose later so $g(n)=g(n-1)+3g(n-3)+(2-3a)n+10a-3b$ (you should double-check my arithmetic). With $a=2/3,,b=10a/3=20/9$ this simplifies to $g(n)=g(n-1)+g(n-3)$, which you already know how to solve. Then $f(n)=g(n)-an-b$.






                    share|cite|improve this answer









                    $endgroup$



                    Define $g(n):=f(n)+an+b$ for constants $a,,b$ we'll choose later so $g(n)=g(n-1)+3g(n-3)+(2-3a)n+10a-3b$ (you should double-check my arithmetic). With $a=2/3,,b=10a/3=20/9$ this simplifies to $g(n)=g(n-1)+g(n-3)$, which you already know how to solve. Then $f(n)=g(n)-an-b$.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Jan 20 at 10:29









                    J.G.J.G.

                    28.6k22845




                    28.6k22845























                        0












                        $begingroup$

                        Your problem looks to read
                        $$
                        left{ matrix{
                        f(1) = a hfill cr
                        f(2) = b hfill cr
                        f(3) = c hfill cr
                        f(n) = f(n - 1) + 3f(n - 3) + 2nquad left| {;4 le n} right. hfill cr} right.
                        $$

                        that is
                        $$
                        eqalign{
                        & f(n) - f(n - 1) - 3f(n - 3) = cr
                        & + 2nleft[ {4 le n} right] + aleft[ {1 = n} right] + bleft[ {2 = n} right] + cleft[ {3 = n} right] cr}
                        $$

                        where $[P]$ denotes the Iverson bracket
                        $$
                        left[ P right] = left{ {begin{array}{*{20}c}
                        1 & {P = TRUE} \
                        0 & {P = FALSE} \
                        end{array} } right.
                        $$



                        If you want to use the matrix notation, then
                        indicating with $bf E$ the shift matrix
                        $$
                        {bf E} = left( {matrix{
                        0 & 0 & 0 & 0 & cdots cr
                        1 & 0 & 0 & 0 & cdots cr
                        0 & 1 & 0 & 0 & cdots cr
                        0 & 0 & 1 & 0 & cdots cr
                        vdots & vdots & vdots & ddots & ddots cr
                        } } right)
                        $$

                        then the equation is
                        $$
                        left( {{bf I} - {bf E} - 3,{bf E}^{,{bf 3}} } right){bf f} = {bf v} = left( {a,b,c,8,10, cdots } right)^T
                        $$

                        which gives
                        $$
                        eqalign{
                        & {bf f} = {{bf I} over {{bf I} - {bf E} - 3,{bf E}^{,{bf 3}} }}{bf v} = cr
                        & = left( {sumlimits_{0, le ,n} {{bf E}^{,{bf n}} left( {{bf I}
                        + sqrt 3 ,{bf E}} right)^{,{bf n}} left( {{bf I} - sqrt 3 ,{bf E}} right)^{,{bf n}} } } right){bf v} = cr
                        & = quad cdots cr}
                        $$






                        share|cite|improve this answer









                        $endgroup$


















                          0












                          $begingroup$

                          Your problem looks to read
                          $$
                          left{ matrix{
                          f(1) = a hfill cr
                          f(2) = b hfill cr
                          f(3) = c hfill cr
                          f(n) = f(n - 1) + 3f(n - 3) + 2nquad left| {;4 le n} right. hfill cr} right.
                          $$

                          that is
                          $$
                          eqalign{
                          & f(n) - f(n - 1) - 3f(n - 3) = cr
                          & + 2nleft[ {4 le n} right] + aleft[ {1 = n} right] + bleft[ {2 = n} right] + cleft[ {3 = n} right] cr}
                          $$

                          where $[P]$ denotes the Iverson bracket
                          $$
                          left[ P right] = left{ {begin{array}{*{20}c}
                          1 & {P = TRUE} \
                          0 & {P = FALSE} \
                          end{array} } right.
                          $$



                          If you want to use the matrix notation, then
                          indicating with $bf E$ the shift matrix
                          $$
                          {bf E} = left( {matrix{
                          0 & 0 & 0 & 0 & cdots cr
                          1 & 0 & 0 & 0 & cdots cr
                          0 & 1 & 0 & 0 & cdots cr
                          0 & 0 & 1 & 0 & cdots cr
                          vdots & vdots & vdots & ddots & ddots cr
                          } } right)
                          $$

                          then the equation is
                          $$
                          left( {{bf I} - {bf E} - 3,{bf E}^{,{bf 3}} } right){bf f} = {bf v} = left( {a,b,c,8,10, cdots } right)^T
                          $$

                          which gives
                          $$
                          eqalign{
                          & {bf f} = {{bf I} over {{bf I} - {bf E} - 3,{bf E}^{,{bf 3}} }}{bf v} = cr
                          & = left( {sumlimits_{0, le ,n} {{bf E}^{,{bf n}} left( {{bf I}
                          + sqrt 3 ,{bf E}} right)^{,{bf n}} left( {{bf I} - sqrt 3 ,{bf E}} right)^{,{bf n}} } } right){bf v} = cr
                          & = quad cdots cr}
                          $$






                          share|cite|improve this answer









                          $endgroup$
















                            0












                            0








                            0





                            $begingroup$

                            Your problem looks to read
                            $$
                            left{ matrix{
                            f(1) = a hfill cr
                            f(2) = b hfill cr
                            f(3) = c hfill cr
                            f(n) = f(n - 1) + 3f(n - 3) + 2nquad left| {;4 le n} right. hfill cr} right.
                            $$

                            that is
                            $$
                            eqalign{
                            & f(n) - f(n - 1) - 3f(n - 3) = cr
                            & + 2nleft[ {4 le n} right] + aleft[ {1 = n} right] + bleft[ {2 = n} right] + cleft[ {3 = n} right] cr}
                            $$

                            where $[P]$ denotes the Iverson bracket
                            $$
                            left[ P right] = left{ {begin{array}{*{20}c}
                            1 & {P = TRUE} \
                            0 & {P = FALSE} \
                            end{array} } right.
                            $$



                            If you want to use the matrix notation, then
                            indicating with $bf E$ the shift matrix
                            $$
                            {bf E} = left( {matrix{
                            0 & 0 & 0 & 0 & cdots cr
                            1 & 0 & 0 & 0 & cdots cr
                            0 & 1 & 0 & 0 & cdots cr
                            0 & 0 & 1 & 0 & cdots cr
                            vdots & vdots & vdots & ddots & ddots cr
                            } } right)
                            $$

                            then the equation is
                            $$
                            left( {{bf I} - {bf E} - 3,{bf E}^{,{bf 3}} } right){bf f} = {bf v} = left( {a,b,c,8,10, cdots } right)^T
                            $$

                            which gives
                            $$
                            eqalign{
                            & {bf f} = {{bf I} over {{bf I} - {bf E} - 3,{bf E}^{,{bf 3}} }}{bf v} = cr
                            & = left( {sumlimits_{0, le ,n} {{bf E}^{,{bf n}} left( {{bf I}
                            + sqrt 3 ,{bf E}} right)^{,{bf n}} left( {{bf I} - sqrt 3 ,{bf E}} right)^{,{bf n}} } } right){bf v} = cr
                            & = quad cdots cr}
                            $$






                            share|cite|improve this answer









                            $endgroup$



                            Your problem looks to read
                            $$
                            left{ matrix{
                            f(1) = a hfill cr
                            f(2) = b hfill cr
                            f(3) = c hfill cr
                            f(n) = f(n - 1) + 3f(n - 3) + 2nquad left| {;4 le n} right. hfill cr} right.
                            $$

                            that is
                            $$
                            eqalign{
                            & f(n) - f(n - 1) - 3f(n - 3) = cr
                            & + 2nleft[ {4 le n} right] + aleft[ {1 = n} right] + bleft[ {2 = n} right] + cleft[ {3 = n} right] cr}
                            $$

                            where $[P]$ denotes the Iverson bracket
                            $$
                            left[ P right] = left{ {begin{array}{*{20}c}
                            1 & {P = TRUE} \
                            0 & {P = FALSE} \
                            end{array} } right.
                            $$



                            If you want to use the matrix notation, then
                            indicating with $bf E$ the shift matrix
                            $$
                            {bf E} = left( {matrix{
                            0 & 0 & 0 & 0 & cdots cr
                            1 & 0 & 0 & 0 & cdots cr
                            0 & 1 & 0 & 0 & cdots cr
                            0 & 0 & 1 & 0 & cdots cr
                            vdots & vdots & vdots & ddots & ddots cr
                            } } right)
                            $$

                            then the equation is
                            $$
                            left( {{bf I} - {bf E} - 3,{bf E}^{,{bf 3}} } right){bf f} = {bf v} = left( {a,b,c,8,10, cdots } right)^T
                            $$

                            which gives
                            $$
                            eqalign{
                            & {bf f} = {{bf I} over {{bf I} - {bf E} - 3,{bf E}^{,{bf 3}} }}{bf v} = cr
                            & = left( {sumlimits_{0, le ,n} {{bf E}^{,{bf n}} left( {{bf I}
                            + sqrt 3 ,{bf E}} right)^{,{bf n}} left( {{bf I} - sqrt 3 ,{bf E}} right)^{,{bf n}} } } right){bf v} = cr
                            & = quad cdots cr}
                            $$







                            share|cite|improve this answer












                            share|cite|improve this answer



                            share|cite|improve this answer










                            answered Jan 20 at 11:52









                            G CabG Cab

                            19.8k31340




                            19.8k31340






























                                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%2f3080369%2fhow-can-i-solve-the-linear-recurrence-problem-fn-fn-13-cdot-fn-32n-us%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

                                How to fix TextFormField cause rebuild widget in Flutter

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