http://qs321.pair.com?node_id=892925


in reply to Re^3: Split range 0 to M into N non-overlapping (roughly equal) ranges.
in thread Split range 0 to M into N non-overlapping (roughly equal) ranges.

I'm seeing the same numbers as you. But what is your output for: ranges -M=20 -N=3 ?

I get: 0-6, 7-13, 14-20.

I expect the last index to be 19.