My friend Ashish and I were counting numbers up to 1000. He counted multiples of 3 up to 1000, that is 3, 6, 9, ... 999. I counted multiples of 5, that is 5, 10, 15, ... 1000. How many numbers had we together counted, if a number could only be counted once?
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.
Nice question and solution(+1) thanks!!
Using A.P.
Ashish counted multiples of 3.
⇒ 3 , 6 , 9 , . . . , 9 9 9
Total numbers counted by Ashish is:
9 9 9 = 3 + ( n 1 − 1 ) 3
n 1 = 3 3 3
I (Abhay) counted multiples of 5.
⇒ 5 , 1 0 , 1 5 , . . . 1 0 0 0
Total numbers counted by me:
1 0 0 0 = 5 + ( n 2 − 1 ) 5
n 2 = 2 0 0
Now, Identical numbers counted by me and Ashish.
These are multiple of 15.
⇒ 1 5 , 3 0 , 4 5 , . . . 9 9 0
9 9 0 = 1 5 + ( n 3 − 1 ) 1 5
n 3 = 6 6
So, Total numbers counted by me and Ashish are 2 0 0 + 3 3 3 − 6 6 = 4 6 7 .
This question was made for you also. ;)
Typo: 9 9 0 = 1 5 + ( n 3 − 1 ) 1 5
Problem Loading...
Note Loading...
Set Loading...
Numbers encountered by Ashish ⟹ 3 , 6 , 9 , 1 2 , … , 9 9 9
Total numbers encountered= 3 3 3
Numbers encountered by me ⟹ 5 , 1 0 , 1 5 , … , 1 0 0 0
Total numbers encountered= 2 0 0
Common numbers encountered by both of us will be the multiples of 1 5 as we have 3 × 5 = 1 5
Total multiples of 1 5 t i l l 1 0 0 0 ⟹ 1 5 , 3 0 , 4 5 , . . . , 9 9 0 = 6 6
As we both will count these 66 numbers they have to be removed once.
So, Total numbers encountered by both of us provided that number is counted once = 3 3 3 + 2 0 0 − 6 6 = 4 6 7