If I remember correctly, that was combinations, or something like that. The formula is R to the Sterling S, divided by S! so, for 4000 stocks, it would be. (4000 x3999)/2! or, about 8 million pairs made from the 4000 typical stocks. for 3 stocks considered together, there would be 4000 x 3999 x 3998 /3!