Solving Subset Sum Counting: How to Make £2 from Coins

  • Thread starter Thread starter martix
  • Start date Start date
  • Tags Tags
    Counting Sum
martix
Messages
167
Reaction score
5

Homework Statement


How many different ways can £2 be made using any number of coins?
(In other words, how many ways can you obtain the sum of 200 with terms from the following finite set - 200, 100, 50, 20, 10, 5, 2, 1. Order does not matter.)

Homework Equations


None?


The Attempt at a Solution


No idea.
I've been mulling over this problem for way too much time now without producing anything viable.
A PnP solution is beyond me at this point. On the computational side I've been thinking of a recursive solution which should spawn this massive recursion tree and I'm pretty sure there's got to be a better method out there.
 
Physics news on Phys.org
Do you know generating functions??
 
Nope...
First time I've heard of those. I can always read up on them if they are relevant to the solution.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top