Having looked at the solution again, it's nearly completed, we can see the different sets actually have not been sorted and put together
ie.
EquivalenceClass( A, 3 );
[{a[1] + a[2] + a[3]}, [2, 1, 2, 1]], [{a[1] + a[2] + a[4]}, [2, 2, 1, 1]], {a[1] + a[3] + a[4]}, [1, 1, 2, 2]], [{a[2] + a[3] + a[4]}, [1, 2, 1, 2]]
all these sets have the same set of values but have been put into different sets as they haven't been sorted.

Having looked at the solution again, it's nearly completed, we can see the different sets actually have not been sorted and put together
ie.
EquivalenceClass( A, 3 );
[{a[1] + a[2] + a[3]}, [2, 1, 2, 1]], [{a[1] + a[2] + a[4]}, [2, 2, 1, 1]], {a[1] + a[3] + a[4]}, [1, 1, 2, 2]], [{a[2] + a[3] + a[4]}, [1, 2, 1, 2]]
all these sets have the same set of values but have been put into different sets as they haven't been sorted.

That's a great solution thank you, but i would like to further it not to just solutions of just the sum of two but also to all possible subsets.
So in my example i used subsets of size two but i would also would like subsets of size three for example, The actual problem I'm working with is fairly large and will require much larger subsets.
I will also try my best to work on a solution as well, however i'm fairly new to using Maple and any help is much appreciated.

That's a great solution thank you, but i would like to further it not to just solutions of just the sum of two but also to all possible subsets.
So in my example i used subsets of size two but i would also would like subsets of size three for example, The actual problem I'm working with is fairly large and will require much larger subsets.
I will also try my best to work on a solution as well, however i'm fairly new to using Maple and any help is much appreciated.

that is exactly what i wanted thank you, I just needed to analyse some numbers but they were getting too large so i reverted to Maple for some help, thank you very much

that is exactly what i wanted thank you, I just needed to analyse some numbers but they were getting too large so i reverted to Maple for some help, thank you very much

Thank you both very much for the help it is much appreciated

Thank you both very much for the help it is much appreciated

Thank you very much with your help, when i try using this i get
"Error, reserved word `return` unexpected"
Is there a simple fix that i'm missing?

Thank you very much with your help, when i try using this i get
"Error, reserved word `return` unexpected"
Is there a simple fix that i'm missing?