5 Burgers and Fries

There are 5 people at a restaurant and every dish at the restaurant is ordered by exactly 3 people (there is at least one dish). It is also known that every pair of people ordered k k common dishes for some number k k . Find the minimum number of dishes for which this is possible.


The answer is 10.

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.

2 solutions

Alan Yan
Nov 26, 2016

Suppose there are n n dishes. Consider a n × 5 n \times 5 table where the rows represent the dishes and the columns represent the people. In cell ( i , j ) (i,j) , place a 1 1 if person j j ordered dish i i and place a zero otherwise. We will double count M \mathcal{M} , the number of pairs of 1 1 in the same row. Since each row has 3 3 ones, M = n ( 3 2 ) \mathcal{M} = n \binom{3}{2} . Since every pair of people ordered k k common dishes, M = k ( 5 2 ) \mathcal{M} = k \binom{5}{2} . So n ( 3 2 ) = k ( 5 2 ) 3 n = 10 k . n \binom{3}{2} = k \binom{5}{2} \implies 3n = 10k. Since n , k n,k are both positive integers, the minimal value would be n = 10 , k = 3 \boxed{n = 10}, k = 3 . A construction is as shown: ( 1 1 1 0 0 1 1 0 1 0 1 1 0 0 1 1 0 1 0 1 1 0 1 1 0 1 0 0 1 1 0 1 1 0 1 0 1 1 1 0 0 1 0 1 1 0 0 1 1 1 ) \begin{pmatrix} 1 & 1 & 1 & 0 & 0\\ 1 & 1 & 0 & 1 & 0 \\ 1 & 1 & 0 & 0 & 1 \\ 1 & 0 & 1 & 0 & 1 \\ 1 & 0 & 1 & 1 & 0 \\ 1 & 0 & 0 & 1 & 1 \\ 0 & 1 & 1 & 0 & 1 \\ 0 & 1 & 1 & 1 & 0 \\ 0 & 1 & 0 & 1 & 1 \\ 0 & 0 & 1 & 1 & 1 \end{pmatrix}

Argh. For some reason I thought you were asking for the minimum value of k k rather than the minimum number of dishes. :( Anyway, nice question. My approach was to look at a circle with 5 points on it. Each of the dishes could then be represented as a triangle with 3 of these points as vertices. By drawing all of the 10 possible triangles we have each pair ordering 3 common dishes, so n 10 , k 3 n \le 10, k \le 3 . Clearly k 1 k \ne 1 , and it's clear "by symmetry" that k 2 k \ne 2 , (need to be more formal here, of course).

Brian Charlesworth - 4 years, 6 months ago

It is probably worth noting that this minimal construction is where the 10 10 sets of three elements corresponding to the guests that order each of the 10 10 dishes are precisely the collection of all subsets of size 3 3 of a set of size 5 5 ; it is then clear that every two guests belong to precisely 3 3 such triples (just pick one of the other three guests to make up a triple). This shows that n = 10 n=10 , k = 3 k=3 is fine, without the need to write it all down!

Mark Hennings - 4 years, 6 months ago

Nice way to present the information using a incidence matrix .

Calvin Lin Staff - 4 years, 6 months ago

How about D1-123, D2-234, D3-345, D4-451, D5-512? That's only 5 dishes for 5 people, each dish shared by k=3 people.

Krishnan Gangadhar - 4 years, 6 months ago

Log in to reply

Unfortunately, your construction doesn't satisfy the given conditions. Note that it's not "shared by k=3 people", but that it's "every pair of people ordered k common dishes".

What are the common dishes ordered by pairs 1-2 and 1-4?

Calvin Lin Staff - 4 years, 6 months ago

That would've been a better construction. But in my construction I've hidden a secret message for brilliant members to decode. Can you figure it out?

Alan Yan - 4 years, 6 months ago
Kushal Bose
Nov 28, 2016

Consider 5 people are P = ( p 1 , p 2 , p 3 , p 4 , p 5 ) P=(p_1,p_2,p_3,p_4,p_5)

Consider there are n n dishes such as D = ( d 1 , d 2 , d 3 , . . . . . . . . . , d n ) D=(d_1,d_2,d_3,.........,d_n) .

So,there is a mapping between f : P D f: P \rightarrow D where f ( p i ) = d j f(p_i)=d_j for some i , j i,j .Now we will consider the lines by which p i s , d j s p_i's,d_j's are connected.According to the question each dish d i d_i is exactly ordered by 3 3 people.So from each dish there will be 3 3 edges which will connected to P P side.So,total no of lines/edges 3 n 3n .

Now each pair p i , p j p_i,p_j has k k dishes in common.Let p i p_i ordered d 1 d_1 i.e. f ( p i ) = d 1 f(p_i)=d_1 and also p j p_j ordered d 1 d_1 i.e. f ( p j ) = d 1 f(p_j)=d_1 .Each common dish will shares 2 2 edges.So for k k common dishes there will be 2 k 2k edges.Total number of pairs

( 10 2 ) = 10 {10 \choose 2}=10 .Total edges 10 × 2 k = 20 k 10 \times 2 k=20 k .

Consider a pair p i , p j p_i,p_j both of them order a common dish d 1 d_1 .So an edge is counted from p i p_i to d 1 d_1 and another an edge p j p_j to d 1 d_1 .Again consider another pair p i , p k p_i,p_k both of them orders a common dish d 1 d_1 (Total three persons ordered dish d 1 d_1 ).So an edge is counted from p i p_i to d 1 d_1 and another edge is counted from p k p_k to d 1 d_1 ..So, in counting the edge p i p_i to d 1 d_1 is counted twice.This will be counted for every edges.So, 3 n 3n edges are counted extra.

20 k 3 n = 3 n 6 n = 20 k 3 n = 10 k 20k-3n=3n \\ \implies 6n=20k \\ \implies 3n=10k .

If minimal k = 1 k=1 then minimal n = 10 n=10

Be careful with the word "mapping". Most people still consider it a single-value function, as opposed to the multi-valued function that you are thinking of.

Apart from showing that n = 10 n = 10 is the lower bound, we also have to show that it can indeed be achieved, in order for it to be the minimum.

Calvin Lin Staff - 4 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...