3 ms·
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.
by mooism2 18y ago
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.