Number of distinct terms in (x_1+\cdots+x_k)^n (Stars-and-bars: weak compositions of n into k parts)

jee-advancedjee-main

Stars-and-bars: weak compositions of n into k parts

What each symbol means

SymbolWhat it stands for
kNumber of summands
nTotal degree

When to use this

Like terms collected; nonnegative integer exponents.