wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Find the sum of all the numbers less than 1000 and which are neither divisible by 5 nor by 2.


Open in App
Solution

Step1: Calculation of the sum of all the numbers divisible by 2 up to 1000 .

The sum of first n natural numbers is given by the formula In=n(n+1)2.

Numbers divisible by 2 up to 1000 are 2,4,6,...1000.

Sum of all the numbers divisible by 2 up to 1000 is given by:

2+4+6++1000=2(1+2+3+..........+500)2+4+6++1000=2500·5012byusingn(n+1)22+4+6++1000=250500equation(1)

Step2: Calculation of the sum of all the numbers divisible by 5 up to 1000 .

Numbers divisible by 5 up to 1000 are 5,10,15,1000.

Sum of all the numbers divisible by 5 up to 1000 is given by:

5+10+15++1000=5(1+2+3+..........+200)5+10+15++1000=5200·2012byusingn(n+1)25+10+15++1000=100500equation(2)

Step3: Calculation of the number of terms that are divisible by both 2 and 5 up to 1000 .

Numbers divisible by both 2 and 5 will be divisible by 10.

The numbers up to 1000 which are divisible by 10 are 10,20,30,40,990,1000.

Clearly, this forms an AP with a=10,d=10,an=1000.

The nth term of an A.P. is given by an=a+(n1)d, where ais a first term and d is a common difference.

Substitute 1000 for an, 10 for a and 10 for d in the formula an=a+(n1)d.

1000=10+(n1)10990=(n-1)10(subtracting10frombothsides)99=n-1(Dividingbothsidesby10)100=n(Adding1tobothsides)n=100

Step4: Calculation of the sum of all the numbers divisible by both 2 and 5 up to 1000.

The sum of first n terms of an A.P. series is given by the formula Sn=n22a+(n-1)d, where a is the first term and d is the common difference.

Substitute 10 for a, 100 for n and 10 for d in the formula Sn=n22a+(n-1)d.

S100=10022(10)+(100-1)10(Substitutingvaluesofa,d,n)S100=5020+(99)10S100=5020+990S100=501010S100=50500equation(3)

Step5: Calculation of the sum of all the numbers up to 1000 .

Sum of all the numbers up to 1000 is given by:

1+2+3++1000=1001·10002byusingn(n+1)21+2+3++1000=500500equation(4)

Step6: Calculation of the sum of all the numbers which are neither divisible by 2 nor by 5 up to 1000.

The sum of all the numbers less than 1000, which are neither divisible by 5 nor by 2 is equal to

Sum of all the numbers up to 1000 – (Sum of all the numbers divisible by 2 up to 1000 + Sum of all the numbers divisible by 5 up to 1000 – Sum of all the numbers up to 1000 which are divisible by both 2 and 5).

Sumofno.snotdivisibleby(2,5)=500500(250500+10050050500)=500500300500=200000

Final Answer: The sum of all the numbers less than 1000, which are neither divisible by 5 nor by 2 is 200000.


flag
Suggest Corrections
thumbs-up
43
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Heat Capacity
CHEMISTRY
Watch in App
Join BYJU'S Learning Program
CrossIcon