On 4/15/2011 3:32 PM, R.E. Boss wrote: > [bm=: nb %~ +/ m > 51.5 > > ]'a b'=.(,~nb&-) nb * (-<.) x: bm > 1 1 > Hmmm. You are right. This is not the way to find the set of nb integers that sum to #m and have a minimal difference.
Skip ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
