Ways to produce specific value out of limited set

In summary, the conversation discusses the problem of finding the number of ways to produce $2 using any number of coins. The speaker mentions using multisets and generating functions to solve this problem. They also suggest reading the book "Concrete Mathematics" for more information. The conversation also touches on the classic problem of making change for a dollar and the usefulness of generating functions in counting.
  • #1
martix
169
5
I have this infuriating little problem I'm trying to solve:
How many ways are there to produce 2 bucks out of any number of coins?

So this means - how many ways to get 200 by adding 1, 2, 5, 10, 20, 50, 100.

The best idea I could come up with so far in my research was counting multisets, but that didn't get me very far.
 
Physics news on Phys.org
  • #2
It is for such a problems that generating functions are useful.

I would take a look in the great book "concrete mathematics" by Graham, Knuth and Patashnik.

I'll solve the following easier problem:
How many ways to get 50 out of 1 and 5.

Let's first assume that we have nothing but pennies (denotes by p). The sum of all ways to leave some number of pennies in change can be written as

[tex]X=1+p+p^2+p^3+...[/tex]

thus the 1 means that we leave no pennies, the p means we leave 1 penny, etc.

Now, if we're also allowed to use nickels (denotes by n), then the number of ways we can leave change is

[tex]Y=X+nX+n^2X+n^3X+...[/tex]

the X means we leave a number of pennies and no nickels, the nX means we leave one nickel, etc. Obviously

[tex]Y=(1+n+n^2+n^3+...)X=(1+n+n^2+n^3+...)(1+p+p^2+p^3+...)[/tex]

This product contains terms like nnnpppp, which means we leave 3 nickels and 4 pennies. Now, we use a little trick, we exchange p with z and n with [tex]z^5[/tex], we get

[tex]Y=(1+z+z^2+z^3+...)(1+z^5+z^{10}+z^{15}+...)[/tex]

We are actually interested in [tex]z^{50}[/tex] in this product, since the coefficient will tell us the number of ways we can pay 50.

Now the generating functions come into the play. These give us that

[tex]\frac{1}{1-z}=1+z+z^2+z^3+...~\text{and}~\frac{1}{1-z}=1+z^5+z^{10}+z^{15}+...[/tex]

Thus,

[tex]X=\frac{1}{1-z}~\text{and}~Y=\frac{X}{1-z^5}[/tex]

or equivalently

[tex](1-z)X=1~\text{and}~(1-z^5)Y=X[/tex]

Now, we can find the coefficient of [tex]z^n[/tex] by following recurrence relations: (denote the coefficient of zn in X (resp. Y) as Xn (resp. Yn). Then we get

[tex]X_n=X_{n-1}~\text{and}~Y_n=Y_{n-5}+X_n[/tex].

Thus, for n=50, we get

[tex]Y_{50}=Y_{45}+X_{50}=Y_{40}+X_{45}+X_{50}=...=Y_0+X_5+X_{10}+X_{15}+...+X_{50}[/tex].

Now, it is easy to see that [tex]X_n=1[/tex] and that [tex]Y_0=1[/tex], thus we get

[tex]Y_{50}=10[/tex]

So there are 10 ways of paying.Note, that there are ways to give clean closed-form formulas of [tex]Y_n[/tex]. But I won't give them here. For that, I should read the book Concrete mathematics...
 
  • #3
Like micromass, I am a big fan of generating functions as discussed in "Concrete Mathematics".

The classic problem along these lines is "How many ways can you make change for a dollar?" If you would like to see an approach that doesn't use generating functions, see this link:

http://mathforum.org/library/drmath/view/57912.html
 
  • #4
Generating functions are very powerful if you want to count things. If you can get the time to learn them, I would suggest it.
 
  • #5


I can suggest a few potential approaches to solving this problem. One possible method is to use a mathematical technique called combinatorics, which deals with counting and organizing different combinations of objects. In this case, we can use combinatorics to determine the number of ways to select a specific number of coins from the given set (1, 2, 5, 10, 20, 50, 100) that add up to a total of 200. This would involve using formulas such as permutations or combinations.

Another approach could be to use computer programming to generate all possible combinations and then filter out the ones that do not add up to 200. This may be a more time-consuming method, but it could provide an accurate and comprehensive list of all possible ways to produce 2 bucks from the given set of coins.

Additionally, we could also consider the practical limitations of the problem, such as the availability of certain coins or the physical constraints of carrying a large number of coins. This could potentially narrow down the number of solutions and make the problem more manageable.

In conclusion, there are multiple ways to approach this problem, and further research and experimentation may be needed to find the most efficient and accurate solution. As a scientist, it is important to consider all possible methods and choose the one that best fits the specific problem at hand.
 

FAQ: Ways to produce specific value out of limited set

What is meant by "specific value" in the context of producing value out of a limited set?

In this context, "specific value" refers to a desired outcome or result that is being sought after using a limited set of resources or options. It could be a particular product, service, or solution that is being created or achieved.

What are some common ways to produce specific value out of a limited set?

Some common ways to produce specific value out of a limited set include prioritization, optimization, creativity, and innovation. Prioritization involves identifying the most important or valuable elements from a limited set and focusing on those. Optimization involves finding the most efficient or effective way to use the limited set to achieve the desired value. Creativity and innovation involve thinking outside the box and finding new or unique ways to produce value using a limited set.

How can limited resources or options be turned into a source of value?

Limited resources or options can be turned into a source of value by using them strategically and creatively. For example, a limited budget can lead to more innovative and cost-effective solutions. Limited options can also spark creativity and lead to new and unique ideas.

What are some challenges that may arise when trying to produce specific value out of a limited set?

Some challenges that may arise when trying to produce specific value out of a limited set include resource constraints, time constraints, and the need for trade-offs. Limited resources or options may also lead to a lack of diversity or innovation, as there are fewer options to choose from.

How can a scientist approach producing specific value out of a limited set?

A scientist can approach producing specific value out of a limited set by utilizing their analytical and problem-solving skills. They can also use scientific methods to test and evaluate different approaches to producing value. Additionally, collaboration and communication with others can help generate new ideas and perspectives when working with limited resources or options.

Similar threads

Replies
3
Views
965
Replies
15
Views
1K
Replies
11
Views
2K
Replies
6
Views
2K
Replies
2
Views
2K
Replies
2
Views
3K
Replies
16
Views
1K
Replies
2
Views
4K
Back
Top