InterviewSolution
Saved Bookmarks
| 1. |
Find the sum of all natural numbers from 1 and 100 which are divisble by 4 or 5. |
|
Answer» Correct Answer - 2050 Requrired numbers = ( numbers divisible by 4)+(numbers divisible by 5) - (numbers divisible by 20) = ( 4+8+12 +…..+ 100) +( 5+10+15+…+100) - (20 +40 +60 +….+ 100) ` 25/2 xx (4 +100) + 20/2 xx( 5 +100) -5/2 xx ( 20 +100)` ` 25/2xx(4 +100) +20/2 xx (5+100) -5/2 xx (20 +100)` (1300 +1050 -300) = 2050 |
|