pharmxanthan wrote:amising6 wrote:francoisph wrote:In a class of 120 students numbered 1 to 120, all even numbered students opt for Physics, whose numbers are divisible by 5 opt for Chemistry and those whose numbers are divisible by 7 opt for Math. How many opt for none of the three subjects?
basically you need to find number between 1 to 120 which are not divisible by 2,5,7
there is a straight formula for that
number=120(1-1/2)(1-1/5)(1-1/7)
120*1/2*4/5*6/7
=(12*4*6)/7=288/7=41 ignore remainder
Thanks amising6 for the formula. How does the formula work? Where did you find the formula? I am interested to know the logic behind the formula....
let start by the simple concept
c if you take number 1,2,3,4,5,6,7,8,9,10 and find number divisible by 5 .now every 5 th number in this will be divisible by 5
so in number 1 to 10 2 number i.e 5,10 will be divisible by 5 .
so how many number wont be divisible by 5 =10(1-1/5)=8 so 8 number not divisible by 5
now let us extend the concept first find out all teh number divisible by 2 1.e 10(1/2)=5 now if there will be 5 number which is not divisble by 2 and u get from 10(1-1/2)=5