

InterviewSolution
Saved Bookmarks
1. |
Check whether the sum of 5 consecutive numbers is divisible by 5. |
Answer» Take the first five consecutive natural numbers 1, 2, 3, 4 and 5. Their sum 1 + 2 + 3 + 4 + 5 = 15, divisible by 5. Also, 2 + 3 + 4 + 5 + 6 = 20, divisible by 5. 3 + 4 + 5 + 6 + 7 = 25, divisible by 5. Generally, the sum of 5 consecutive natural numbers is divisible by 5. |
|