How many total ways are there to make one dollar ?
|dw:1449945419248:dw|
using above denominations...
29 in coins but with a dollar bill 30
100 is a very good guess, but it isn't correct...
wait it is 293
293 is correct !
how did you find ?
Could you also show how you arrived at that :)
you have to figure out how many half dollar coins you need how many pennies you need and how many nickels you need
but the cheating way is looking it up
oh I know this\[1x_1+5x_2+10x_3+25x_4+50x_5+100x_6=100\]nonnegative integral solutions of this
what the frik are those
:/
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.
I would image solving this with recursion in programming . Wouldn't you otherwise had to build a huge tree of every combination by hand
generating functions make the life easy but it seems finding the coefficient isn't easy here...
wait do we only have the coins given in the picture?
am I allowed to use a cent hundred times? because that picture only shows two of them
Ofcourse coins can be used any number of times
thanks.\[\frac{1}{1-x}\cdot\frac{1}{1-x^5}\cdot \frac{1}{1-x^{10}}\cdots \frac{1}{1-x^{100}}\]
lol yeah, finding the coefficient is tough but not impossible
keep clicking "More terms..."
nice pattern. 1, 2, 4, 6, 9, 13, 18, 24, 31, 39, 50...
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]; }
well at least we could convert this problem to a form which Wolfram|Alpha accepts haha
Nice :)
what is your solution?
Page11 example 3.5 http://db.math.ust.hk/notes_download/elementary/algebra/ae_A11.pdf
that solution is a bit complicated..
oh haha but he did use generating functions
nice! i like those generating function problems. i have worked on generating integrals like Voltera equations very interesting ways to solve :O
start with 1 cent splits
|dw:1449953244057:dw|
Join our real-time social learning platform and learn together with your friends!