Number of ways to express sum. Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Two Probability QuestionsCounting cards, with a treeCombinatorics Question about balls in boxesGiven $26$ balls - $8$ yellow, $7$ red and $11$ white - how many ways are there to select $12$ of them?Finding the number of ways of picking three cardsColoring a Complete Graph in Three Colors, Proving that there is a Complete SubgraphWrite expression B(x), the generating function of the number of ways to choose a bouquet of flowers nNumber of 3-of-a-kind hands that are not 4-of-a-kind and not a full-house?Number of ways of picking cardsThe number of ways of choosing with parameters

Is there a Spanish version of "dot your i's and cross your t's" that includes the letter 'ñ'?

Does polymorph use a PC’s CR or its level?

Should I call the interviewer directly, if HR aren't responding?

How discoverable are IPv6 addresses and AAAA names by potential attackers?

Does surprise arrest existing movement?

Output the ŋarâþ crîþ alphabet song without using (m)any letters

Why did the IBM 650 use bi-quinary?

Why is "Consequences inflicted." not a sentence?

When is phishing education going too far?

How widely used is the term Treppenwitz? Is it something that most Germans know?

ListPlot join points by nearest neighbor rather than order

Are my PIs rude or am I just being too sensitive?

How do I stop a creek from eroding my steep embankment?

IndentationError when pasting code in Python 3 interpreter mode

Is there a concise way to say "all of the X, one of each"?

What does the "x" in "x86" represent?

Did Xerox really develop the first LAN?

Is the Standard Deduction better than Itemized when both are the same amount?

Right-skewed distribution with mean equals to mode?

Bonus calculation: Am I making a mountain out of a molehill?

Disable hyphenation for an entire paragraph

Should gear shift center itself while in neutral?

The logistics of corpse disposal

How to recreate this effect in Photoshop?



Number of ways to express sum.



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Two Probability QuestionsCounting cards, with a treeCombinatorics Question about balls in boxesGiven $26$ balls - $8$ yellow, $7$ red and $11$ white - how many ways are there to select $12$ of them?Finding the number of ways of picking three cardsColoring a Complete Graph in Three Colors, Proving that there is a Complete SubgraphWrite expression B(x), the generating function of the number of ways to choose a bouquet of flowers nNumber of 3-of-a-kind hands that are not 4-of-a-kind and not a full-house?Number of ways of picking cardsThe number of ways of choosing with parameters










1












$begingroup$



Consider three sets of cards colored Blue, Red and Yellow. Each set has cards numbered $1-10$. The $4$ remaining cards are all indistinguishable cards numbered $0$.



Card numbered $i$ has the value of $2^i$. How many ways are there to choose a group of cards that sums up to $2016$.




I'm having a problem with creating a generating function for this problem, any help would be appreciated.



So far I have $f(x) = (x^1 + x^2 + x^3 + x^4)cdot(1 + x^2^1 + x^2^2 + x^2^3 ... + x^2^10)^3$ but I'm not really sure that's even correct.










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    Does it have to be a generating function, or is some other type of solution acceptable?
    $endgroup$
    – Ross Millikan
    Mar 31 at 23:35










  • $begingroup$
    It should be done using a generating function.
    $endgroup$
    – J. Lastin
    Apr 1 at 0:39















1












$begingroup$



Consider three sets of cards colored Blue, Red and Yellow. Each set has cards numbered $1-10$. The $4$ remaining cards are all indistinguishable cards numbered $0$.



Card numbered $i$ has the value of $2^i$. How many ways are there to choose a group of cards that sums up to $2016$.




I'm having a problem with creating a generating function for this problem, any help would be appreciated.



So far I have $f(x) = (x^1 + x^2 + x^3 + x^4)cdot(1 + x^2^1 + x^2^2 + x^2^3 ... + x^2^10)^3$ but I'm not really sure that's even correct.










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    Does it have to be a generating function, or is some other type of solution acceptable?
    $endgroup$
    – Ross Millikan
    Mar 31 at 23:35










  • $begingroup$
    It should be done using a generating function.
    $endgroup$
    – J. Lastin
    Apr 1 at 0:39













1












1








1


0



$begingroup$



Consider three sets of cards colored Blue, Red and Yellow. Each set has cards numbered $1-10$. The $4$ remaining cards are all indistinguishable cards numbered $0$.



Card numbered $i$ has the value of $2^i$. How many ways are there to choose a group of cards that sums up to $2016$.




I'm having a problem with creating a generating function for this problem, any help would be appreciated.



So far I have $f(x) = (x^1 + x^2 + x^3 + x^4)cdot(1 + x^2^1 + x^2^2 + x^2^3 ... + x^2^10)^3$ but I'm not really sure that's even correct.










share|cite|improve this question











$endgroup$





Consider three sets of cards colored Blue, Red and Yellow. Each set has cards numbered $1-10$. The $4$ remaining cards are all indistinguishable cards numbered $0$.



Card numbered $i$ has the value of $2^i$. How many ways are there to choose a group of cards that sums up to $2016$.




I'm having a problem with creating a generating function for this problem, any help would be appreciated.



So far I have $f(x) = (x^1 + x^2 + x^3 + x^4)cdot(1 + x^2^1 + x^2^2 + x^2^3 ... + x^2^10)^3$ but I'm not really sure that's even correct.







combinatorics discrete-mathematics generating-functions binomial-theorem






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Apr 1 at 19:54







J. Lastin

















asked Mar 31 at 23:22









J. LastinJ. Lastin

12412




12412







  • 1




    $begingroup$
    Does it have to be a generating function, or is some other type of solution acceptable?
    $endgroup$
    – Ross Millikan
    Mar 31 at 23:35










  • $begingroup$
    It should be done using a generating function.
    $endgroup$
    – J. Lastin
    Apr 1 at 0:39












  • 1




    $begingroup$
    Does it have to be a generating function, or is some other type of solution acceptable?
    $endgroup$
    – Ross Millikan
    Mar 31 at 23:35










  • $begingroup$
    It should be done using a generating function.
    $endgroup$
    – J. Lastin
    Apr 1 at 0:39







1




1




$begingroup$
Does it have to be a generating function, or is some other type of solution acceptable?
$endgroup$
– Ross Millikan
Mar 31 at 23:35




$begingroup$
Does it have to be a generating function, or is some other type of solution acceptable?
$endgroup$
– Ross Millikan
Mar 31 at 23:35












$begingroup$
It should be done using a generating function.
$endgroup$
– J. Lastin
Apr 1 at 0:39




$begingroup$
It should be done using a generating function.
$endgroup$
– J. Lastin
Apr 1 at 0:39










3 Answers
3






active

oldest

votes


















2





+50







$begingroup$

We can represent the number of selecting zero up to four indistinguishible cards which have value $2^0=1$ as
beginalign*
1+x+x^2+x^3+x^4=frac1-x^51-x
endalign*



We can represent the number of selecting zero up to three distinguishible cards numbered with value $2^i$ as
beginalign*
left(1+x^2^iright)^3qquad 1leq ileq 10
endalign*



The corresponding generating function is
beginalign*
&frac1-x^51-xleft(1+x^2^1right)^3left(1+x^2^2right)^3left(1+x^2^3right)^3cdotsleft(1+x^2^10right)^3\
&qquad=frac1-x^51-xleft(sum_j=0^2^10-1x^2jright)^3\
&qquad=frac1-x^51-xleft(frac1-x^2^111-x^2right)^3tag1
endalign*

in accordance with the generating function given by the answer from @RossMillikan.



Next we have to extract the coefficient of $x^2016$ from (1). It is convenient to use the coefficient of operator $[x^k]$ to denote the coefficient of $x^k$ of a series.




We obtain from (1)
beginalign*
colorblue[x^2016]&colorbluefrac1-x^51-xleft(frac1-x^2^111-x^2right)^3\
&=[x^2016]frac1-x^51-xleft(frac11-x^2right)^3tag2\
&=left([x^2016]-[x^2011]right)sum_j=0^infty x^ksum_j=0^inftybinom-3j(-x^2)^jtag3\
&=left(sum_k=0^2016[x^k]-sum_k=0^2011[x^k]right)sum_j=0^inftybinomj+22x^2jtag4\
&=left(sum_k=0^1008[x^2k]-sum_k=0^1005[x^2k]right)sum_j=0^inftybinomj+22x^2jtag5\
&=binom10082+binom10092+binom10102tag6\
&,,colorblue=1,525,609
endalign*




Comment:



  • In (2) we omit terms in the numerator with powers of $x^2^11$ since they do not contribute to the coefficient of $x^2016$.


  • In (3) we apply $[x^p-q]A(x)=[x^p]x^qA(x)$ and do a geometric and binomial series expansion.


  • In (4) we use the binomial identity $binom-pq=binomp+q-1p-1(-1)^q$.


  • In (5) we skip coefficients of odd powers since they do not contribute.


  • In (6) we select the coefficients accordingly.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    I always find your explanations pointed and clear. (+1)
    $endgroup$
    – user90369
    Apr 11 at 14:30










  • $begingroup$
    @user90369: Many thanks for your nice comment and the credit. :-)
    $endgroup$
    – Markus Scheuer
    Apr 11 at 14:49










  • $begingroup$
    @J.Lastin: Many thanks for accepting my answer and granting the bounty.
    $endgroup$
    – Markus Scheuer
    2 days ago


















1












$begingroup$

Here are a couple of hints:



With the blue cards, you can make any even number from $0$ to $2^11-2$, and you can make it it exactly one way. (Think binary numbers.)



With the the zero cards, you can make $0$ in $1$ way, $1$ in $4$ ways, $2$ in $6$ ways, etc. if we take account of which zero card we use. From the statement that the zero cards are indistinguishable, however, I suppose we can make $0,1,2,3,$ or $4$ in one way.



Can you finish it from here?






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Honestly I'm struggling with creating the corresponding polynomials for each set of cards because of their changing values.
    $endgroup$
    – J. Lastin
    Apr 1 at 0:04



















1












$begingroup$

The blue cards can give you any even value from $0$ through $2046$ in exactly one way, so their generating function is $1+x^2+x^4+ldots+x^2046=frac 1-x^20481-x^2$. You could also get here by saying the $1$ card has value $2$ so generating function $1+x^2$, the $2$ card has function $1+x^4$ and so on. Multiply all those together for a given color and you get the above. Each color can give you the same, so you cube it. The blanks can give you any value from $0$ to $4$, so their generating function is $1+x+x^2+x^3+x^4=frac 1-x^51-x$ and the overall generating function is
$$left(frac 1-x^51-xright)left(frac 1-x^20481-x^2right)^3$$






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Thank you, is there a way for me to get the coefficient for $x^2016$ by manipulating this function somehow, or would I have to multiply this and get the result from a computer?
    $endgroup$
    – J. Lastin
    Apr 1 at 1:10







  • 1




    $begingroup$
    I don't know of one. I had another approach in mind when I asked if it had to be a generating function. That approach would be working down from the top. You can have zero or one cards numbered $10$. If you have one, you still need to make $992$ and you can have zero or one card numbered $9$. If you have none, you have to have at least one card numbered $9$ and could have as many as $3$. Keep working your way down. The binary will make it not explode in possibilities.
    $endgroup$
    – Ross Millikan
    Apr 1 at 1:17






  • 1




    $begingroup$
    I tried to ask Alpha. Its interpretation of the input looks right, but it returns $0$, so there is something wrong
    $endgroup$
    – Ross Millikan
    Apr 1 at 2:09










  • $begingroup$
    Each non-negative integer has a unique representation in base 2. This is a theorem which can be established via generating functions. Maybe referencing the theorem will suffice to fulfill the requirement that the solution use generating functions.
    $endgroup$
    – awkward
    Apr 1 at 23:09











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%2f3170011%2fnumber-of-ways-to-express-sum%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









2





+50







$begingroup$

We can represent the number of selecting zero up to four indistinguishible cards which have value $2^0=1$ as
beginalign*
1+x+x^2+x^3+x^4=frac1-x^51-x
endalign*



We can represent the number of selecting zero up to three distinguishible cards numbered with value $2^i$ as
beginalign*
left(1+x^2^iright)^3qquad 1leq ileq 10
endalign*



The corresponding generating function is
beginalign*
&frac1-x^51-xleft(1+x^2^1right)^3left(1+x^2^2right)^3left(1+x^2^3right)^3cdotsleft(1+x^2^10right)^3\
&qquad=frac1-x^51-xleft(sum_j=0^2^10-1x^2jright)^3\
&qquad=frac1-x^51-xleft(frac1-x^2^111-x^2right)^3tag1
endalign*

in accordance with the generating function given by the answer from @RossMillikan.



Next we have to extract the coefficient of $x^2016$ from (1). It is convenient to use the coefficient of operator $[x^k]$ to denote the coefficient of $x^k$ of a series.




We obtain from (1)
beginalign*
colorblue[x^2016]&colorbluefrac1-x^51-xleft(frac1-x^2^111-x^2right)^3\
&=[x^2016]frac1-x^51-xleft(frac11-x^2right)^3tag2\
&=left([x^2016]-[x^2011]right)sum_j=0^infty x^ksum_j=0^inftybinom-3j(-x^2)^jtag3\
&=left(sum_k=0^2016[x^k]-sum_k=0^2011[x^k]right)sum_j=0^inftybinomj+22x^2jtag4\
&=left(sum_k=0^1008[x^2k]-sum_k=0^1005[x^2k]right)sum_j=0^inftybinomj+22x^2jtag5\
&=binom10082+binom10092+binom10102tag6\
&,,colorblue=1,525,609
endalign*




Comment:



  • In (2) we omit terms in the numerator with powers of $x^2^11$ since they do not contribute to the coefficient of $x^2016$.


  • In (3) we apply $[x^p-q]A(x)=[x^p]x^qA(x)$ and do a geometric and binomial series expansion.


  • In (4) we use the binomial identity $binom-pq=binomp+q-1p-1(-1)^q$.


  • In (5) we skip coefficients of odd powers since they do not contribute.


  • In (6) we select the coefficients accordingly.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    I always find your explanations pointed and clear. (+1)
    $endgroup$
    – user90369
    Apr 11 at 14:30










  • $begingroup$
    @user90369: Many thanks for your nice comment and the credit. :-)
    $endgroup$
    – Markus Scheuer
    Apr 11 at 14:49










  • $begingroup$
    @J.Lastin: Many thanks for accepting my answer and granting the bounty.
    $endgroup$
    – Markus Scheuer
    2 days ago















2





+50







$begingroup$

We can represent the number of selecting zero up to four indistinguishible cards which have value $2^0=1$ as
beginalign*
1+x+x^2+x^3+x^4=frac1-x^51-x
endalign*



We can represent the number of selecting zero up to three distinguishible cards numbered with value $2^i$ as
beginalign*
left(1+x^2^iright)^3qquad 1leq ileq 10
endalign*



The corresponding generating function is
beginalign*
&frac1-x^51-xleft(1+x^2^1right)^3left(1+x^2^2right)^3left(1+x^2^3right)^3cdotsleft(1+x^2^10right)^3\
&qquad=frac1-x^51-xleft(sum_j=0^2^10-1x^2jright)^3\
&qquad=frac1-x^51-xleft(frac1-x^2^111-x^2right)^3tag1
endalign*

in accordance with the generating function given by the answer from @RossMillikan.



Next we have to extract the coefficient of $x^2016$ from (1). It is convenient to use the coefficient of operator $[x^k]$ to denote the coefficient of $x^k$ of a series.




We obtain from (1)
beginalign*
colorblue[x^2016]&colorbluefrac1-x^51-xleft(frac1-x^2^111-x^2right)^3\
&=[x^2016]frac1-x^51-xleft(frac11-x^2right)^3tag2\
&=left([x^2016]-[x^2011]right)sum_j=0^infty x^ksum_j=0^inftybinom-3j(-x^2)^jtag3\
&=left(sum_k=0^2016[x^k]-sum_k=0^2011[x^k]right)sum_j=0^inftybinomj+22x^2jtag4\
&=left(sum_k=0^1008[x^2k]-sum_k=0^1005[x^2k]right)sum_j=0^inftybinomj+22x^2jtag5\
&=binom10082+binom10092+binom10102tag6\
&,,colorblue=1,525,609
endalign*




Comment:



  • In (2) we omit terms in the numerator with powers of $x^2^11$ since they do not contribute to the coefficient of $x^2016$.


  • In (3) we apply $[x^p-q]A(x)=[x^p]x^qA(x)$ and do a geometric and binomial series expansion.


  • In (4) we use the binomial identity $binom-pq=binomp+q-1p-1(-1)^q$.


  • In (5) we skip coefficients of odd powers since they do not contribute.


  • In (6) we select the coefficients accordingly.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    I always find your explanations pointed and clear. (+1)
    $endgroup$
    – user90369
    Apr 11 at 14:30










  • $begingroup$
    @user90369: Many thanks for your nice comment and the credit. :-)
    $endgroup$
    – Markus Scheuer
    Apr 11 at 14:49










  • $begingroup$
    @J.Lastin: Many thanks for accepting my answer and granting the bounty.
    $endgroup$
    – Markus Scheuer
    2 days ago













2





+50







2





+50



2




+50



$begingroup$

We can represent the number of selecting zero up to four indistinguishible cards which have value $2^0=1$ as
beginalign*
1+x+x^2+x^3+x^4=frac1-x^51-x
endalign*



We can represent the number of selecting zero up to three distinguishible cards numbered with value $2^i$ as
beginalign*
left(1+x^2^iright)^3qquad 1leq ileq 10
endalign*



The corresponding generating function is
beginalign*
&frac1-x^51-xleft(1+x^2^1right)^3left(1+x^2^2right)^3left(1+x^2^3right)^3cdotsleft(1+x^2^10right)^3\
&qquad=frac1-x^51-xleft(sum_j=0^2^10-1x^2jright)^3\
&qquad=frac1-x^51-xleft(frac1-x^2^111-x^2right)^3tag1
endalign*

in accordance with the generating function given by the answer from @RossMillikan.



Next we have to extract the coefficient of $x^2016$ from (1). It is convenient to use the coefficient of operator $[x^k]$ to denote the coefficient of $x^k$ of a series.




We obtain from (1)
beginalign*
colorblue[x^2016]&colorbluefrac1-x^51-xleft(frac1-x^2^111-x^2right)^3\
&=[x^2016]frac1-x^51-xleft(frac11-x^2right)^3tag2\
&=left([x^2016]-[x^2011]right)sum_j=0^infty x^ksum_j=0^inftybinom-3j(-x^2)^jtag3\
&=left(sum_k=0^2016[x^k]-sum_k=0^2011[x^k]right)sum_j=0^inftybinomj+22x^2jtag4\
&=left(sum_k=0^1008[x^2k]-sum_k=0^1005[x^2k]right)sum_j=0^inftybinomj+22x^2jtag5\
&=binom10082+binom10092+binom10102tag6\
&,,colorblue=1,525,609
endalign*




Comment:



  • In (2) we omit terms in the numerator with powers of $x^2^11$ since they do not contribute to the coefficient of $x^2016$.


  • In (3) we apply $[x^p-q]A(x)=[x^p]x^qA(x)$ and do a geometric and binomial series expansion.


  • In (4) we use the binomial identity $binom-pq=binomp+q-1p-1(-1)^q$.


  • In (5) we skip coefficients of odd powers since they do not contribute.


  • In (6) we select the coefficients accordingly.






share|cite|improve this answer











$endgroup$



We can represent the number of selecting zero up to four indistinguishible cards which have value $2^0=1$ as
beginalign*
1+x+x^2+x^3+x^4=frac1-x^51-x
endalign*



We can represent the number of selecting zero up to three distinguishible cards numbered with value $2^i$ as
beginalign*
left(1+x^2^iright)^3qquad 1leq ileq 10
endalign*



The corresponding generating function is
beginalign*
&frac1-x^51-xleft(1+x^2^1right)^3left(1+x^2^2right)^3left(1+x^2^3right)^3cdotsleft(1+x^2^10right)^3\
&qquad=frac1-x^51-xleft(sum_j=0^2^10-1x^2jright)^3\
&qquad=frac1-x^51-xleft(frac1-x^2^111-x^2right)^3tag1
endalign*

in accordance with the generating function given by the answer from @RossMillikan.



Next we have to extract the coefficient of $x^2016$ from (1). It is convenient to use the coefficient of operator $[x^k]$ to denote the coefficient of $x^k$ of a series.




We obtain from (1)
beginalign*
colorblue[x^2016]&colorbluefrac1-x^51-xleft(frac1-x^2^111-x^2right)^3\
&=[x^2016]frac1-x^51-xleft(frac11-x^2right)^3tag2\
&=left([x^2016]-[x^2011]right)sum_j=0^infty x^ksum_j=0^inftybinom-3j(-x^2)^jtag3\
&=left(sum_k=0^2016[x^k]-sum_k=0^2011[x^k]right)sum_j=0^inftybinomj+22x^2jtag4\
&=left(sum_k=0^1008[x^2k]-sum_k=0^1005[x^2k]right)sum_j=0^inftybinomj+22x^2jtag5\
&=binom10082+binom10092+binom10102tag6\
&,,colorblue=1,525,609
endalign*




Comment:



  • In (2) we omit terms in the numerator with powers of $x^2^11$ since they do not contribute to the coefficient of $x^2016$.


  • In (3) we apply $[x^p-q]A(x)=[x^p]x^qA(x)$ and do a geometric and binomial series expansion.


  • In (4) we use the binomial identity $binom-pq=binomp+q-1p-1(-1)^q$.


  • In (5) we skip coefficients of odd powers since they do not contribute.


  • In (6) we select the coefficients accordingly.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Apr 11 at 14:50

























answered Apr 7 at 15:04









Markus ScheuerMarkus Scheuer

64.5k460152




64.5k460152











  • $begingroup$
    I always find your explanations pointed and clear. (+1)
    $endgroup$
    – user90369
    Apr 11 at 14:30










  • $begingroup$
    @user90369: Many thanks for your nice comment and the credit. :-)
    $endgroup$
    – Markus Scheuer
    Apr 11 at 14:49










  • $begingroup$
    @J.Lastin: Many thanks for accepting my answer and granting the bounty.
    $endgroup$
    – Markus Scheuer
    2 days ago
















  • $begingroup$
    I always find your explanations pointed and clear. (+1)
    $endgroup$
    – user90369
    Apr 11 at 14:30










  • $begingroup$
    @user90369: Many thanks for your nice comment and the credit. :-)
    $endgroup$
    – Markus Scheuer
    Apr 11 at 14:49










  • $begingroup$
    @J.Lastin: Many thanks for accepting my answer and granting the bounty.
    $endgroup$
    – Markus Scheuer
    2 days ago















$begingroup$
I always find your explanations pointed and clear. (+1)
$endgroup$
– user90369
Apr 11 at 14:30




$begingroup$
I always find your explanations pointed and clear. (+1)
$endgroup$
– user90369
Apr 11 at 14:30












$begingroup$
@user90369: Many thanks for your nice comment and the credit. :-)
$endgroup$
– Markus Scheuer
Apr 11 at 14:49




$begingroup$
@user90369: Many thanks for your nice comment and the credit. :-)
$endgroup$
– Markus Scheuer
Apr 11 at 14:49












$begingroup$
@J.Lastin: Many thanks for accepting my answer and granting the bounty.
$endgroup$
– Markus Scheuer
2 days ago




$begingroup$
@J.Lastin: Many thanks for accepting my answer and granting the bounty.
$endgroup$
– Markus Scheuer
2 days ago











1












$begingroup$

Here are a couple of hints:



With the blue cards, you can make any even number from $0$ to $2^11-2$, and you can make it it exactly one way. (Think binary numbers.)



With the the zero cards, you can make $0$ in $1$ way, $1$ in $4$ ways, $2$ in $6$ ways, etc. if we take account of which zero card we use. From the statement that the zero cards are indistinguishable, however, I suppose we can make $0,1,2,3,$ or $4$ in one way.



Can you finish it from here?






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Honestly I'm struggling with creating the corresponding polynomials for each set of cards because of their changing values.
    $endgroup$
    – J. Lastin
    Apr 1 at 0:04
















1












$begingroup$

Here are a couple of hints:



With the blue cards, you can make any even number from $0$ to $2^11-2$, and you can make it it exactly one way. (Think binary numbers.)



With the the zero cards, you can make $0$ in $1$ way, $1$ in $4$ ways, $2$ in $6$ ways, etc. if we take account of which zero card we use. From the statement that the zero cards are indistinguishable, however, I suppose we can make $0,1,2,3,$ or $4$ in one way.



Can you finish it from here?






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Honestly I'm struggling with creating the corresponding polynomials for each set of cards because of their changing values.
    $endgroup$
    – J. Lastin
    Apr 1 at 0:04














1












1








1





$begingroup$

Here are a couple of hints:



With the blue cards, you can make any even number from $0$ to $2^11-2$, and you can make it it exactly one way. (Think binary numbers.)



With the the zero cards, you can make $0$ in $1$ way, $1$ in $4$ ways, $2$ in $6$ ways, etc. if we take account of which zero card we use. From the statement that the zero cards are indistinguishable, however, I suppose we can make $0,1,2,3,$ or $4$ in one way.



Can you finish it from here?






share|cite|improve this answer









$endgroup$



Here are a couple of hints:



With the blue cards, you can make any even number from $0$ to $2^11-2$, and you can make it it exactly one way. (Think binary numbers.)



With the the zero cards, you can make $0$ in $1$ way, $1$ in $4$ ways, $2$ in $6$ ways, etc. if we take account of which zero card we use. From the statement that the zero cards are indistinguishable, however, I suppose we can make $0,1,2,3,$ or $4$ in one way.



Can you finish it from here?







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Mar 31 at 23:38









saulspatzsaulspatz

17.3k31435




17.3k31435











  • $begingroup$
    Honestly I'm struggling with creating the corresponding polynomials for each set of cards because of their changing values.
    $endgroup$
    – J. Lastin
    Apr 1 at 0:04

















  • $begingroup$
    Honestly I'm struggling with creating the corresponding polynomials for each set of cards because of their changing values.
    $endgroup$
    – J. Lastin
    Apr 1 at 0:04
















$begingroup$
Honestly I'm struggling with creating the corresponding polynomials for each set of cards because of their changing values.
$endgroup$
– J. Lastin
Apr 1 at 0:04





$begingroup$
Honestly I'm struggling with creating the corresponding polynomials for each set of cards because of their changing values.
$endgroup$
– J. Lastin
Apr 1 at 0:04












1












$begingroup$

The blue cards can give you any even value from $0$ through $2046$ in exactly one way, so their generating function is $1+x^2+x^4+ldots+x^2046=frac 1-x^20481-x^2$. You could also get here by saying the $1$ card has value $2$ so generating function $1+x^2$, the $2$ card has function $1+x^4$ and so on. Multiply all those together for a given color and you get the above. Each color can give you the same, so you cube it. The blanks can give you any value from $0$ to $4$, so their generating function is $1+x+x^2+x^3+x^4=frac 1-x^51-x$ and the overall generating function is
$$left(frac 1-x^51-xright)left(frac 1-x^20481-x^2right)^3$$






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Thank you, is there a way for me to get the coefficient for $x^2016$ by manipulating this function somehow, or would I have to multiply this and get the result from a computer?
    $endgroup$
    – J. Lastin
    Apr 1 at 1:10







  • 1




    $begingroup$
    I don't know of one. I had another approach in mind when I asked if it had to be a generating function. That approach would be working down from the top. You can have zero or one cards numbered $10$. If you have one, you still need to make $992$ and you can have zero or one card numbered $9$. If you have none, you have to have at least one card numbered $9$ and could have as many as $3$. Keep working your way down. The binary will make it not explode in possibilities.
    $endgroup$
    – Ross Millikan
    Apr 1 at 1:17






  • 1




    $begingroup$
    I tried to ask Alpha. Its interpretation of the input looks right, but it returns $0$, so there is something wrong
    $endgroup$
    – Ross Millikan
    Apr 1 at 2:09










  • $begingroup$
    Each non-negative integer has a unique representation in base 2. This is a theorem which can be established via generating functions. Maybe referencing the theorem will suffice to fulfill the requirement that the solution use generating functions.
    $endgroup$
    – awkward
    Apr 1 at 23:09















1












$begingroup$

The blue cards can give you any even value from $0$ through $2046$ in exactly one way, so their generating function is $1+x^2+x^4+ldots+x^2046=frac 1-x^20481-x^2$. You could also get here by saying the $1$ card has value $2$ so generating function $1+x^2$, the $2$ card has function $1+x^4$ and so on. Multiply all those together for a given color and you get the above. Each color can give you the same, so you cube it. The blanks can give you any value from $0$ to $4$, so their generating function is $1+x+x^2+x^3+x^4=frac 1-x^51-x$ and the overall generating function is
$$left(frac 1-x^51-xright)left(frac 1-x^20481-x^2right)^3$$






share|cite|improve this answer











$endgroup$












  • $begingroup$
    Thank you, is there a way for me to get the coefficient for $x^2016$ by manipulating this function somehow, or would I have to multiply this and get the result from a computer?
    $endgroup$
    – J. Lastin
    Apr 1 at 1:10







  • 1




    $begingroup$
    I don't know of one. I had another approach in mind when I asked if it had to be a generating function. That approach would be working down from the top. You can have zero or one cards numbered $10$. If you have one, you still need to make $992$ and you can have zero or one card numbered $9$. If you have none, you have to have at least one card numbered $9$ and could have as many as $3$. Keep working your way down. The binary will make it not explode in possibilities.
    $endgroup$
    – Ross Millikan
    Apr 1 at 1:17






  • 1




    $begingroup$
    I tried to ask Alpha. Its interpretation of the input looks right, but it returns $0$, so there is something wrong
    $endgroup$
    – Ross Millikan
    Apr 1 at 2:09










  • $begingroup$
    Each non-negative integer has a unique representation in base 2. This is a theorem which can be established via generating functions. Maybe referencing the theorem will suffice to fulfill the requirement that the solution use generating functions.
    $endgroup$
    – awkward
    Apr 1 at 23:09













1












1








1





$begingroup$

The blue cards can give you any even value from $0$ through $2046$ in exactly one way, so their generating function is $1+x^2+x^4+ldots+x^2046=frac 1-x^20481-x^2$. You could also get here by saying the $1$ card has value $2$ so generating function $1+x^2$, the $2$ card has function $1+x^4$ and so on. Multiply all those together for a given color and you get the above. Each color can give you the same, so you cube it. The blanks can give you any value from $0$ to $4$, so their generating function is $1+x+x^2+x^3+x^4=frac 1-x^51-x$ and the overall generating function is
$$left(frac 1-x^51-xright)left(frac 1-x^20481-x^2right)^3$$






share|cite|improve this answer











$endgroup$



The blue cards can give you any even value from $0$ through $2046$ in exactly one way, so their generating function is $1+x^2+x^4+ldots+x^2046=frac 1-x^20481-x^2$. You could also get here by saying the $1$ card has value $2$ so generating function $1+x^2$, the $2$ card has function $1+x^4$ and so on. Multiply all those together for a given color and you get the above. Each color can give you the same, so you cube it. The blanks can give you any value from $0$ to $4$, so their generating function is $1+x+x^2+x^3+x^4=frac 1-x^51-x$ and the overall generating function is
$$left(frac 1-x^51-xright)left(frac 1-x^20481-x^2right)^3$$







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Apr 1 at 1:05

























answered Apr 1 at 0:59









Ross MillikanRoss Millikan

301k24200375




301k24200375











  • $begingroup$
    Thank you, is there a way for me to get the coefficient for $x^2016$ by manipulating this function somehow, or would I have to multiply this and get the result from a computer?
    $endgroup$
    – J. Lastin
    Apr 1 at 1:10







  • 1




    $begingroup$
    I don't know of one. I had another approach in mind when I asked if it had to be a generating function. That approach would be working down from the top. You can have zero or one cards numbered $10$. If you have one, you still need to make $992$ and you can have zero or one card numbered $9$. If you have none, you have to have at least one card numbered $9$ and could have as many as $3$. Keep working your way down. The binary will make it not explode in possibilities.
    $endgroup$
    – Ross Millikan
    Apr 1 at 1:17






  • 1




    $begingroup$
    I tried to ask Alpha. Its interpretation of the input looks right, but it returns $0$, so there is something wrong
    $endgroup$
    – Ross Millikan
    Apr 1 at 2:09










  • $begingroup$
    Each non-negative integer has a unique representation in base 2. This is a theorem which can be established via generating functions. Maybe referencing the theorem will suffice to fulfill the requirement that the solution use generating functions.
    $endgroup$
    – awkward
    Apr 1 at 23:09
















  • $begingroup$
    Thank you, is there a way for me to get the coefficient for $x^2016$ by manipulating this function somehow, or would I have to multiply this and get the result from a computer?
    $endgroup$
    – J. Lastin
    Apr 1 at 1:10







  • 1




    $begingroup$
    I don't know of one. I had another approach in mind when I asked if it had to be a generating function. That approach would be working down from the top. You can have zero or one cards numbered $10$. If you have one, you still need to make $992$ and you can have zero or one card numbered $9$. If you have none, you have to have at least one card numbered $9$ and could have as many as $3$. Keep working your way down. The binary will make it not explode in possibilities.
    $endgroup$
    – Ross Millikan
    Apr 1 at 1:17






  • 1




    $begingroup$
    I tried to ask Alpha. Its interpretation of the input looks right, but it returns $0$, so there is something wrong
    $endgroup$
    – Ross Millikan
    Apr 1 at 2:09










  • $begingroup$
    Each non-negative integer has a unique representation in base 2. This is a theorem which can be established via generating functions. Maybe referencing the theorem will suffice to fulfill the requirement that the solution use generating functions.
    $endgroup$
    – awkward
    Apr 1 at 23:09















$begingroup$
Thank you, is there a way for me to get the coefficient for $x^2016$ by manipulating this function somehow, or would I have to multiply this and get the result from a computer?
$endgroup$
– J. Lastin
Apr 1 at 1:10





$begingroup$
Thank you, is there a way for me to get the coefficient for $x^2016$ by manipulating this function somehow, or would I have to multiply this and get the result from a computer?
$endgroup$
– J. Lastin
Apr 1 at 1:10





1




1




$begingroup$
I don't know of one. I had another approach in mind when I asked if it had to be a generating function. That approach would be working down from the top. You can have zero or one cards numbered $10$. If you have one, you still need to make $992$ and you can have zero or one card numbered $9$. If you have none, you have to have at least one card numbered $9$ and could have as many as $3$. Keep working your way down. The binary will make it not explode in possibilities.
$endgroup$
– Ross Millikan
Apr 1 at 1:17




$begingroup$
I don't know of one. I had another approach in mind when I asked if it had to be a generating function. That approach would be working down from the top. You can have zero or one cards numbered $10$. If you have one, you still need to make $992$ and you can have zero or one card numbered $9$. If you have none, you have to have at least one card numbered $9$ and could have as many as $3$. Keep working your way down. The binary will make it not explode in possibilities.
$endgroup$
– Ross Millikan
Apr 1 at 1:17




1




1




$begingroup$
I tried to ask Alpha. Its interpretation of the input looks right, but it returns $0$, so there is something wrong
$endgroup$
– Ross Millikan
Apr 1 at 2:09




$begingroup$
I tried to ask Alpha. Its interpretation of the input looks right, but it returns $0$, so there is something wrong
$endgroup$
– Ross Millikan
Apr 1 at 2:09












$begingroup$
Each non-negative integer has a unique representation in base 2. This is a theorem which can be established via generating functions. Maybe referencing the theorem will suffice to fulfill the requirement that the solution use generating functions.
$endgroup$
– awkward
Apr 1 at 23:09




$begingroup$
Each non-negative integer has a unique representation in base 2. This is a theorem which can be established via generating functions. Maybe referencing the theorem will suffice to fulfill the requirement that the solution use generating functions.
$endgroup$
– awkward
Apr 1 at 23:09

















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%2f3170011%2fnumber-of-ways-to-express-sum%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

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