Maximum LCM among all pairs ( i , j ) of first N natural numbers | Function to return the maximum LCM among all the pairs ( i , j ) of first n natural numbers ; Driver code
function maxLCM ( n ) { return ( n * ( n - 1 ) ) ; } var n = 3 ; document . write ( maxLCM ( n ) ) ;