Q:

Four friends ordered a pizza cut into eight slices. The whole pizza was eaten, with each friend eating a different number of slices. If no slice was divided, and no friend ate more than the other three put together, how many slices did each friend eat?

Accepted Solution

A:
Answer:{0,1,3,4}Step-by-step explanation:Given, total no of slices=8.Total no of friends=4.also each friend didnt ate more than the other three.let a,b,c,d be no of slices ate by the friends 1,2,3,4 respectively.given sum of a+b+c+d=8.now applying the second condition [tex]a\leq b+c+d \\b\leq c+d+a\\c\leq a+b+d\\d\leq a+b+c[/tex]so each of a,b,c,d must be less than or equal to 4.which means 5 values are possible{0,1,2,3,4}.from this set you have to select 4 values such that their sum is 8.hence, those values are {0,1,3,4}.