News for hackers. Stuff that matters.
Re:Ask HN: algorithm to slice a number into parts by mooism2 on Wednesday January 21, 2009 @07:11AM (#443112)
n[i] = i for 1 <= i < m

n[m] = n - m.(m-1)/2

This is still fairly trivial.

I sense there are yet more requirements you're not telling us.

There are no comments on this comment yet.