Solution of a Combinatorics problem using Generating function Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Making Change for a Dollar (and other number partitioning problems)Generating functions of billsWhat is the time complexity of determining coefficients of generating functions?Combinatorics-Generating functionCounting problem: generating function using partitions of odd numbers and permuting themNo Adjacency Combinatorics Problem via Generating FunctionGenerating function for counting problem.Exponential generating function problemHow To Find the Generating Function of the Following ProblemGenerating function in combinatorics: combining ordinary and exponential generating functionsGenerating function to find the sum of digitsGenerating function for a combinatorics problem

Test print coming out spongy

The Nth Gryphon Number

Does the Black Tentacles spell do damage twice at the start of turn to an already restrained creature?

Why do early math courses focus on the cross sections of a cone and not on other 3D objects?

What does it mean that physics no longer uses mechanical models to describe phenomena?

RSA find public exponent

A term for a woman complaining about things/begging in a cute/childish way

Why complex landing gears are used instead of simple,reliability and light weight muscle wire or shape memory alloys?

What initially awakened the Balrog?

Getting out of while loop on console

In musical terms, what properties are varied by the human voice to produce different words / syllables?

How many time has Arya actually used Needle?

Is it dangerous to install hacking tools on my private linux machine?

How do living politicians protect their readily obtainable signatures from misuse?

What does 丫 mean? 丫是什么意思?

What is the difference between a "ranged attack" and a "ranged weapon attack"?

Why not send Voyager 3 and 4 following up the paths taken by Voyager 1 and 2 to re-transmit signals of later as they fly away from Earth?

Putting class ranking in CV, but against dept guidelines

How can I save and copy a screenhot at the same time?

Mounting TV on a weird wall that has some material between the drywall and stud

Is there public access to the Meteor Crater in Arizona?

Is multiple magic items in one inherently imbalanced?

How to ternary Plot3D a function

What order were files/directories output in dir?



Solution of a Combinatorics problem using Generating function



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Making Change for a Dollar (and other number partitioning problems)Generating functions of billsWhat is the time complexity of determining coefficients of generating functions?Combinatorics-Generating functionCounting problem: generating function using partitions of odd numbers and permuting themNo Adjacency Combinatorics Problem via Generating FunctionGenerating function for counting problem.Exponential generating function problemHow To Find the Generating Function of the Following ProblemGenerating function in combinatorics: combining ordinary and exponential generating functionsGenerating function to find the sum of digitsGenerating function for a combinatorics problem










1












$begingroup$


Q) There are $4$ types of coins 1 paisa, 5 paise, 10 paise, 25 paise. Using these coins we have to make 50 paisa, how many combinations can we make ?



I want to know whether this problem can be solved using generating function or not. Is the problem same as finding coefficient of $x^50$ in $[(x^0 + x^1 + x^2 + x^3 + x^4 + x^5 + ....)(x^0 + x^5 + x^10 + x^15 + x^20 + ...)(x^0 + x^10 + x^20 + .. )(x^0 + x^25 + x^50 +....)]$

Please help.










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    That is the correct approach.
    $endgroup$
    – N. F. Taussig
    Apr 2 at 8:13






  • 1




    $begingroup$
    See math.stackexchange.com/questions/1342846/… or math.stackexchange.com/questions/15521/… or any of several other similar questions.
    $endgroup$
    – Gerry Myerson
    Apr 2 at 8:19















1












$begingroup$


Q) There are $4$ types of coins 1 paisa, 5 paise, 10 paise, 25 paise. Using these coins we have to make 50 paisa, how many combinations can we make ?



I want to know whether this problem can be solved using generating function or not. Is the problem same as finding coefficient of $x^50$ in $[(x^0 + x^1 + x^2 + x^3 + x^4 + x^5 + ....)(x^0 + x^5 + x^10 + x^15 + x^20 + ...)(x^0 + x^10 + x^20 + .. )(x^0 + x^25 + x^50 +....)]$

Please help.










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    That is the correct approach.
    $endgroup$
    – N. F. Taussig
    Apr 2 at 8:13






  • 1




    $begingroup$
    See math.stackexchange.com/questions/1342846/… or math.stackexchange.com/questions/15521/… or any of several other similar questions.
    $endgroup$
    – Gerry Myerson
    Apr 2 at 8:19













1












1








1


1



$begingroup$


Q) There are $4$ types of coins 1 paisa, 5 paise, 10 paise, 25 paise. Using these coins we have to make 50 paisa, how many combinations can we make ?



I want to know whether this problem can be solved using generating function or not. Is the problem same as finding coefficient of $x^50$ in $[(x^0 + x^1 + x^2 + x^3 + x^4 + x^5 + ....)(x^0 + x^5 + x^10 + x^15 + x^20 + ...)(x^0 + x^10 + x^20 + .. )(x^0 + x^25 + x^50 +....)]$

Please help.










share|cite|improve this question











$endgroup$




Q) There are $4$ types of coins 1 paisa, 5 paise, 10 paise, 25 paise. Using these coins we have to make 50 paisa, how many combinations can we make ?



I want to know whether this problem can be solved using generating function or not. Is the problem same as finding coefficient of $x^50$ in $[(x^0 + x^1 + x^2 + x^3 + x^4 + x^5 + ....)(x^0 + x^5 + x^10 + x^15 + x^20 + ...)(x^0 + x^10 + x^20 + .. )(x^0 + x^25 + x^50 +....)]$

Please help.







combinatorics discrete-mathematics generating-functions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Apr 2 at 9:13







ankit

















asked Apr 2 at 8:09









ankitankit

1077




1077







  • 1




    $begingroup$
    That is the correct approach.
    $endgroup$
    – N. F. Taussig
    Apr 2 at 8:13






  • 1




    $begingroup$
    See math.stackexchange.com/questions/1342846/… or math.stackexchange.com/questions/15521/… or any of several other similar questions.
    $endgroup$
    – Gerry Myerson
    Apr 2 at 8:19












  • 1




    $begingroup$
    That is the correct approach.
    $endgroup$
    – N. F. Taussig
    Apr 2 at 8:13






  • 1




    $begingroup$
    See math.stackexchange.com/questions/1342846/… or math.stackexchange.com/questions/15521/… or any of several other similar questions.
    $endgroup$
    – Gerry Myerson
    Apr 2 at 8:19







1




1




$begingroup$
That is the correct approach.
$endgroup$
– N. F. Taussig
Apr 2 at 8:13




$begingroup$
That is the correct approach.
$endgroup$
– N. F. Taussig
Apr 2 at 8:13




1




1




$begingroup$
See math.stackexchange.com/questions/1342846/… or math.stackexchange.com/questions/15521/… or any of several other similar questions.
$endgroup$
– Gerry Myerson
Apr 2 at 8:19




$begingroup$
See math.stackexchange.com/questions/1342846/… or math.stackexchange.com/questions/15521/… or any of several other similar questions.
$endgroup$
– Gerry Myerson
Apr 2 at 8:19










1 Answer
1






active

oldest

votes


















2












$begingroup$

Your work is correct, though I feel like explaining why might help to dispel any potential doubts on the matter (and help future, confused readers).




The number of solutions to the problem given is effectively the number of solutions to



$$x_1 + 5x_5 + 10x_10 + 25x_25 = 50$$



where $x_k$ are non-negative integers for all $k$, with no restrictions. This is not unlike the standard situation with finding the number of non-negative integer solutions to an equation



$$x_1 + x_2 + x_3 + ... + x_n = r$$



but the weird thing here is that we have coefficients for various $x_k$! This can be fixed though! Let's make some substitutions:



  • $y_1 = x_1$

  • $y_5 = 5x_5$

  • $y_10 = 10x_10$

  • $y_25 = 25x_25$

Then we seek the number of solutions to the equation, in non-negative integers for $y_k$,



$$y_1 + y_5 + y_10 + y_25 = 50$$



The substitutions mean that we have restrictions other than $0 le y_k (le 50$ if you choose to do finite sums in the generating function). Namely, since $x_k$ are also integers, this means that $y_5 = 5x_5$ must be a multiple of five, $y_10 = 10x_10$ must be a multiple of $10$, and so on. This defines a set of restrictions for our new equation:



  • $0 le y_k (le 50)$


  • $y_1$ has no further restrictions


  • $y_5$ must be a multiple of five, i.e. $0,5,10,15,$ and so on, with a max of $50$ if you use finite sums


  • $y_10$ must be a multiple of ten, i.e. $0,10,20,...$, capping at $50$ if you opt for finite sums


  • $y_25$ must be a multiple of $25$, i.e. $0,25,50$, and higher if you want an infinite sum

With this reframing, we have now turned the original question into one about finding a generating function that corresponds to this situation, in which we find the number of non-negative solutions within the restrictions above.



Define your generating function in terms of polynomials, one per variable, where the exponents correspond to the allowed values for that variable. Your generating function is then the product of all the polynomials, and the number of solutions is the coefficient of $x^50$ in the resulting expansion.



You have done so in the OP correctly, luckily. :)






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Thank you @Eevee :)
    $endgroup$
    – ankit
    Apr 2 at 8:53











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3171606%2fsolution-of-a-combinatorics-problem-using-generating-function%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2












$begingroup$

Your work is correct, though I feel like explaining why might help to dispel any potential doubts on the matter (and help future, confused readers).




The number of solutions to the problem given is effectively the number of solutions to



$$x_1 + 5x_5 + 10x_10 + 25x_25 = 50$$



where $x_k$ are non-negative integers for all $k$, with no restrictions. This is not unlike the standard situation with finding the number of non-negative integer solutions to an equation



$$x_1 + x_2 + x_3 + ... + x_n = r$$



but the weird thing here is that we have coefficients for various $x_k$! This can be fixed though! Let's make some substitutions:



  • $y_1 = x_1$

  • $y_5 = 5x_5$

  • $y_10 = 10x_10$

  • $y_25 = 25x_25$

Then we seek the number of solutions to the equation, in non-negative integers for $y_k$,



$$y_1 + y_5 + y_10 + y_25 = 50$$



The substitutions mean that we have restrictions other than $0 le y_k (le 50$ if you choose to do finite sums in the generating function). Namely, since $x_k$ are also integers, this means that $y_5 = 5x_5$ must be a multiple of five, $y_10 = 10x_10$ must be a multiple of $10$, and so on. This defines a set of restrictions for our new equation:



  • $0 le y_k (le 50)$


  • $y_1$ has no further restrictions


  • $y_5$ must be a multiple of five, i.e. $0,5,10,15,$ and so on, with a max of $50$ if you use finite sums


  • $y_10$ must be a multiple of ten, i.e. $0,10,20,...$, capping at $50$ if you opt for finite sums


  • $y_25$ must be a multiple of $25$, i.e. $0,25,50$, and higher if you want an infinite sum

With this reframing, we have now turned the original question into one about finding a generating function that corresponds to this situation, in which we find the number of non-negative solutions within the restrictions above.



Define your generating function in terms of polynomials, one per variable, where the exponents correspond to the allowed values for that variable. Your generating function is then the product of all the polynomials, and the number of solutions is the coefficient of $x^50$ in the resulting expansion.



You have done so in the OP correctly, luckily. :)






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Thank you @Eevee :)
    $endgroup$
    – ankit
    Apr 2 at 8:53















2












$begingroup$

Your work is correct, though I feel like explaining why might help to dispel any potential doubts on the matter (and help future, confused readers).




The number of solutions to the problem given is effectively the number of solutions to



$$x_1 + 5x_5 + 10x_10 + 25x_25 = 50$$



where $x_k$ are non-negative integers for all $k$, with no restrictions. This is not unlike the standard situation with finding the number of non-negative integer solutions to an equation



$$x_1 + x_2 + x_3 + ... + x_n = r$$



but the weird thing here is that we have coefficients for various $x_k$! This can be fixed though! Let's make some substitutions:



  • $y_1 = x_1$

  • $y_5 = 5x_5$

  • $y_10 = 10x_10$

  • $y_25 = 25x_25$

Then we seek the number of solutions to the equation, in non-negative integers for $y_k$,



$$y_1 + y_5 + y_10 + y_25 = 50$$



The substitutions mean that we have restrictions other than $0 le y_k (le 50$ if you choose to do finite sums in the generating function). Namely, since $x_k$ are also integers, this means that $y_5 = 5x_5$ must be a multiple of five, $y_10 = 10x_10$ must be a multiple of $10$, and so on. This defines a set of restrictions for our new equation:



  • $0 le y_k (le 50)$


  • $y_1$ has no further restrictions


  • $y_5$ must be a multiple of five, i.e. $0,5,10,15,$ and so on, with a max of $50$ if you use finite sums


  • $y_10$ must be a multiple of ten, i.e. $0,10,20,...$, capping at $50$ if you opt for finite sums


  • $y_25$ must be a multiple of $25$, i.e. $0,25,50$, and higher if you want an infinite sum

With this reframing, we have now turned the original question into one about finding a generating function that corresponds to this situation, in which we find the number of non-negative solutions within the restrictions above.



Define your generating function in terms of polynomials, one per variable, where the exponents correspond to the allowed values for that variable. Your generating function is then the product of all the polynomials, and the number of solutions is the coefficient of $x^50$ in the resulting expansion.



You have done so in the OP correctly, luckily. :)






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Thank you @Eevee :)
    $endgroup$
    – ankit
    Apr 2 at 8:53













2












2








2





$begingroup$

Your work is correct, though I feel like explaining why might help to dispel any potential doubts on the matter (and help future, confused readers).




The number of solutions to the problem given is effectively the number of solutions to



$$x_1 + 5x_5 + 10x_10 + 25x_25 = 50$$



where $x_k$ are non-negative integers for all $k$, with no restrictions. This is not unlike the standard situation with finding the number of non-negative integer solutions to an equation



$$x_1 + x_2 + x_3 + ... + x_n = r$$



but the weird thing here is that we have coefficients for various $x_k$! This can be fixed though! Let's make some substitutions:



  • $y_1 = x_1$

  • $y_5 = 5x_5$

  • $y_10 = 10x_10$

  • $y_25 = 25x_25$

Then we seek the number of solutions to the equation, in non-negative integers for $y_k$,



$$y_1 + y_5 + y_10 + y_25 = 50$$



The substitutions mean that we have restrictions other than $0 le y_k (le 50$ if you choose to do finite sums in the generating function). Namely, since $x_k$ are also integers, this means that $y_5 = 5x_5$ must be a multiple of five, $y_10 = 10x_10$ must be a multiple of $10$, and so on. This defines a set of restrictions for our new equation:



  • $0 le y_k (le 50)$


  • $y_1$ has no further restrictions


  • $y_5$ must be a multiple of five, i.e. $0,5,10,15,$ and so on, with a max of $50$ if you use finite sums


  • $y_10$ must be a multiple of ten, i.e. $0,10,20,...$, capping at $50$ if you opt for finite sums


  • $y_25$ must be a multiple of $25$, i.e. $0,25,50$, and higher if you want an infinite sum

With this reframing, we have now turned the original question into one about finding a generating function that corresponds to this situation, in which we find the number of non-negative solutions within the restrictions above.



Define your generating function in terms of polynomials, one per variable, where the exponents correspond to the allowed values for that variable. Your generating function is then the product of all the polynomials, and the number of solutions is the coefficient of $x^50$ in the resulting expansion.



You have done so in the OP correctly, luckily. :)






share|cite|improve this answer









$endgroup$



Your work is correct, though I feel like explaining why might help to dispel any potential doubts on the matter (and help future, confused readers).




The number of solutions to the problem given is effectively the number of solutions to



$$x_1 + 5x_5 + 10x_10 + 25x_25 = 50$$



where $x_k$ are non-negative integers for all $k$, with no restrictions. This is not unlike the standard situation with finding the number of non-negative integer solutions to an equation



$$x_1 + x_2 + x_3 + ... + x_n = r$$



but the weird thing here is that we have coefficients for various $x_k$! This can be fixed though! Let's make some substitutions:



  • $y_1 = x_1$

  • $y_5 = 5x_5$

  • $y_10 = 10x_10$

  • $y_25 = 25x_25$

Then we seek the number of solutions to the equation, in non-negative integers for $y_k$,



$$y_1 + y_5 + y_10 + y_25 = 50$$



The substitutions mean that we have restrictions other than $0 le y_k (le 50$ if you choose to do finite sums in the generating function). Namely, since $x_k$ are also integers, this means that $y_5 = 5x_5$ must be a multiple of five, $y_10 = 10x_10$ must be a multiple of $10$, and so on. This defines a set of restrictions for our new equation:



  • $0 le y_k (le 50)$


  • $y_1$ has no further restrictions


  • $y_5$ must be a multiple of five, i.e. $0,5,10,15,$ and so on, with a max of $50$ if you use finite sums


  • $y_10$ must be a multiple of ten, i.e. $0,10,20,...$, capping at $50$ if you opt for finite sums


  • $y_25$ must be a multiple of $25$, i.e. $0,25,50$, and higher if you want an infinite sum

With this reframing, we have now turned the original question into one about finding a generating function that corresponds to this situation, in which we find the number of non-negative solutions within the restrictions above.



Define your generating function in terms of polynomials, one per variable, where the exponents correspond to the allowed values for that variable. Your generating function is then the product of all the polynomials, and the number of solutions is the coefficient of $x^50$ in the resulting expansion.



You have done so in the OP correctly, luckily. :)







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Apr 2 at 8:44









Eevee TrainerEevee Trainer

10.6k31842




10.6k31842











  • $begingroup$
    Thank you @Eevee :)
    $endgroup$
    – ankit
    Apr 2 at 8:53
















  • $begingroup$
    Thank you @Eevee :)
    $endgroup$
    – ankit
    Apr 2 at 8:53















$begingroup$
Thank you @Eevee :)
$endgroup$
– ankit
Apr 2 at 8:53




$begingroup$
Thank you @Eevee :)
$endgroup$
– ankit
Apr 2 at 8:53

















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%2f3171606%2fsolution-of-a-combinatorics-problem-using-generating-function%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

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

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

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