hello I need to permute N elements in X groups of K elements. the sum of the K elements of each group must be = S
no repetition allowed within groups. ordered or unordered, is the same.
for example N = 90 (from 1 to 90) the sum of the 90 elements is 4095
90 and 4095 are both divisible by 1, 3, 5, 9, 15, 45
4095/15 = 273 and 90/15 = 6
there are 15 groups, each consisting of 6 numbers, the sum of which is 273?
how can I get this?
tnk