a bit mathematics will do the trick to:
sum of 1 + 2 + .. + n = n(n+1)/2
sum of 1^2 + 2^2 + 3^2 + ... n^2 = n(n+1)(2n+1)/6
sqrt(2119) = 46
so the answer is: 2118*2119/2 + 46*47*93/6
Search found 1 match
- Thu Nov 20, 2008 7:20 am
- Forum: Challenges Solved
- Topic: Delegates
- Replies: 17
- Views: 2213