what is the number of integer solutions to $$x_1+x_2+x_3+x_4+x_5=18$$ with $$x_1\ge1\;\;\;x_2\ge2\;\;\;x_3\ge3\;\;\;x_4\ge4\;\;\; x_5\ge5$$
I know I have to use this formula $$\frac{(n+r-1)!}{(n-1)!\;r!}= {{n+r-1}\choose r}$$
My instinct says that I should use $n=18-1-2-3-4=18-15=3$ and $r=5$ but I m not sure it makes sense?
Anyone can help me please?
We can simply give the required value to each pirate before counting. We don’t have any choice for them, so there is exactly one way to do this. Then, we distribute the remaining $18-5-4-3-2-1=3$ bars among the pirates.
This gives $$\dbinom{3+5-1}{3}=\dbinom{7}{3}$$
Edit:
Given $$x_1+x_2+x_3+x_4+x_5=18$$and $$x_1\ge1\;\;\;x_2\ge2\;\;\;x_3\ge3\;\;\;x_4\ge4\;\;\; x_5\ge5$$ Let $$y_1 = x_1 − 1, y_2 = x_2 − 2, y_3 = x_3 − 3, y_4 = x_4 − 4, y_5 = x_5 − 5$$ $$x_1+x_2+x_3+x_4+x_5=18$$$$(y_1 + 1) + (y_2 + 2) + (y_3 + 3) + (y_4 + 4) + (y_5 + 5) =18$$$$y_1 + y_2 + y_3 + y_4 + y_5 + y_6 = 3$$ There are $\dbinom{3+5-1}{3}=35$ solutions