
Gregg O. answered 09/22/15
Engineering Valedictorian Available for Math Tutoring
We can use formulas to help out here.
Sum (from i = 1 to n) of i = n(n+1)/2. Here, n = 10000. Plug in this value, and you're good to go.
Sum (from i = 1 to n) of i2 = n(n+1)(2n+1)/6. Use n=100.
The derivation of these formulas is also really fun and insightful. If you like math, look them up! It's worth the effort.