1
$\begingroup$

I'm trying to solve a two part question:

a) What's the probability that a given composition of $n$ has a first part $1$

b) What's the probability that a randomly selected composition of $n$ has a second part and the second part is $1$

For a) I have that:

$$P(a) = \frac{|E|}{2^{n-1}}$$ where |E| is the number of compositions with a first part of one. I'm thing $|E|$ is ${n \choose1}\cdot{n-1 \choose k-1}$. Since we want to choose $1$ element for the first part and any variation of the rest of the elements. This is using set partitions which I'm not sure is right.

For the second part I'm not entirely sure. Any hints would be greatly appreciated!

$\endgroup$
1
$\begingroup$

For a) if a composition of $n$ has first part $1$, the rest is a composition of $n-1$. So if $C(n)$ is the number of compositions of $n$ you want $\frac {C(n-1)}{C(n)}$. For b) you need to delete the compositions that have $n$ as the first (and only) element and apply a)

$\endgroup$
1
$\begingroup$

Call a composition with first part $1$ good. A composition of $n-1$ can be uniquely extended to a good composition of $n$ by putting a $1$ in front. Thus there are $2^{n-2}$ good compositions of $n$.

For the second part, apart from the composition into $1$ part, all the others yield to the same argument as the one above. In compositions with at least $2$ parts, there is no effective difference between being first and being second.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.