If Qs are numbers less then 200 when divided by 5 or 7 leaves remainder 2.Find the sum of all Qs.
Answers
Answered by
0
Answer:
6479
Step-by-step explanation:
Numbers which are divided by 5, gives remainder 2:
2, 7,12,17 .......... 197
Series is in AP with common difference 5.
Last term = 197
a + (n-1)*d = 197
2 + (n -1)*5 = 197
n = 38
Sum = [n*(first term + Last term)/2]
Sum = 19 *(2+197) = 3781.
The numbers which are divided by 7, gives remainder 2:
2, 9, 16, 23 ............... 198
L = 198
a + (n-1)*d = 198
2 + (n-1)*7 = 198
n = 27
Sum = [27*(2+198)/2]= 2700.
Required sum = 3781 + 2700 - 2 = 6479
** 2 has been added twice so we will deduct it from final result.
Similar questions