Sum of product of r and rth Binomial Coefficient ( r * nCr ) | Javascript Program to find sum of product of r and rth Binomial Coefficient i . e summation r * nCr ; Return summation of r * nCr ; Driven Program
var MAX = 100 function summation ( n ) { return n << ( n - 1 ) ; } var n = 2 ; document . write ( summation ( n ) ) ;