InterviewSolution
Saved Bookmarks
| 1. |
What is the sum of all integers |
|
Answer» Sum of all integers is 0 0 Is the sum of n positive integers formula, n(n+1)2n(n+1)2, applicable to sets of consecutive integers as well?For instance, if I wanted to calculate sum of first 20 multiples of 3, could I use: 3 x 20(21)220(21)2a similar approach has been used for even numbers. 1+2+3+4.........infinity =-1/12So the sum of all the integer is -1/12 n(n+1)/2 |
|