What is the sum of natural numbers less than or equals to 100 which are not divisible by 3 or 5?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
SAME METHOD BROTHER!
We will first calculate the sum of the natural numbers which are divisible by 3 or 5 and then we will subtract it by the sum of the first 100 natural numbers. C A S E 1 : The number is divisible by 3 . The numbers are from 3 ∗ 1 − − − 3 ∗ 3 3 a s 3 ∗ 3 4 > 1 0 0 . C A S E 2 : The number is divisible by 5 . The numbers are from 5 ∗ 1 − − − 5 ∗ 2 0 a s 5 ∗ 2 1 > 1 0 0 . Sum of numbers of Case 1 = 3 ( 1 + 2 + . . . 3 3 = 3 ∗ 2 3 3 ∗ 3 4 = 1 6 8 3 . Sum of numbers of Case 2 = 5 ∗ 2 2 0 ∗ 2 1 = 1 0 5 0 . But we have counted some numbers twice which are the multiples of both 3 and 5 . We find them using this: 3 ∗ x = 5 ∗ y . The solutions of this equation are ( 5 , 3 ) ( 1 0 , 6 ) ( 1 5 , 9 ) ( 2 0 , 1 2 ) ( 2 5 , 1 5 ) ( 3 0 , 1 8 ) . This is because the value of 'x' ranges from 1 to 3 3 . Thus,the numbers are: 1 5 , 3 0 , 4 5 , 6 0 , 7 5 , 9 0 . Thus, the sum of the natural numbers which are divisible by 3 or 5 is: 1 6 8 3 + 1 0 5 0 − 1 5 − 3 0 − 4 5 − 6 0 − 7 5 − 9 0 = 2 4 1 8 . Thus,our answer is sum of the first 100 natural numbers-2418= 2 1 0 0 ∗ 1 0 1 − 2 4 1 8 = 2 6 3 2
I did that double calculation
I also did the same but i didn't like the question @Sandeep Bhardwaj , it required lots of calculations..
The sum,
S = 1 + 2 + 4 + 7 + . . . + 9 8
= ( 1 + 2 + 3 + . . . + 1 0 0 ) − ( 3 + 6 + 9 + . . . + 9 9 ) − ( 5 + 1 0 + 1 5 + . . . + 1 0 0 ) + ( 1 5 + 3 0 + 4 5 + 6 0 + 7 5 + 9 0 )
= ∑ n = 1 1 0 0 n − 3 ∑ n = 1 3 3 n − 5 ∑ n = 1 2 0 n + 1 5 ∑ n = 1 6 n
= 2 1 0 0 ( 1 0 0 + 1 ) − 3 ( 2 3 3 ( 3 3 + 1 ) ) − 5 ( 2 2 0 ( 2 0 + 1 ) ) + 1 5 ( 2 6 ( 6 + 1 ) )
= 5 0 5 0 − 1 6 8 3 − 1 0 5 0 + 3 1 5 = 2 6 3 2
I did it the hard way around. I added the numbers one by one(I couldn't resist the temptation of 55 points at once.) 1 + 2 + 4 + 7 + 8 + 11 + 13 + 14 + 16 + 17 + 19 + 22 + 23 + 26 + 28 + 29 + 31 + 32 + 34 + 35 + 2 + 38 + 41 + 43 + 44 + 46 + 47 + 49 + 51 - 51 + 52 + 53 + 56 + 58 + 59 + 61 + 62 + 64 + 67 + 68 + 71 + 73 + 74 + 76 + 77 + 79 + 82 + 83 + 86 + 88 + 89 + 91 + 92 + 94 + 97 + 98=2632 I know I don't deserve the points, but I got the answer.
That is a perfectly acceptable way to find the answer, if time permits!
Problem Loading...
Note Loading...
Set Loading...
Use PIE
Required sum S = n = 1 ∑ 1 0 0 n − ( n = 1 ∑ 3 3 3 n + n = 1 ∑ 2 0 5 n ) + n = 1 ∑ 6 1 5 n = 2 1 ( 1 0 0 ⋅ 1 0 1 − 3 ⋅ 3 3 ⋅ 3 4 − 5 ⋅ 2 0 ⋅ 2 1 + 1 5 ⋅ 6 ⋅ 7 ) as k = 1 ∑ n k = 2 n ( n + 1 ) = 2 6 3 2