How to extract coefficients of a generating function like this one, using a computer?Finding all length-n words on an alphabet that have a specified number of each letterRandom filling of L-length line with l-length segmentsGenerating all “from n choose k” configurations of a simple listDefining Associated Stirling Numbers of the Second KindFind exponential generating function from the first few termsHow many equation systems can I build from five equations?How do I calculate the number of possible cases of polynomial equation (combinations) in Mathematica?Generating invertible matrix with lines within a given setCounting the permuted partitionsUsing FindInstance for Identifying Feasible Planar Solutions in a 3D Latin Hypercube

What does this Pokemon Trainer mean by saying the player is "SHELLOS"?

Finding an optimal set without forbidden subsets

"Best practices" for formulating MIPs

Which are more efficient in putting out wildfires: planes or helicopters?

How come having a Deathly Hallow is not a big deal?

Is there an idiomatic way to tell a Russian to talk quietly?

Simplify the code

How do I tell my girlfriend she's been buying me books by the wrong author for the last nine months?

Classify 2-dim p-adic galois representations

What's the idiomatic (or best) way to trim surrounding whitespace from a string?

Are all notation equal by derivatives?

latex equation missing { inserted on end split

How can I smooth the top side of this ring?

Can I hire several veteran soldiers to accompany me?

How can I change my buffer system for protein purification?

How can solar sailed ships be protected from space debris?

Why is the saxophone not common in classical repertoire?

Are there advantages in writing by hand over typing out a story?

Why can't i use !(single pattern) in zsh even after i turn on kshglob?

Was Wolfgang Unziker the last Amateur GM?

What is the meaning of ゴト in the context of 鮎

What verb goes with "coup"?

Why would Dementors torture a Death Eater if they are loyal to Voldemort?

Synthesis of an epoxide from 1,2-diol



How to extract coefficients of a generating function like this one, using a computer?


Finding all length-n words on an alphabet that have a specified number of each letterRandom filling of L-length line with l-length segmentsGenerating all “from n choose k” configurations of a simple listDefining Associated Stirling Numbers of the Second KindFind exponential generating function from the first few termsHow many equation systems can I build from five equations?How do I calculate the number of possible cases of polynomial equation (combinations) in Mathematica?Generating invertible matrix with lines within a given setCounting the permuted partitionsUsing FindInstance for Identifying Feasible Planar Solutions in a 3D Latin Hypercube













1












$begingroup$


For example if we have the generating function $G (x) = (1 + x + ... + x^k)^10$ and we want to calculate the coefficient of $x^3k$ as a function of $k $:
What is the best way to go about it using Mathematica?










share|improve this question







New contributor



oxynoia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$







  • 1




    $begingroup$
    Assuming[k [Element] Integers && k > 1, SeriesCoefficient[(-1 + x^(1 + k))^10/(-1 + x)^10, x, 0, 3 k] // FullSimplify].
    $endgroup$
    – AccidentalFourierTransform
    6 hours ago















1












$begingroup$


For example if we have the generating function $G (x) = (1 + x + ... + x^k)^10$ and we want to calculate the coefficient of $x^3k$ as a function of $k $:
What is the best way to go about it using Mathematica?










share|improve this question







New contributor



oxynoia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$







  • 1




    $begingroup$
    Assuming[k [Element] Integers && k > 1, SeriesCoefficient[(-1 + x^(1 + k))^10/(-1 + x)^10, x, 0, 3 k] // FullSimplify].
    $endgroup$
    – AccidentalFourierTransform
    6 hours ago













1












1








1


1



$begingroup$


For example if we have the generating function $G (x) = (1 + x + ... + x^k)^10$ and we want to calculate the coefficient of $x^3k$ as a function of $k $:
What is the best way to go about it using Mathematica?










share|improve this question







New contributor



oxynoia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$




For example if we have the generating function $G (x) = (1 + x + ... + x^k)^10$ and we want to calculate the coefficient of $x^3k$ as a function of $k $:
What is the best way to go about it using Mathematica?







combinatorics






share|improve this question







New contributor



oxynoia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question







New contributor



oxynoia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question






New contributor



oxynoia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 8 hours ago









oxynoia oxynoia

61 bronze badge




61 bronze badge




New contributor



oxynoia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




oxynoia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









  • 1




    $begingroup$
    Assuming[k [Element] Integers && k > 1, SeriesCoefficient[(-1 + x^(1 + k))^10/(-1 + x)^10, x, 0, 3 k] // FullSimplify].
    $endgroup$
    – AccidentalFourierTransform
    6 hours ago












  • 1




    $begingroup$
    Assuming[k [Element] Integers && k > 1, SeriesCoefficient[(-1 + x^(1 + k))^10/(-1 + x)^10, x, 0, 3 k] // FullSimplify].
    $endgroup$
    – AccidentalFourierTransform
    6 hours ago







1




1




$begingroup$
Assuming[k [Element] Integers && k > 1, SeriesCoefficient[(-1 + x^(1 + k))^10/(-1 + x)^10, x, 0, 3 k] // FullSimplify].
$endgroup$
– AccidentalFourierTransform
6 hours ago




$begingroup$
Assuming[k [Element] Integers && k > 1, SeriesCoefficient[(-1 + x^(1 + k))^10/(-1 + x)^10, x, 0, 3 k] // FullSimplify].
$endgroup$
– AccidentalFourierTransform
6 hours ago










2 Answers
2






active

oldest

votes


















4












$begingroup$

Clear["Global`*"]


The closed-form of the Sum is



G[x_, k_] = Sum[x^n, n, 0, k]^10

(* (-1 + x^(1 + k))^10/(-1 + x)^10 *)


The coefficient for the x^(3k) term of G[x, k] is



coef3k[k_] = 
FindSequenceFunction[
Table[SeriesCoefficient[G[x, k], x, 0, 3 k], k, 1, 15], k] //
FullSimplify

(* (1/90720)(1 + k) (2 + k) (3 + k) (15120 +
k (57552 + k (121438 + k (137565 + k (89110 + k (29163 + 3652 k)))))) *)


Verifying the result for k in the interval 0, 200



And @@ Table[
coef3k[k] == SeriesCoefficient[G[x, k], x, 0, 3 k],
k, 0, 200]

(* True *)





share|improve this answer









$endgroup$




















    2












    $begingroup$

    Define the function



    a[n_, k_] := SeriesCoefficient[ Sum[x^i, i, 0, k]^10, x, 0, n];


    and you want a[3 k, k]. By the way, this is a $9$th degree polynomial function as given by



    FindSequenceFunction[Table[a[3 k, k], k, 11]]





    share|improve this answer











    $endgroup$















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "387"
      ;
      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: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      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
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );






      oxynoia is a new contributor. Be nice, and check out our Code of Conduct.









      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f201271%2fhow-to-extract-coefficients-of-a-generating-function-like-this-one-using-a-comp%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









      4












      $begingroup$

      Clear["Global`*"]


      The closed-form of the Sum is



      G[x_, k_] = Sum[x^n, n, 0, k]^10

      (* (-1 + x^(1 + k))^10/(-1 + x)^10 *)


      The coefficient for the x^(3k) term of G[x, k] is



      coef3k[k_] = 
      FindSequenceFunction[
      Table[SeriesCoefficient[G[x, k], x, 0, 3 k], k, 1, 15], k] //
      FullSimplify

      (* (1/90720)(1 + k) (2 + k) (3 + k) (15120 +
      k (57552 + k (121438 + k (137565 + k (89110 + k (29163 + 3652 k)))))) *)


      Verifying the result for k in the interval 0, 200



      And @@ Table[
      coef3k[k] == SeriesCoefficient[G[x, k], x, 0, 3 k],
      k, 0, 200]

      (* True *)





      share|improve this answer









      $endgroup$

















        4












        $begingroup$

        Clear["Global`*"]


        The closed-form of the Sum is



        G[x_, k_] = Sum[x^n, n, 0, k]^10

        (* (-1 + x^(1 + k))^10/(-1 + x)^10 *)


        The coefficient for the x^(3k) term of G[x, k] is



        coef3k[k_] = 
        FindSequenceFunction[
        Table[SeriesCoefficient[G[x, k], x, 0, 3 k], k, 1, 15], k] //
        FullSimplify

        (* (1/90720)(1 + k) (2 + k) (3 + k) (15120 +
        k (57552 + k (121438 + k (137565 + k (89110 + k (29163 + 3652 k)))))) *)


        Verifying the result for k in the interval 0, 200



        And @@ Table[
        coef3k[k] == SeriesCoefficient[G[x, k], x, 0, 3 k],
        k, 0, 200]

        (* True *)





        share|improve this answer









        $endgroup$















          4












          4








          4





          $begingroup$

          Clear["Global`*"]


          The closed-form of the Sum is



          G[x_, k_] = Sum[x^n, n, 0, k]^10

          (* (-1 + x^(1 + k))^10/(-1 + x)^10 *)


          The coefficient for the x^(3k) term of G[x, k] is



          coef3k[k_] = 
          FindSequenceFunction[
          Table[SeriesCoefficient[G[x, k], x, 0, 3 k], k, 1, 15], k] //
          FullSimplify

          (* (1/90720)(1 + k) (2 + k) (3 + k) (15120 +
          k (57552 + k (121438 + k (137565 + k (89110 + k (29163 + 3652 k)))))) *)


          Verifying the result for k in the interval 0, 200



          And @@ Table[
          coef3k[k] == SeriesCoefficient[G[x, k], x, 0, 3 k],
          k, 0, 200]

          (* True *)





          share|improve this answer









          $endgroup$



          Clear["Global`*"]


          The closed-form of the Sum is



          G[x_, k_] = Sum[x^n, n, 0, k]^10

          (* (-1 + x^(1 + k))^10/(-1 + x)^10 *)


          The coefficient for the x^(3k) term of G[x, k] is



          coef3k[k_] = 
          FindSequenceFunction[
          Table[SeriesCoefficient[G[x, k], x, 0, 3 k], k, 1, 15], k] //
          FullSimplify

          (* (1/90720)(1 + k) (2 + k) (3 + k) (15120 +
          k (57552 + k (121438 + k (137565 + k (89110 + k (29163 + 3652 k)))))) *)


          Verifying the result for k in the interval 0, 200



          And @@ Table[
          coef3k[k] == SeriesCoefficient[G[x, k], x, 0, 3 k],
          k, 0, 200]

          (* True *)






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 7 hours ago









          Bob HanlonBob Hanlon

          63.3k3 gold badges36 silver badges99 bronze badges




          63.3k3 gold badges36 silver badges99 bronze badges





















              2












              $begingroup$

              Define the function



              a[n_, k_] := SeriesCoefficient[ Sum[x^i, i, 0, k]^10, x, 0, n];


              and you want a[3 k, k]. By the way, this is a $9$th degree polynomial function as given by



              FindSequenceFunction[Table[a[3 k, k], k, 11]]





              share|improve this answer











              $endgroup$

















                2












                $begingroup$

                Define the function



                a[n_, k_] := SeriesCoefficient[ Sum[x^i, i, 0, k]^10, x, 0, n];


                and you want a[3 k, k]. By the way, this is a $9$th degree polynomial function as given by



                FindSequenceFunction[Table[a[3 k, k], k, 11]]





                share|improve this answer











                $endgroup$















                  2












                  2








                  2





                  $begingroup$

                  Define the function



                  a[n_, k_] := SeriesCoefficient[ Sum[x^i, i, 0, k]^10, x, 0, n];


                  and you want a[3 k, k]. By the way, this is a $9$th degree polynomial function as given by



                  FindSequenceFunction[Table[a[3 k, k], k, 11]]





                  share|improve this answer











                  $endgroup$



                  Define the function



                  a[n_, k_] := SeriesCoefficient[ Sum[x^i, i, 0, k]^10, x, 0, n];


                  and you want a[3 k, k]. By the way, this is a $9$th degree polynomial function as given by



                  FindSequenceFunction[Table[a[3 k, k], k, 11]]






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 7 hours ago

























                  answered 7 hours ago









                  SomosSomos

                  2,7801 gold badge2 silver badges11 bronze badges




                  2,7801 gold badge2 silver badges11 bronze badges




















                      oxynoia is a new contributor. Be nice, and check out our Code of Conduct.









                      draft saved

                      draft discarded


















                      oxynoia is a new contributor. Be nice, and check out our Code of Conduct.












                      oxynoia is a new contributor. Be nice, and check out our Code of Conduct.











                      oxynoia is a new contributor. Be nice, and check out our Code of Conduct.














                      Thanks for contributing an answer to Mathematica 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%2fmathematica.stackexchange.com%2fquestions%2f201271%2fhow-to-extract-coefficients-of-a-generating-function-like-this-one-using-a-comp%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

                      Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                      Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                      François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480