How many subsets are there of a set consisting of n elements?

  • Context: Undergrad 
  • Thread starter Thread starter lesdavies123
  • Start date Start date
  • Tags Tags
    Elements Set Subsets
Click For Summary

Discussion Overview

The discussion revolves around the problem of determining the number of subsets of a set consisting of n elements. Participants explore various methods to arrive at the solution, including combinatorial reasoning, induction, and bijections with binary strings.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses confusion over a teacher's explanation linking the summation of binomial coefficients to the expression (1+1)^n, which equals 2^n.
  • Another participant suggests that the number of subsets can be represented as 2n + 1, relating it to binary representations of numbers.
  • Some participants clarify that the correct number of subsets is 2^n, noting that the empty set is already included in this count.
  • Induction is proposed as a method to prove that a set with n members has 2^n subsets, detailing a step-by-step reasoning process.
  • A bijection between subsets and binary strings of length n is mentioned, asserting that each subset corresponds to a unique binary string.
  • Another approach involves defining functions that indicate membership in subsets, leading to the conclusion that the number of subsets equals the number of functions to the set {0,1}.
  • One participant suggests a more minimal approach to defining subsets without needing to explicitly define functions.

Areas of Agreement / Disagreement

Participants generally agree that the number of subsets of a set with n elements is 2^n, although there is some initial confusion and differing representations of the concept. Multiple viewpoints on the reasoning methods remain present.

Contextual Notes

Some participants express uncertainty regarding the transition between summation expressions and their equivalences, indicating potential gaps in understanding the mathematical steps involved.

Who May Find This Useful

This discussion may be useful for students and educators in mathematics, particularly those interested in combinatorics and set theory.

lesdavies123
Messages
16
Reaction score
0
Hi,

So I understand this problem a little, I just can't understand the ending! So saying that we have n elements, we want all the subsets consisting of r elements where r goes from 0 to n.

So we want (n choose 0) + (n choose 1) + ... + (n choose n) which is the summation of n choose r for values of r going from 0 to n. (sorry I don't know how to do the summation symbols). I'm fine so far, but then my teacher said this was equal to = summation of ( n choose r for values of r going from 0 to n ) x (1 exp r) x (1 exp(n-r)). So obviously the 1 exp r and 1 exp(n-r) will always be equal to 1. But this is where I really don't get it, she goes from this great big equation to (1+1)exp n which equals 2 exp n. Can someone please help me with this I know it's something I don't get from the summation, it's the transition I'm missing! Thank you hope the question is comprehensible!
 
Physics news on Phys.org
1) A short answer is 2n + 1. The reason is that every number from 0 to 2n has a unique binomial representation of the string of n 0s and 1s, like 01000101110...0. Each number matches one string and each string matches a subset where 1 in place j means that the j'th element is in the set and 0 means that the j'th element is not in the set. So the number of subsets are matched to all the numbers 0, 1, 2, ... , 2n. That is 2n+1 numbers so there are that many subsets. This is counting both the empty set and the entire set.

2) I don't understand why you say that selecting r out of n gives (r)exp n subsets. Did I read that right? The number of possible combinations of n things taken r at a time is n! / (r! * (n-r)!).
 
FactChecker said:
1) A short answer is 2n + 1. The reason is that every number from 0 to 2n has a unique binomial representation of the string of n 0s and 1s, like 01000101110...0. Each number matches one string and each string matches a subset where 1 in place j means that the j'th element is in the set and 0 means that the j'th element is not in the set. So the number of subsets are matched to all the numbers 0, 1, 2, ... , 2n. That is 2n+1 numbers so there are that many subsets. This is counting both the empty set and the entire set.
Isn't it 2^n since the number of subsets is the cardinality of the power set?
 
da_nang said:
Isn't it 2^n since the number of subsets is the cardinality of the power set?
Oh, I think you are right. Without thinking, I added one for the null set. But that was already counted, wasn't it. Thanks.
 
It is fairly easy to prove that a set with n members has 2^n subsets by induction:

1) The empty set, with 0 members has only 2^0= 1 subset, the empty set itself.

2) Suppose that, for some fixed number, k, any set with k members has 2^k subsets.
If a set, A, has k+ 1 members, then it has at least one member. We can choose anyone of its members, call it "x", and observe that all subsets pf A can be divided into two classes- those that contain "x" and those that don't. Every subset that does not contain "x" is a subset of A\ {x} which has k members so there are 2^k such subsets. Every subset that does contain "x" is equal to a set which does not contain "x" union {x} and so there are also 2^n such subsets. A has 2^k+ 2^k= 2(2^k)= 2^{k+1} subsets.
 
Another way to do it would be to consider a bijection between the set of subsets of a finite set and the set of binary strings of length equal to the cardinality of the set (every subset is defined by whether each element is either in or not in the subset). The cardinality of the set of binary strings of length n is directly 2^n.
 
Last edited:
given any subset define a function that equals 1 on that subset and zero on the complement. conversely given any such function define a subset as the subset of points where the function equals 1. hence the number of subsets equals the number of functions to the 2 - point set {0,1}, which is 2^n.
 
mathwonk said:
given any subset define a function that equals 1 on that subset and zero on the complement. conversely given any such function define a subset as the subset of points where the function equals 1. hence the number of subsets equals the number of functions to the 2 - point set {0,1}, which is 2^n.

I think you can make that more minimal by doing away with the necessity of defining those functions. Subset membership of a set is defined in terms of predicates over the elements of that set. Depending on how exactly we define things we can either take the set of such possible predicates or the set of equivalence classes of those predicates where two predicates are equivalent iff they define the same set. We can then consider binary strings of length n as a notational system for that set of equivalence classes of predicates over the set, rather than having to define these as functions from the set to {0,1}.
 
  • #10
Thank you for all the answers and different perspectives guys I get it now!
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K