[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Re: Programming Question



People of the LUG,

Here is my quandary I have a number (x) which can be calculated from a numerical array (1, 2, 3, 4,
5), I need to calculate the possible permeatations of the numbers in the array that could result in
the value x.  It may 1+2 and 2x5 (addition and multiplication of the numbers in the array are the
only functions to consider) are the only possible solutions but I need a way of calculating this
for a long list of possible numbers in the array??

Is this clear to anybody out there the author is a little confused himself

Michael

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.