Say I have a $K$-component alloy system, where the $K$ components are chosen from $N$ possible metal elements ($N>K$), and the concentration of each component always ranges from $a$% to $b$% (only consider integer percentages). Two alloys are considered to be different if any metal content differs by 1%. If we don't distinguish the arrangement of the components (i.e. the order doesn't matter), what is the total number of unique alloy compositions?
For now I only know if we assume the concentrations of all compoenents are always equal, the total number of unique alloy compositions is $\displaystyle{N \choose K} = \frac{N!}{(N-K)!K!}$. But how should we take into account the percentage constraint?
Edit: To make a component considered as "exists" in the alloy, obviously it has to be at least having a percentage of 1%, thus we always have $K−1 \le a \le b \le 100−K+1$.
To give you some idea: let's say $K=3,a=2,b=98$, the first component can take a percentage equal to $2,3,\ldots,98$, but when the first component takes a percentage of 98% for example, the other two components have to both take a percentage of 1%.