Function to calculate the number of trees in which the root has degree r .
function rootDegreeR ( n , r ) { let ans = r * binomialCoeff ( 2 * n - 1 - r , n - 1 ) ; ans = parseInt ( ans / n , 10 ) ; document . write ( " " + " " + " " + ans + " " ) ; return 0 ; }