m 元 n 次式的每一项(同类项)都是以下形式: product(x_i ^ k_i, i=1 to m), where x_i 's are the variables and k_i 's are the powers with k_i >=0 and sum(k_i, i=1 to m) <= n . Easy to see that a unique feasible (k1, k2, ... k_m) vector corresponds to a unique term. Therefore # of feasible vectors (k1, k2, ..., k_m) subject to k_i >=0, sum(k_i) <=n is exactly the # of terms requested. www.ddhw.com Furthermore, let (w1, w2, ..., w_m) be a vector of increasing positive numbers chosen from {1, 2, 3,..., m+n}, subject to: 0 The mapping: k_i := w_i - w_(i-1) - 1 is apparently 1-1, and it satisfies: k_i>=0 and sum(k_i, i=1 to m) = sum( w_i - w_(i-1) -1, i=1 to m) = w_m - w0 -m = w_m - m <= m+n-m=n. Therefore, the k_i 's will form a feasible vector. And for every feasible vector (k_i), the reverse mapping is obvious. www.ddhw.com Therefore the # of terms = the # of choices of m out from m+n numbers = C(m, m+n). |