I understand the difference between permutation and combination. But how is composition different from combination ?
Edit: I am referring to this Composition
I understand the difference between permutation and combination. But how is composition different from combination ?
Edit: I am referring to this Composition
Perhaps what you are looking for is how to find the number of compositions of $n = 8,\;$ say.
Take a string of eight 1's enclosed in parentheses, (11111111)
Now place either a +, or a special symbol,$\;$ )+($\;$ between the 1's, e.g.
(1+1)+(1+1+1)+(1)+(1+1)
Since you have $2$ choices for each gap between the $1's,$ # of compositions = $2^{n-1}$
Compositions are permuted integer partitions. They are integer partitions with considering the order of the parts.