- #1
majestrooo
- 7
- 0
Homework Statement
In how many ways can we create the sum
k = x_1 + x_2 + ... + x_n
where each x_i is either 1 or 2 with repetitions allowed. n <= k <= 2n
For example
n = 4
k = 5
1+1+1+2
1+1+2+1
1+2+1+1
2+1+1+1
are four ways.
Homework Equations
Is this solving the number of multisets (bags) and ordering them?
The Attempt at a Solution
A few failed attempts :(