Number of Solutions of a Linear Equation

Rarely Tested

Number of Solutions of a Linear Equation

## Formula

For non-negative integer solutions of:

$$x_1+x_2+\cdots+x_n=r$$

the number of solutions is:

$${}^{r+n-1}C_{n-1}$$

For positive integer solutions:

$${}^{r-1}C_{n-1}$$

## Usage

- Used to solve counting problems by interpreting variables as numbers of objects assigned to different groups.

No related questions available for this formula yet.

Go back to topics

Join CAT 2026 course by 5-Time CAT 100%iler

Start your IIM journey with the right preparation and crack CAT 2026.