In a barter economy with N products, the number of possible barter combinations is the number of pairs of products to exchange, considering that the exchange is bilateral without a preferred direction. It corresponds to the number of ways to choose 2 products from N:
N X (N-1) / 2
For example, for 100 products, 100X99/2=4 950