In the general form of the stair climbing problem, you must find the number of ways to climb $n$ stairs in jumps taken from a fixed set of sizes.
In the answers I have seen, the solution is computed recursively. But it seems to me that this problem is similar to the classic balls and bins problem of computing the number of solutions to an equation of the form $x_1 + x_2 + \dots + x_m = n$, where each $x_i \ge 0$ and $n \ge 0$.
The solution to this balls and bins problem is ${n + m - 1}\choose{n}$.
Can this formulation be used to solve the stair-climbing problem? That is, is the number of solutions to the stair climbing problem equal to the number of solutions to $a_1x_1 + \dots + a_mx_m = n$ ?
And is that number of solutions equal to ${n + a_1 + \dots + a_m - 1}\choose{n}$ ?
Why or why not?