Represent ( 2 / N ) as the sum of three distinct positive integers of the form ( 1 / m ) | Function to find the required fractions ; Base condition ; For N > 1 ; Driver code
function find_numbers ( N ) { if ( N == 1 ) { document . write ( - 1 ) ; } else { document . write ( N + " " + ( N + 1 ) + " " + ( N * ( N + 1 ) ) ) ; } } var N = 5 ; find_numbers ( N ) ;