Sum of product of r and rth Binomial Coefficient ( r * nCr ) | CPP Program to find sum of product of r and rth Binomial Coefficient i . e summation r * nCr ; Return summation of r * nCr ; Driven Program
#include <bits/stdc++.h> NEW_LINE using namespace std ; #define MAX  100 NEW_LINE int summation ( int n ) { return n << ( n - 1 ) ; } int main ( ) { int n = 2 ; cout << summation ( n ) << endl ; return 0 ; }