TITLE: Given 10 white, 9 green and 7 black. In how many ways you can select one or more balls?
QUESTION [8 upvotes]: Question
Assuming the balls to be identical except for difference in colours, the number of ways in which one or more balls can be selected from 10 white, 9 green and 7 black balls is?
Answer in book is $(10+1)(9+1)(7+1)-1 = 880-1=879$
I don't understand the answer
What I have understood and what I have done
The question is asking that out of the balls given in how many ways I can select one ball + in how many ways I can select two balls + . . . + in how many ways I can select 25 balls + in how many ways I can select 26 balls.
One ball can be selected in 3 ways i.e. either you select green, white or black ball.
Two balls can be selected in 3+3=6 ways i.e. either you select two green or two black or two white or one green one black or one green one white or one black one white.
Only this much I can do.
I don't know how to write this in terms of combination. So please help me with this.

REPLY [10 votes]: Your question is similar to finding the number of divisors of a number of the form $$\color{blue}{a^{10}b^9c^7}$$ other than $\color{red}{1}$, where $a,b,c$ are primes. Because $1$ only appears in that case when none of white, green or black balls are selected (i.e. none of $a,b$ and $c$ is included into the factors), which is prohibited; you have to choose at least $1$ ball.
So, of course, this can be done in $$(10+1)(9+1)(7+1)-\color{red}{1}$$ ways.