Number of pairs with a given sum


This is a companion discussion topic for the original entry at http://iq.opengenus.org/pairs-with-certain-sum/