Hacker News new | past | comments | ask | show | jobs | submit login

Not sure why you're mentioning this as it's in the SO question:

"The correct answer can be calculated using

1 + 2 + ... + n = n(n+1)/2"




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: