Computer Science, asked by sajib148525, 5 months ago

Write a program that accepts an integer n and returns the value nc1 + nc2 + nc3 +....ncn (using 3 functions )? solve by c code.​

Answers

Answered by omsingh909784
0

Explanation:

Following are common definition of Binomial Coefficients.

A binomial coefficient C(n, k) can be defined as the coefficient of X^k in the expansion of (1 + X)^n.

A binomial coefficient C(n, k) also gives the number of ways, disregarding order, that k objects can be chosen from among n objects; more formally, the number of k-element subsets (or k-combinations) of an n-element set.

Given two numbers n and r, find value of nCr

Examples :

Input : n = 5, r = 2

Output : 10

The value of 5C2 is 10

Input : n = 3, r = 1

Output : 3

Similar questions