Pizza War 3

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 x and said that x 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 x .


As an explicit example, we can split the pizzas into 484 × 576 484 \times 576 equal slices, and distribute them so that everyone receives the same quantity of pizza.


The answer is 1056.

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.

1 solution

There is a formula for this type of question: to divide M M (continuously divisible) items evenly amongst N N groups requires that the M M items be divided, as a whole, into a minimum of M + N g c d ( M , N ) M + N - gcd(M,N) pieces.

In this case we have M = 484 , N = 576 , M = 484, N = 576, giving an answer of

484 + 576 g c d ( 484 , 576 ) = 1060 g c d ( 2 2 1 1 2 , 2 6 3 2 ) = 1060 2 2 = 1056 . 484 + 576 - gcd(484,576) = 1060 - gcd(2^{2}11^{2}, 2^{6}3^{2}) = 1060 - 2^{2} = \boxed{1056}.

The proof of this formula requires a bit of graph theory. Suppose we have a bipartite graph with disjoint sets of M M and N 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 N persons gets a total of M N = A B \frac{M}{N} = \frac{A}{B} pizzas, where the fraction on the right is in reduced form, i.e., M = A g c d ( M , N ) M = A*gcd(M,N) and N = B g c d ( M , N ) N = B*gcd(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 A pizzas and B B persons. Our graph will then have at most g c d ( M , N ) gcd(M,N) components, and thus at least M + N g c d ( M , N ) M + N - gcd(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 A B \frac{A}{B} pizzas by making whatever cuts necessary to the pizzas as we move along the row, then after B B persons have been served we will have used up A A pizzas. This sequence is then repeated g c d ( M , N ) gcd(M,N) times, in essence creating a bipartite graph of this many components and thus M + N g c d ( M , N ) M + N - gcd(M,N) edges, or pieces. So the theoretical minimum is achievable.

@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 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."

Brian Charlesworth - 6 years ago

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..

Abhishek Nigam - 6 years ago

Log in to reply

That strategy would work, but it would involve a total of 144 484 = 69696 144*484 = 69696 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 1056 1056 pieces.

Brian Charlesworth - 6 years ago

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 484 576 \frac{484}{576} :

484 576 = 1 2 + 1 3 + 1 144 \frac{484}{576} = \frac{1}{2}+\frac{1}{3}+\frac{1}{144}

If every person receives 1 2 \frac{1}{2} , 1 3 \frac{1}{3} , and 1 144 \frac{1}{144} of a pizza then they will be receiving 484 576 \frac{484}{576} of the whole. 3 × 576 = 1728 3\times576=1728 , 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?

Garrett Clarke - 5 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...