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
$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?
combinatorics
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$
add a comment |
$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?
combinatorics
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
add a comment |
$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?
combinatorics
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
combinatorics
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.
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
$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 *)
$endgroup$
add a comment |
$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]]
$endgroup$
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
$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 *)
$endgroup$
add a comment |
$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 *)
$endgroup$
add a comment |
$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 *)
$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 *)
answered 7 hours ago
Bob HanlonBob Hanlon
63.3k3 gold badges36 silver badges99 bronze badges
63.3k3 gold badges36 silver badges99 bronze badges
add a comment |
add a comment |
$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]]
$endgroup$
add a comment |
$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]]
$endgroup$
add a comment |
$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]]
$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]]
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
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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