Eulerian Number | Return eulerian number A ( n , m ) ; Driver code
function eulerian ( n , m ) { if ( m >= n n == 0 ) return 0 ; if ( m == 0 ) return 1 ; return ( n - m ) * eulerian ( n - 1 , m - 1 ) + ( m + 1 ) * eulerian ( n - 1 , m ) ; } let n = 3 , m = 1 ; document . write ( eulerian ( n , m ) ) ;