Ask your own question, for FREE!
Mathematics 4 Online
ganeshie8 (ganeshie8):

How many total ways are there to make one dollar ?

ganeshie8 (ganeshie8):

|dw:1449945419248:dw|

ganeshie8 (ganeshie8):

using above denominations...

OpenStudy (anonymous):

29 in coins but with a dollar bill 30

ganeshie8 (ganeshie8):

100 is a very good guess, but it isn't correct...

OpenStudy (anonymous):

wait it is 293

ganeshie8 (ganeshie8):

293 is correct !

OpenStudy (christos):

how did you find ?

ganeshie8 (ganeshie8):

Could you also show how you arrived at that :)

OpenStudy (anonymous):

you have to figure out how many half dollar coins you need how many pennies you need and how many nickels you need

OpenStudy (anonymous):

but the cheating way is looking it up

Parth (parthkohli):

oh I know this\[1x_1+5x_2+10x_3+25x_4+50x_5+100x_6=100\]nonnegative integral solutions of this

OpenStudy (anonymous):

what the frik are those

OpenStudy (malcolmmcswain):

http://prntscr.com/9ddfxx

OpenStudy (malcolmmcswain):

:/

Parth (parthkohli):

now what we do is apply a trick to convert this to an algebra problem\[(1+x+x^2+\cdots)(1+x^5+x^ {10}+\cdots)(1+x^{10}+{x}^{20}+\cdots)\cdots\]consider this expression. we can find the coefficient of \(x^{100}\) and that is our answer.

OpenStudy (christos):

I would image solving this with recursion in programming . Wouldn't you otherwise had to build a huge tree of every combination by hand

ganeshie8 (ganeshie8):

generating functions make the life easy but it seems finding the coefficient isn't easy here...

Parth (parthkohli):

wait do we only have the coins given in the picture?

Parth (parthkohli):

am I allowed to use a cent hundred times? because that picture only shows two of them

ganeshie8 (ganeshie8):

Ofcourse coins can be used any number of times

Parth (parthkohli):

thanks.\[\frac{1}{1-x}\cdot\frac{1}{1-x^5}\cdot \frac{1}{1-x^{10}}\cdots \frac{1}{1-x^{100}}\]

Parth (parthkohli):

lol yeah, finding the coefficient is tough but not impossible

ganeshie8 (ganeshie8):

keep clicking "More terms..."

Parth (parthkohli):

nice pattern. 1, 2, 4, 6, 9, 13, 18, 24, 31, 39, 50...

OpenStudy (christos):

int make_change(int amount, int[] denominations) { int[] change = new int[amount+1]; change[0] = 1; for (int i = 1; i <= amount; i++) { for (int denomination : denominations) { if (i >= denomination) { change[i] += change[i-denomination]; } } } return change[denomination]; }

Parth (parthkohli):

well at least we could convert this problem to a form which Wolfram|Alpha accepts haha

ganeshie8 (ganeshie8):

Nice :)

Parth (parthkohli):

what is your solution?

ganeshie8 (ganeshie8):

Page11 example 3.5 http://db.math.ust.hk/notes_download/elementary/algebra/ae_A11.pdf

ganeshie8 (ganeshie8):

that solution is a bit complicated..

Parth (parthkohli):

oh haha but he did use generating functions

OpenStudy (ikram002p):

nice! i like those generating function problems. i have worked on generating integrals like Voltera equations very interesting ways to solve :O

OpenStudy (danica518):

start with 1 cent splits

OpenStudy (danica518):

|dw:1449953244057:dw|

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!