A Conversation for Ask h2g2

How many ways to change a dollar bill?

Post 1

Yelbakk

In US money, there are Pennies, Nickels, Dimes, and Quarters and Fifty Cents.
A Penny coin is one cent.
A Nickle is five cents.
A Dime is 10 cents.
A quarter is twenty-five cents.
A Fifty Cents coin is, you guessed it, fifty cents.

So... How many ways are there to make one dollar out of coins?
Can you make it out? Is there a reasonable approach to calculate it?

Y.


How many ways to change a dollar bill?

Post 2

Icy North

An algorithm wouldn't be difficult, but please don't ask me to write one now - I'll leave that, erm, as an exercise for my students.


How many ways to change a dollar bill?

Post 3

Pink Paisley

Interesting. And more complicated in the UK where we also have an extra coin.

1p
2p
5p
10p
20p
50p

I'm off to raid my piggy bank to work it out.

Back in a couple of years.......

PP.


How many ways to change a dollar bill?

Post 4

bobstafford

292 ways apparently in acording to Googlesmiley - smiley


How many ways to change a dollar bill?

Post 5

Icy North

Now work it out if one of the pennies is a Lincoln cent.


How many ways to change a dollar bill?

Post 6

paulh, vaccinated against the Omigod Variant

No. You could make things vastly more complicated in all sorts of ways -- Wheat pattern patterns, Indian-head pennies, quarters for each of the fifty states -- but shouldn't a penny be *just* a penny? If it's worth one cent, it should be regarded as worth any other penny that's worth one cent. I think the concept is called fungibility.


How many ways to change a dollar bill?

Post 7

Icy North

Yes, but it shows the value of an algorithm - you can parametrise for this sort of thing.


How many ways to change a dollar bill?

Post 8

paulh, vaccinated against the Omigod Variant

I'm not saying it isn't useful in some ways. Chances are, though, that a shop clerk who has to make quick change for a dollar is going to go with the fastest and easiest way, not stop to calculate all the possible combinations. Occam's razor, that sort of thing.


How many ways to change a dollar bill?

Post 9

Orcus

Permutations and combinations maths - get thee back to the classroom - A level maths in the UK this sort of thing smiley - smiley


How many ways to change a dollar bill?

Post 10

paulh, vaccinated against the Omigod Variant

The world is my classroom now. I learn lots of new things every day. smiley - smiley


Key: Complain about this post