The vending machine is broken and accidentally dispensed 14 (identical) chocolate bars. How many ways can you share them between your 5 closest friends and yourself (without any restrictions)?
There are a total of six possible recipients. Let $x_i$, $1 \leq i \leq 6$, be the number of chocolate bars received by the $i$th person. Since $14$ identical chocolate bars are to be distributed to those six people without restriction,
$$x_1 + x_2 + x_3 + x_4 + x_5 + x_6 = 14 \tag{1}$$
is an equation in the nonnegative integers. A particular solution of equation 1 in the nonnegative integers corresponds to the placement of five addition signs in a row of $14$ ones. For instance,
$$1 1 1 + 1 1 + 1 1 1 + 1 1 1 1 + 1 1 +$$
corresponds to the solution $x_1 = 3, x_2 = 2, x_3 = 3, x_4 = 4, x_5 = 2, x_6 = 0$. The number of possible distributions is the number of solutions of equation 1 in the nonnegative integers, which is
$$\binom{14 + 6 - 1}{6 - 1} = \binom{19}{5}$$
since we must select which five of the nineteen positions required for fourteen ones and five addition signs will be filled with addition signs.
How many ways can you share these 14 bars, if each of you is to get at least one?
Method 1: Give each person a chocolate bar. Let $x_i$ be the number of remaining chocolate bars the $i$th person receives. Since six of the $14$ bars have already been distributed, $14 - 6 = 8$ remain. Since the remaining eight chocolate bars can be distributed without restriction,
$$x_1 + x_2 + x_3 + x_4 + x_5 + x_6 = 8 \tag{2}$$
is an equation in the nonnegative integers. The number of possible distributions is the number of solutions of equation 2 in the nonnegative integers, which is
$$\binom{8 + 6 - 1}{6 - 1} = \binom{13}{5}$$
since we must select which five of the thirteen spaces required for eight ones and five addition signs will be filled with addition signs.
Method 2: Since $14$ identical chocolate bars are to be distributed to those six people so that each person receives at least one,
$$x_1 + x_2 + x_3 + x_4 + x_5 + x_6 = 14 \tag{3}$$
is an equation in the positive integers. A particular solution in the positive integers corresponds to the placement of five addition signs in the $13$ spaces between successive ones in a row of $14$ ones.
$$1 \square 1 \square 1 \square 1 \square 1 \square 1 \square 1 \square 1 \square 1 \square 1 \square 1 \square 1 \square 1 \square 1$$
For instance, if we fill the second, fourth, fifth, ninth, and twelfth spaces with addition signs, we obtain
$$1 1 + 1 1 + 1 + 1 1 1 1 + 1 1 1 + 1 1$$
which corresponds to the solution $x_1 = 2, x_2 = 2, x_3 = 1, x_4 = 4, x_5 = 3, x_6 = 2$. The number of possible distributions is the number of solutions of equation 3 in the positive integers, which is the number of ways we can select which five of the thirteen spaces between successive ones will be filled with addition signs, namely
$$\binom{14 - 1}{6 - 1} = \binom{13}{5}$$
How many ways can you share these 14 bars, if each of you is to get at least two?
Give each person two chocolate bars. Since there are six people, that leaves $14 - 6 \cdot 2 = 2$ chocolate bars left to be distributed without restriction.
Method 1: Let $x_i, 1 \leq i \leq 6$, be the number of remaining chocolate bars the $i$th person receives. Since the remaining two chocolate bars can be distributed without restriction,
$$x_1 + x_2 + x_3 + x_4 + x_5 + x_6 = 2 \tag{4}$$
is an equation in the nonnegative integers. Can you proceed?
Method 2: As Henry observed in the comments, either one of the six people will receive both of the additional chocolate bars or two people will receive one additional chocolate bar each. Can you proceed?