Y
Hacker News
new
|
ask
|
show
|
jobs
by
nhebb
3112 days ago
> Isn't sum(1...n) - sum(1...n-1) just n?
Yes. I meant n^2 = sum(1..n-1) + sum(1..n).