Count of distinct pair sum between two 1 to N value Arrays | Function to find the distinct sums ; Driver code
function findDistinctSums ( N ) { return ( 2 * N - 1 ) ; } let N = 3 ; document . write ( findDistinctSums ( N ) ) ;