The number of partitions of n in which all parts are 1 or 2 is
Similarly how can I formulate the number of compositions formed using 1 or 2.
I could come up with a following series.
then the number of compositions using 1 and 2 are
21 and are given by series
How can I form a formula to calculate the sum of this series ?