InterviewSolution
Saved Bookmarks
| 1. |
Find the sum of odd integers from 1 to 2001. |
|
Answer» 1+3+5+7+9+....+1999+20012001=1+(n-1)22000=2(n-1)n-1=1000n=1001S1001=(1001/2)(1+2001)=1001/2(2002) =1001*1001=1002001 |
|