Perhaps you might like to refine your question. The indicies of each element are generated by

ind =: $ #: [: i. [:*/$

To refine my question : given an integer X and a number n, I would like to find all combinations of n different integers from 1 to 9 for which the sum is N. Just like in the kakuro puzzle.

JC Coez
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to