Find sum of inverse of the divisors when sum of divisors and the number is given | Function to return the sum of inverse of divisors ; Calculating the answer ; Return the answer ; Driver code ; Function call
function SumofInverseDivisors ( N , Sum ) { let ans = ( Sum ) * 1.0 / ( N ) ; return ans ; } let N = 9 ; let Sum = 13 ; document . write ( SumofInverseDivisors ( N , Sum ) . toFixed ( 2 ) ) ;