A local grocery store in the outback newly opened. They were offering 1 free bottle Marmite to every 1 1 th customer and 1 free pound of kangaroo meat for every 1 3 th customer. If there were 1000 customers that visited them on opening day, how many customers walked away with free goodies?
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.
I got this problem wrong because I misread it as "how many goodies were given away?", but here's my simulation:
Python 2.7:
1 2 3 4 5 6 7 8 9 10 |
|
Thanks for the laugh.
CORRECT !!
Why we use floor value here ??
Since I dislike messy arithmetic, I will assume that there were 1001 customers; recall that 1 0 0 1 = 7 × 1 1 × 1 3 . Now 1 1 1 0 0 1 = 7 × 1 3 = 9 1 got the Marmite, 7 × 1 1 = 7 7 got the kangaroo meat, and 7 got both, so that 9 1 + 7 7 − 7 = 1 6 1 walked away with at least one gift. But there was no 1001th customer, so the answer is 160.
Oh, that's a nice approach!
I love the way you think, Otto !!
Where did you get the 7 from?
This is a simple question, First we can find how many multiples of 11 & 13 are there less than 1000 by A.P The largest multiple of 11 less than 1000 is 990 , and the smallest is 11 so by applying a n = a + (n-1)d we can find n = 90 . By the same method we can find for 13 as well which will come out to be n= 76 Now we find the multiples common to 11 & 13 that is multiples of 143 , by using a= 143 and L = 858 Which comes out to be n=6 Now putting all in the formula we get, 90+ 76 -6 = 160
Problem Loading...
Note Loading...
Set Loading...
The number of people who received free Marmite is m = ⌊ 1 1 1 0 0 0 ⌋ = 9 0 .
The number of people who received free kangaroo meat is k = ⌊ 1 3 1 0 0 0 ⌋ = 7 6 .
But the question asks for how many customers received free goodies; we can't double count those who received both Marmite and kangaroo meat. This number of customers is d = ⌊ 1 1 × 1 3 1 0 0 0 ⌋ = 6 .
So the number of customers with free goodies is f = 9 0 + 7 6 − 6 = 1 6 0