In a binary abacus, each column holds a number of beads equivalent to the place-value of that column. So, assuming you have a four-bit abacus, the leftmost column would hold 8 beads, and the rightmost column would hold 1 bead. Here is a quick video for further explanation: https://www.youtube.com/watch?v=okF9_LzkMi4. Given the number of bits, or columns, in such a system, is there a way to find the number of ways $n$ beads could be placed among the columns. For example, if you have 1 bead (representing the number 1), there would be 4 ways to place it among the 4 columns in the 4-bit abacus. I found a way to represent the constraints of the system:
$1 \le n \le 15$
$0 \le x \le 8$
$0 \le y \le 4$
$0 \le z \le 2$
$0 \le w \le 1$
$x + y + z + w = $n$ $
where $n$, $x$, $y$, $z$, $w$ are integers and $x$, $y$, $z$, $w$ represent the number of beads in each column from left to right.
Is there a concrete formula that can solve such a problem?