power series for $frac1{x^2+x+1}$












1














So I am trying to find the sequence $(a_n)_{ngeq0}$ such that
$$frac1{x^2+x+1}=sum_{ngeq0}a_nx^n$$
My attempts:



I defined $$A(x)=frac1{x^2+x+1}$$
Hence $$A(x)=sum_{ngeq0}a_nx^n$$
And so $$(x^2+x+1)sum_{ngeq0}a_nx^n=1$$
$$sum_{ngeq0}a_nx^{n+2}+sum_{ngeq0}a_nx^{n+1}+sum_{ngeq0}a_nx^n=1$$
$$sum_{ngeq0}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
$$a_0(x^2+x+1)+sum_{ngeq1}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
$x=0$:
$$a_0=1$$
So
$$x^2+x+1+a_1(x^3+x^2+x)+sum_{ngeq2}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
$$frac{x^2+x+1+a_1(x^3+x^2+x)+sum_{ngeq2}a_n(x^{n+2}+x^{n+1}+x^n)}x=frac1x$$
$$x+1+a_1(x^2+x+1)+sum_{ngeq2}a_n(x^{n+1}+x^{n}+x^{n-1})=0$$
$x=0$:
$$a_1=-1$$
One more time:
$$x^2+x+1-x^3-x^2-x+a_2(x^4+x^3+x^2)+sum_{ngeq3}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
$$-x^3+a_2(x^4+x^3+x^2)+sum_{ngeq3}a_n(x^{n+2}+x^{n+1}+x^n)=0$$
Divide both sides by $x^2$:
$$-x+a_2(x^2+x+1)+sum_{ngeq3}a_n(x^{n}+x^{n-1}+x^{n-2})=0$$
$x=0$:
$$a_2=0$$
How do I find $a_n$? Am I doing things right so far? Thanks.










share|cite|improve this question



























    1














    So I am trying to find the sequence $(a_n)_{ngeq0}$ such that
    $$frac1{x^2+x+1}=sum_{ngeq0}a_nx^n$$
    My attempts:



    I defined $$A(x)=frac1{x^2+x+1}$$
    Hence $$A(x)=sum_{ngeq0}a_nx^n$$
    And so $$(x^2+x+1)sum_{ngeq0}a_nx^n=1$$
    $$sum_{ngeq0}a_nx^{n+2}+sum_{ngeq0}a_nx^{n+1}+sum_{ngeq0}a_nx^n=1$$
    $$sum_{ngeq0}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
    $$a_0(x^2+x+1)+sum_{ngeq1}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
    $x=0$:
    $$a_0=1$$
    So
    $$x^2+x+1+a_1(x^3+x^2+x)+sum_{ngeq2}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
    $$frac{x^2+x+1+a_1(x^3+x^2+x)+sum_{ngeq2}a_n(x^{n+2}+x^{n+1}+x^n)}x=frac1x$$
    $$x+1+a_1(x^2+x+1)+sum_{ngeq2}a_n(x^{n+1}+x^{n}+x^{n-1})=0$$
    $x=0$:
    $$a_1=-1$$
    One more time:
    $$x^2+x+1-x^3-x^2-x+a_2(x^4+x^3+x^2)+sum_{ngeq3}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
    $$-x^3+a_2(x^4+x^3+x^2)+sum_{ngeq3}a_n(x^{n+2}+x^{n+1}+x^n)=0$$
    Divide both sides by $x^2$:
    $$-x+a_2(x^2+x+1)+sum_{ngeq3}a_n(x^{n}+x^{n-1}+x^{n-2})=0$$
    $x=0$:
    $$a_2=0$$
    How do I find $a_n$? Am I doing things right so far? Thanks.










    share|cite|improve this question

























      1












      1








      1







      So I am trying to find the sequence $(a_n)_{ngeq0}$ such that
      $$frac1{x^2+x+1}=sum_{ngeq0}a_nx^n$$
      My attempts:



      I defined $$A(x)=frac1{x^2+x+1}$$
      Hence $$A(x)=sum_{ngeq0}a_nx^n$$
      And so $$(x^2+x+1)sum_{ngeq0}a_nx^n=1$$
      $$sum_{ngeq0}a_nx^{n+2}+sum_{ngeq0}a_nx^{n+1}+sum_{ngeq0}a_nx^n=1$$
      $$sum_{ngeq0}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
      $$a_0(x^2+x+1)+sum_{ngeq1}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
      $x=0$:
      $$a_0=1$$
      So
      $$x^2+x+1+a_1(x^3+x^2+x)+sum_{ngeq2}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
      $$frac{x^2+x+1+a_1(x^3+x^2+x)+sum_{ngeq2}a_n(x^{n+2}+x^{n+1}+x^n)}x=frac1x$$
      $$x+1+a_1(x^2+x+1)+sum_{ngeq2}a_n(x^{n+1}+x^{n}+x^{n-1})=0$$
      $x=0$:
      $$a_1=-1$$
      One more time:
      $$x^2+x+1-x^3-x^2-x+a_2(x^4+x^3+x^2)+sum_{ngeq3}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
      $$-x^3+a_2(x^4+x^3+x^2)+sum_{ngeq3}a_n(x^{n+2}+x^{n+1}+x^n)=0$$
      Divide both sides by $x^2$:
      $$-x+a_2(x^2+x+1)+sum_{ngeq3}a_n(x^{n}+x^{n-1}+x^{n-2})=0$$
      $x=0$:
      $$a_2=0$$
      How do I find $a_n$? Am I doing things right so far? Thanks.










      share|cite|improve this question













      So I am trying to find the sequence $(a_n)_{ngeq0}$ such that
      $$frac1{x^2+x+1}=sum_{ngeq0}a_nx^n$$
      My attempts:



      I defined $$A(x)=frac1{x^2+x+1}$$
      Hence $$A(x)=sum_{ngeq0}a_nx^n$$
      And so $$(x^2+x+1)sum_{ngeq0}a_nx^n=1$$
      $$sum_{ngeq0}a_nx^{n+2}+sum_{ngeq0}a_nx^{n+1}+sum_{ngeq0}a_nx^n=1$$
      $$sum_{ngeq0}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
      $$a_0(x^2+x+1)+sum_{ngeq1}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
      $x=0$:
      $$a_0=1$$
      So
      $$x^2+x+1+a_1(x^3+x^2+x)+sum_{ngeq2}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
      $$frac{x^2+x+1+a_1(x^3+x^2+x)+sum_{ngeq2}a_n(x^{n+2}+x^{n+1}+x^n)}x=frac1x$$
      $$x+1+a_1(x^2+x+1)+sum_{ngeq2}a_n(x^{n+1}+x^{n}+x^{n-1})=0$$
      $x=0$:
      $$a_1=-1$$
      One more time:
      $$x^2+x+1-x^3-x^2-x+a_2(x^4+x^3+x^2)+sum_{ngeq3}a_n(x^{n+2}+x^{n+1}+x^n)=1$$
      $$-x^3+a_2(x^4+x^3+x^2)+sum_{ngeq3}a_n(x^{n+2}+x^{n+1}+x^n)=0$$
      Divide both sides by $x^2$:
      $$-x+a_2(x^2+x+1)+sum_{ngeq3}a_n(x^{n}+x^{n-1}+x^{n-2})=0$$
      $x=0$:
      $$a_2=0$$
      How do I find $a_n$? Am I doing things right so far? Thanks.







      sequences-and-series power-series






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 27 '18 at 4:24









      clathratus

      3,213331




      3,213331






















          3 Answers
          3






          active

          oldest

          votes


















          1














          You could have continue your way.



          Starting from
          $$sum_{n=0}^infty a_nx^{n+2}+sum_{n=0}^infty a_nx^{n+1}+sum_{n=0}^infty a_nx^n=1$$ you already found $a_0=1$ and $a_1=-1$.



          Now, consider a given degree $m >1$. You then have the recurrence relation
          $$a_{m-2}+a_{m-1}+a_m=0$$ and the roots of the characteristic equation
          $$r^2+r+1=0 implies r_pm=frac{-1 pm i sqrt 3} 2$$ making by the end (I let to you the intermediate steps)
          $$a_m=cos left(frac{2 pi m}{3}right)-frac{1}{sqrt{3}}sin left(frac{2 pi
          m}{3}right)$$
          making $a_{3m}=1$, $a_{3m-1}=0$, $a_{3m+1}=-1$.






          share|cite|improve this answer





















          • How do we know that we have that recurrence relation?
            – clathratus
            Dec 27 '18 at 8:25






          • 1




            @clathratus. Look which terms you need for a given degree $m$. This is what I did.
            – Claude Leibovici
            Dec 27 '18 at 8:50



















          7














          begin{align}
          frac1{1+x+x^2} &= frac{1-x}{1-x^3} \
          &= frac1{1-x^3}-xleft(frac1{1-x^3} right)\
          &= sum_{i=0}^infty x^{3i}-xsum_{i=0}^infty x^{3i}\
          &=sum_{i=0}^infty x^{3i}-sum_{i=0}^infty x^{3i+1}\
          end{align}






          share|cite|improve this answer

















          • 1




            This is the one that should be marked as accepted answer.
            – Szeto
            Dec 27 '18 at 9:19





















          3














          Another way of doing this is to let the roots of $1+x+x^2=0$ be $a$ and $b$ so that $1+x+x^2=(1-ax)(1-bx)$ with $ab=1$ and $a+b=-1$. Then use partial fractions $$frac 1{1+x+x^2}=frac A{1-ax}+frac B{1-bx}$$ where clearing fractions gives $$1=A(1-bx)+B(1-ax)$$



          Set $a=frac 1b$ to obtain $1=B(1-frac ab)$ so that $B=frac b{b-a}$ and similarly $A=frac a{a-b}$ so that $$frac 1{1+x+x^2}=sum_{n=0}^inftyfrac a{a-b}a^nx^n-sum_{n=0}^infty frac b{a-b}b^bx^n=sum_{n=0}^inftyfrac {a^{n+1}-b^{n+1}}{a-b}x^n$$



          Now observe $a^2=-1-a=b$ and $a^3=ab=1$ and similarly $b^2=-1-b=a$ and $b^3=1$. For $n=3m$ the coefficient is $frac {a-b}{a-b}=1$, for $n=3m+1$ the coefficient is $frac {b-a}{a-b}=-1$ and for $n=3m+2$ the coefficient is $0$.



          We can also identify $a=omega$ and $b=omega^2$ as being primitive cube roots of $1$. Note how the coefficients are periodic with period $3$. These facts are related, as another answer shows.





          Note: I have tried to express this in such a way as to show how partial fractions can be used more generally - even where a convenient short cut is not available - it doesn't matter that you get complex roots, the answer ends up with real coefficients. The only slight trick is that we would normally factorise $$x^2+px+q=(x-c)(x-d)$$ but, setting $a=frac 1c, b= frac 1d$ we need the form $$x^2+px+q=cd(1- ax)(1-bx)=q(1-ax)(1-bx)$$In the case above we had $q=1$, but in general the factor must not be forgotten.






          share|cite|improve this answer





















            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%2f3053587%2fpower-series-for-frac1x2x1%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














            You could have continue your way.



            Starting from
            $$sum_{n=0}^infty a_nx^{n+2}+sum_{n=0}^infty a_nx^{n+1}+sum_{n=0}^infty a_nx^n=1$$ you already found $a_0=1$ and $a_1=-1$.



            Now, consider a given degree $m >1$. You then have the recurrence relation
            $$a_{m-2}+a_{m-1}+a_m=0$$ and the roots of the characteristic equation
            $$r^2+r+1=0 implies r_pm=frac{-1 pm i sqrt 3} 2$$ making by the end (I let to you the intermediate steps)
            $$a_m=cos left(frac{2 pi m}{3}right)-frac{1}{sqrt{3}}sin left(frac{2 pi
            m}{3}right)$$
            making $a_{3m}=1$, $a_{3m-1}=0$, $a_{3m+1}=-1$.






            share|cite|improve this answer





















            • How do we know that we have that recurrence relation?
              – clathratus
              Dec 27 '18 at 8:25






            • 1




              @clathratus. Look which terms you need for a given degree $m$. This is what I did.
              – Claude Leibovici
              Dec 27 '18 at 8:50
















            1














            You could have continue your way.



            Starting from
            $$sum_{n=0}^infty a_nx^{n+2}+sum_{n=0}^infty a_nx^{n+1}+sum_{n=0}^infty a_nx^n=1$$ you already found $a_0=1$ and $a_1=-1$.



            Now, consider a given degree $m >1$. You then have the recurrence relation
            $$a_{m-2}+a_{m-1}+a_m=0$$ and the roots of the characteristic equation
            $$r^2+r+1=0 implies r_pm=frac{-1 pm i sqrt 3} 2$$ making by the end (I let to you the intermediate steps)
            $$a_m=cos left(frac{2 pi m}{3}right)-frac{1}{sqrt{3}}sin left(frac{2 pi
            m}{3}right)$$
            making $a_{3m}=1$, $a_{3m-1}=0$, $a_{3m+1}=-1$.






            share|cite|improve this answer





















            • How do we know that we have that recurrence relation?
              – clathratus
              Dec 27 '18 at 8:25






            • 1




              @clathratus. Look which terms you need for a given degree $m$. This is what I did.
              – Claude Leibovici
              Dec 27 '18 at 8:50














            1












            1








            1






            You could have continue your way.



            Starting from
            $$sum_{n=0}^infty a_nx^{n+2}+sum_{n=0}^infty a_nx^{n+1}+sum_{n=0}^infty a_nx^n=1$$ you already found $a_0=1$ and $a_1=-1$.



            Now, consider a given degree $m >1$. You then have the recurrence relation
            $$a_{m-2}+a_{m-1}+a_m=0$$ and the roots of the characteristic equation
            $$r^2+r+1=0 implies r_pm=frac{-1 pm i sqrt 3} 2$$ making by the end (I let to you the intermediate steps)
            $$a_m=cos left(frac{2 pi m}{3}right)-frac{1}{sqrt{3}}sin left(frac{2 pi
            m}{3}right)$$
            making $a_{3m}=1$, $a_{3m-1}=0$, $a_{3m+1}=-1$.






            share|cite|improve this answer












            You could have continue your way.



            Starting from
            $$sum_{n=0}^infty a_nx^{n+2}+sum_{n=0}^infty a_nx^{n+1}+sum_{n=0}^infty a_nx^n=1$$ you already found $a_0=1$ and $a_1=-1$.



            Now, consider a given degree $m >1$. You then have the recurrence relation
            $$a_{m-2}+a_{m-1}+a_m=0$$ and the roots of the characteristic equation
            $$r^2+r+1=0 implies r_pm=frac{-1 pm i sqrt 3} 2$$ making by the end (I let to you the intermediate steps)
            $$a_m=cos left(frac{2 pi m}{3}right)-frac{1}{sqrt{3}}sin left(frac{2 pi
            m}{3}right)$$
            making $a_{3m}=1$, $a_{3m-1}=0$, $a_{3m+1}=-1$.







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Dec 27 '18 at 7:09









            Claude Leibovici

            119k1157132




            119k1157132












            • How do we know that we have that recurrence relation?
              – clathratus
              Dec 27 '18 at 8:25






            • 1




              @clathratus. Look which terms you need for a given degree $m$. This is what I did.
              – Claude Leibovici
              Dec 27 '18 at 8:50


















            • How do we know that we have that recurrence relation?
              – clathratus
              Dec 27 '18 at 8:25






            • 1




              @clathratus. Look which terms you need for a given degree $m$. This is what I did.
              – Claude Leibovici
              Dec 27 '18 at 8:50
















            How do we know that we have that recurrence relation?
            – clathratus
            Dec 27 '18 at 8:25




            How do we know that we have that recurrence relation?
            – clathratus
            Dec 27 '18 at 8:25




            1




            1




            @clathratus. Look which terms you need for a given degree $m$. This is what I did.
            – Claude Leibovici
            Dec 27 '18 at 8:50




            @clathratus. Look which terms you need for a given degree $m$. This is what I did.
            – Claude Leibovici
            Dec 27 '18 at 8:50











            7














            begin{align}
            frac1{1+x+x^2} &= frac{1-x}{1-x^3} \
            &= frac1{1-x^3}-xleft(frac1{1-x^3} right)\
            &= sum_{i=0}^infty x^{3i}-xsum_{i=0}^infty x^{3i}\
            &=sum_{i=0}^infty x^{3i}-sum_{i=0}^infty x^{3i+1}\
            end{align}






            share|cite|improve this answer

















            • 1




              This is the one that should be marked as accepted answer.
              – Szeto
              Dec 27 '18 at 9:19


















            7














            begin{align}
            frac1{1+x+x^2} &= frac{1-x}{1-x^3} \
            &= frac1{1-x^3}-xleft(frac1{1-x^3} right)\
            &= sum_{i=0}^infty x^{3i}-xsum_{i=0}^infty x^{3i}\
            &=sum_{i=0}^infty x^{3i}-sum_{i=0}^infty x^{3i+1}\
            end{align}






            share|cite|improve this answer

















            • 1




              This is the one that should be marked as accepted answer.
              – Szeto
              Dec 27 '18 at 9:19
















            7












            7








            7






            begin{align}
            frac1{1+x+x^2} &= frac{1-x}{1-x^3} \
            &= frac1{1-x^3}-xleft(frac1{1-x^3} right)\
            &= sum_{i=0}^infty x^{3i}-xsum_{i=0}^infty x^{3i}\
            &=sum_{i=0}^infty x^{3i}-sum_{i=0}^infty x^{3i+1}\
            end{align}






            share|cite|improve this answer












            begin{align}
            frac1{1+x+x^2} &= frac{1-x}{1-x^3} \
            &= frac1{1-x^3}-xleft(frac1{1-x^3} right)\
            &= sum_{i=0}^infty x^{3i}-xsum_{i=0}^infty x^{3i}\
            &=sum_{i=0}^infty x^{3i}-sum_{i=0}^infty x^{3i+1}\
            end{align}







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Dec 27 '18 at 4:32









            Siong Thye Goh

            99.4k1464117




            99.4k1464117








            • 1




              This is the one that should be marked as accepted answer.
              – Szeto
              Dec 27 '18 at 9:19
















            • 1




              This is the one that should be marked as accepted answer.
              – Szeto
              Dec 27 '18 at 9:19










            1




            1




            This is the one that should be marked as accepted answer.
            – Szeto
            Dec 27 '18 at 9:19






            This is the one that should be marked as accepted answer.
            – Szeto
            Dec 27 '18 at 9:19













            3














            Another way of doing this is to let the roots of $1+x+x^2=0$ be $a$ and $b$ so that $1+x+x^2=(1-ax)(1-bx)$ with $ab=1$ and $a+b=-1$. Then use partial fractions $$frac 1{1+x+x^2}=frac A{1-ax}+frac B{1-bx}$$ where clearing fractions gives $$1=A(1-bx)+B(1-ax)$$



            Set $a=frac 1b$ to obtain $1=B(1-frac ab)$ so that $B=frac b{b-a}$ and similarly $A=frac a{a-b}$ so that $$frac 1{1+x+x^2}=sum_{n=0}^inftyfrac a{a-b}a^nx^n-sum_{n=0}^infty frac b{a-b}b^bx^n=sum_{n=0}^inftyfrac {a^{n+1}-b^{n+1}}{a-b}x^n$$



            Now observe $a^2=-1-a=b$ and $a^3=ab=1$ and similarly $b^2=-1-b=a$ and $b^3=1$. For $n=3m$ the coefficient is $frac {a-b}{a-b}=1$, for $n=3m+1$ the coefficient is $frac {b-a}{a-b}=-1$ and for $n=3m+2$ the coefficient is $0$.



            We can also identify $a=omega$ and $b=omega^2$ as being primitive cube roots of $1$. Note how the coefficients are periodic with period $3$. These facts are related, as another answer shows.





            Note: I have tried to express this in such a way as to show how partial fractions can be used more generally - even where a convenient short cut is not available - it doesn't matter that you get complex roots, the answer ends up with real coefficients. The only slight trick is that we would normally factorise $$x^2+px+q=(x-c)(x-d)$$ but, setting $a=frac 1c, b= frac 1d$ we need the form $$x^2+px+q=cd(1- ax)(1-bx)=q(1-ax)(1-bx)$$In the case above we had $q=1$, but in general the factor must not be forgotten.






            share|cite|improve this answer


























              3














              Another way of doing this is to let the roots of $1+x+x^2=0$ be $a$ and $b$ so that $1+x+x^2=(1-ax)(1-bx)$ with $ab=1$ and $a+b=-1$. Then use partial fractions $$frac 1{1+x+x^2}=frac A{1-ax}+frac B{1-bx}$$ where clearing fractions gives $$1=A(1-bx)+B(1-ax)$$



              Set $a=frac 1b$ to obtain $1=B(1-frac ab)$ so that $B=frac b{b-a}$ and similarly $A=frac a{a-b}$ so that $$frac 1{1+x+x^2}=sum_{n=0}^inftyfrac a{a-b}a^nx^n-sum_{n=0}^infty frac b{a-b}b^bx^n=sum_{n=0}^inftyfrac {a^{n+1}-b^{n+1}}{a-b}x^n$$



              Now observe $a^2=-1-a=b$ and $a^3=ab=1$ and similarly $b^2=-1-b=a$ and $b^3=1$. For $n=3m$ the coefficient is $frac {a-b}{a-b}=1$, for $n=3m+1$ the coefficient is $frac {b-a}{a-b}=-1$ and for $n=3m+2$ the coefficient is $0$.



              We can also identify $a=omega$ and $b=omega^2$ as being primitive cube roots of $1$. Note how the coefficients are periodic with period $3$. These facts are related, as another answer shows.





              Note: I have tried to express this in such a way as to show how partial fractions can be used more generally - even where a convenient short cut is not available - it doesn't matter that you get complex roots, the answer ends up with real coefficients. The only slight trick is that we would normally factorise $$x^2+px+q=(x-c)(x-d)$$ but, setting $a=frac 1c, b= frac 1d$ we need the form $$x^2+px+q=cd(1- ax)(1-bx)=q(1-ax)(1-bx)$$In the case above we had $q=1$, but in general the factor must not be forgotten.






              share|cite|improve this answer
























                3












                3








                3






                Another way of doing this is to let the roots of $1+x+x^2=0$ be $a$ and $b$ so that $1+x+x^2=(1-ax)(1-bx)$ with $ab=1$ and $a+b=-1$. Then use partial fractions $$frac 1{1+x+x^2}=frac A{1-ax}+frac B{1-bx}$$ where clearing fractions gives $$1=A(1-bx)+B(1-ax)$$



                Set $a=frac 1b$ to obtain $1=B(1-frac ab)$ so that $B=frac b{b-a}$ and similarly $A=frac a{a-b}$ so that $$frac 1{1+x+x^2}=sum_{n=0}^inftyfrac a{a-b}a^nx^n-sum_{n=0}^infty frac b{a-b}b^bx^n=sum_{n=0}^inftyfrac {a^{n+1}-b^{n+1}}{a-b}x^n$$



                Now observe $a^2=-1-a=b$ and $a^3=ab=1$ and similarly $b^2=-1-b=a$ and $b^3=1$. For $n=3m$ the coefficient is $frac {a-b}{a-b}=1$, for $n=3m+1$ the coefficient is $frac {b-a}{a-b}=-1$ and for $n=3m+2$ the coefficient is $0$.



                We can also identify $a=omega$ and $b=omega^2$ as being primitive cube roots of $1$. Note how the coefficients are periodic with period $3$. These facts are related, as another answer shows.





                Note: I have tried to express this in such a way as to show how partial fractions can be used more generally - even where a convenient short cut is not available - it doesn't matter that you get complex roots, the answer ends up with real coefficients. The only slight trick is that we would normally factorise $$x^2+px+q=(x-c)(x-d)$$ but, setting $a=frac 1c, b= frac 1d$ we need the form $$x^2+px+q=cd(1- ax)(1-bx)=q(1-ax)(1-bx)$$In the case above we had $q=1$, but in general the factor must not be forgotten.






                share|cite|improve this answer












                Another way of doing this is to let the roots of $1+x+x^2=0$ be $a$ and $b$ so that $1+x+x^2=(1-ax)(1-bx)$ with $ab=1$ and $a+b=-1$. Then use partial fractions $$frac 1{1+x+x^2}=frac A{1-ax}+frac B{1-bx}$$ where clearing fractions gives $$1=A(1-bx)+B(1-ax)$$



                Set $a=frac 1b$ to obtain $1=B(1-frac ab)$ so that $B=frac b{b-a}$ and similarly $A=frac a{a-b}$ so that $$frac 1{1+x+x^2}=sum_{n=0}^inftyfrac a{a-b}a^nx^n-sum_{n=0}^infty frac b{a-b}b^bx^n=sum_{n=0}^inftyfrac {a^{n+1}-b^{n+1}}{a-b}x^n$$



                Now observe $a^2=-1-a=b$ and $a^3=ab=1$ and similarly $b^2=-1-b=a$ and $b^3=1$. For $n=3m$ the coefficient is $frac {a-b}{a-b}=1$, for $n=3m+1$ the coefficient is $frac {b-a}{a-b}=-1$ and for $n=3m+2$ the coefficient is $0$.



                We can also identify $a=omega$ and $b=omega^2$ as being primitive cube roots of $1$. Note how the coefficients are periodic with period $3$. These facts are related, as another answer shows.





                Note: I have tried to express this in such a way as to show how partial fractions can be used more generally - even where a convenient short cut is not available - it doesn't matter that you get complex roots, the answer ends up with real coefficients. The only slight trick is that we would normally factorise $$x^2+px+q=(x-c)(x-d)$$ but, setting $a=frac 1c, b= frac 1d$ we need the form $$x^2+px+q=cd(1- ax)(1-bx)=q(1-ax)(1-bx)$$In the case above we had $q=1$, but in general the factor must not be forgotten.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Dec 27 '18 at 5:15









                Mark Bennet

                80.6k981179




                80.6k981179






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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.


                    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%2f3053587%2fpower-series-for-frac1x2x1%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

                    Human spaceflight

                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                    張江高科駅