Once there were two friends Kalash and Rajdeep. They decided to give a pizza party. Kalash took the responsibility of inviting people and Rajdeep took the responsibility of ordering pizza. But they forgot to discuss and decide upon the number of people and thus, the number of pizzas to be ordered!
Now, Kalash invited 576 people to the party, while Rajdeep bought just 484 pizzas. This was a big problem.
Fortunately, there was an intelligent mind present in the party, the great Harsh. He used his great wit and in a few seconds gave the solution to this problem. He presented a number x and said that x is the the minimal number of pieces of pizza that they should cut up the 484 pizzas into, such that the 576 people can each receive the same quantity of pizza.
Find x .
As an explicit example, we can split the pizzas into 4 8 4 × 5 7 6 equal slices, and distribute them so that everyone receives the same quantity of pizza.
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.
@Vaibhav Prasad Nice question, but I have one concern about the wording. At the end, the goal is that each person should be receiving the same quantity of pizza, and this may not necessarily involve each person receiving the same number of pieces, as the pieces may be of many different sizes. So I would suggest that the wording prior to "Find x " be changed to
"... the minimal number of pieces of pizza that they should have so that each person receives the same quantity of pizza."
Log in to reply
let the pizza div into x pieces and each person get y pieces
the total no of pieces=484x
sum of all pieces each person gets=576y
then ..484x=576y
121/144=y/x
hence ..pizza has to be div into 144 pieces and each gets 121 pieces...
plz tell where i'm wrong in approach..
Log in to reply
That strategy would work, but it would involve a total of 1 4 4 ∗ 4 8 4 = 6 9 6 9 6 pieces, and we are being asked to accomplish this equal distribution with as few pieces as possible. If all the pieces had to be the same size then your answer would be correct, but since this is not a given condition then we can cut them to any size we find convenient. This leads to to the answer of 1 0 5 6 pieces.
Is there any way to determine the exact ratios that each pizza must be split up into? My (faulty) solution involved finding the egyptian fraction notation of 5 7 6 4 8 4 :
5 7 6 4 8 4 = 2 1 + 3 1 + 1 4 4 1
If every person receives 2 1 , 3 1 , and 1 4 4 1 of a pizza then they will be receiving 5 7 6 4 8 4 of the whole. 3 × 5 7 6 = 1 7 2 8 , which is obviously more than the solution of 1056. Am I on the right track, or is finding the actual ratios more difficult a task?
Problem Loading...
Note Loading...
Set Loading...
There is a formula for this type of question: to divide M (continuously divisible) items evenly amongst N groups requires that the M items be divided, as a whole, into a minimum of M + N − g c d ( M , N ) pieces.
In this case we have M = 4 8 4 , N = 5 7 6 , giving an answer of
4 8 4 + 5 7 6 − g c d ( 4 8 4 , 5 7 6 ) = 1 0 6 0 − g c d ( 2 2 1 1 2 , 2 6 3 2 ) = 1 0 6 0 − 2 2 = 1 0 5 6 .
The proof of this formula requires a bit of graph theory. Suppose we have a bipartite graph with disjoint sets of M and N vertices, in this case representing the number pizzas and persons, respectively. The number of pieces then corresponds to the number of edges in the graph. Each of the N persons gets a total of N M = B A pizzas, where the fraction on the right is in reduced form, i.e., M = A ∗ g c d ( M , N ) and N = B ∗ g c d ( M , N ) .
Now each (self-contained) component, ("tree"), of the graph represents a complete dissolution of an integer number of pizzas amongst an integer number of persons and thus involves a minimum of A pizzas and B persons. Our graph will then have at most g c d ( M , N ) components, and thus at least M + N − g c d ( M , N ) edges, or pieces. So this is the theoretical minimum; the next question is whether this minimum is achievable.
The answer is: yes, this minimum can be achieved. If we were to imagine the pizzas being lined up in a row, and then each person in turn being given B A pizzas by making whatever cuts necessary to the pizzas as we move along the row, then after B persons have been served we will have used up A pizzas. This sequence is then repeated g c d ( M , N ) times, in essence creating a bipartite graph of this many components and thus M + N − g c d ( M , N ) edges, or pieces. So the theoretical minimum is achievable.