0

Is there a formula or perhaps an automatic calculator online (or a method in excel) by which I can calculate the total number of combinations one can pick of all sizes from a set of n items?

i.e. if n = 4, I would like the quantity of values from r=1 to r=4 (which works out to 15, but I need a formula or computational method to do it automatically for any value of n.

user1299028
  • 211
  • 2
  • 9
  • 2
    Do you mean $\sum_{i=0}^n \binom ni$? That's just $2^n$. (if you want the sum to start at $i=1$ it's $2^n-1$, as in $2^4-1=15$). This follows from the binomial theorem (or from counting the subsets of ${1,\cdots, n}$) – lulu Jan 04 '17 at 20:21
  • How did I not think of that....so elegant and straightforward. Put it into an answer if you wish so I can mark as best. – user1299028 Jan 04 '17 at 20:33

0 Answers0