Search found 1 match

by syncbit
Thu Nov 20, 2008 7:20 am
Forum: Challenges Solved
Topic: Delegates
Replies: 17
Views: 2213

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