I was trying to implement a variation of the change count problem (in algorithms) where it is required to find the number of different ways you can change an amount and after much reasoning it turned out to be a maths problem. For example, if given the coins 50, 20, 100 find the number of ways to change 300
The problem is an equation of the form
ax1 + bx2 + ... + kxn = y, a, b, ..., k and y all known and > 0
It is required to find all the possible solutions, for the set of positive integers including 0. Actually I need only the number of solutions. I'd generally think up algorithms myself but I'm not sure how to tackle this.