Quote:
|
Originally Posted by khanna_sumit
(1).
method is same 300/2 + 300/3 + 300/5 - 300/6 - 300/10 - 300/15 + 300/30
= 220 numbers upto 300 are divisible by 2,3 or 5. means 80 are not divisible.
Similarly from 1 to 100, 26 are not divisible by 2,3 or 5. hence answer is
80-26 =54.
|
Be careful here. I think you mean 1 to 99 and not 1 to 100. But anyway correct answer.
Quote:
(2). It depends on that how many times digit 6 occurs at unit's, ten's or hundred's place. that happend 34 times for each of the places. at unit's place this change from 6 to 9 yields an increase of 3, at ten's place of 30 and at hundred'd place of 300. so total change is 34(3+30+300).
(3) let m be the number of men and n be the number of cakes consumed in first hour.
so by given conditions
mn + (m+6)(n-5) + (m+12)(n-10) + (m+18 )(n-15) + (m+24)(n-20) = 545
solving we get
mn + 12n - 10m = 289
or (m+12)(n-10) = 169 possible only for (m+12) = 13 and (n-10) = 13.
m = 1; n=23.
so in 4th hour. (m+18 )(n-15) = 19*8 = 152.
|
Perfect. Hope others got this too.
Another way of doing 3 is to take hour 3 men as x and cakes per men as y. So we get (x-12)(y+10) + (x-6)(y+5) + xy + (x+6)(y-5) + (x+12)(y-10) = 545.
This method would be lot easier on calculations.
Cheers
Amit