How to Use the Power Set Calculator
- Enter your set elements: Type items separated by commas, spaces, or semicolons (e.g. \(1, 2, 3\) or \(a, b, c, d\)).
- Select sorting preference: Organize by Cardinality (from empty set \(\emptyset\) to full set \(S\)), Binary Sequence (matching bitwise index), or Lexicographical (alphabetical).
- Choose notation format: Render as formal LaTeX mathematical set notation \(\mathcal{P}(S)\), plain text, or JSON array.
- Inspect the bitmask truth table: View the binary decision table showing how binary numbers \(0\) to \(2^n - 1\) generate all unique subsets.
Problems This Power Set Calculator Solves
Enumerating subsets by hand grows exponentially at \(2^n\), making it extraordinarily easy to omit subsets, double-count duplicates, or misapply combinatorics. This calculator resolves key challenges:
Exponential Subset Omission
For a set with 5 elements (\(2^5 = 32\) subsets) or 6 elements (64 subsets), humans almost always skip subsets. The tool deterministically generates all \(2^n\) subsets without error.
Duplicate Element Deduplication
Automatically sanitizes inputs by collapsing duplicate elements according to standard set axioms, ensuring the true underlying cardinality \(|S|\) is modeled.
Combinatorial Binomial Verification
Groups subsets by cardinality \(k\) and validates each group count against Pascal's triangle coefficients \(\binom{n}{k}\), confirming \(\sum_{k=0}^n \binom{n}{k} = 2^n\).
Binary Bitmask & Computer Science Bridging
Demystifies the connection between binary numbers and subset generation with an interactive bitmask table, teaching bitwise subset algorithms.
Key Features & Capabilities
Binary Bitmask Table
Visualizes element inclusion via 1/0 bitwise truth rows corresponding to binary values \(0\) through \(2^n-1\).
Multi-Format Set Export
Formats power sets into rigorous LaTeX mathematical set notation \(\mathcal{P}(S)\), clean plain text, or valid JSON arrays.
Cardinality Grouping
Categorizes generated subsets into discrete rows by subset length \(k\) with matching Pascal's row counts.
What is a Power Set in Mathematics?
In axiomatic set theory, the power set of a set \(S\) (denoted \(\mathcal{P}(S)\), \(\wp(S)\), or \(2^S\)) is the set containing all possible subsets of \(S\), including both the empty set \(\emptyset\) and the set \(S\) itself:
Key mathematical principles governing power sets include:
- Universal Inclusions: For every set \(S\), \(\emptyset \in \mathcal{P}(S)\) and \(S \in \mathcal{P}(S)\).
- Empty Set Power Set: For \(S = \emptyset\) (where \(|S| = 0\)), its power set is \(\mathcal{P}(\emptyset) = \{ \emptyset \}\), containing exactly \(2^0 = 1\) element.
- Subset vs. Element Distinction: An element \(x \in S\) becomes a singleton subset \(\{x\} \in \mathcal{P}(S)\).
Why is the Cardinality Strictly \(2^n\)?
The cardinality formula \(|\mathcal{P}(S)| = 2^n\) is a direct consequence of the Fundamental Counting Principle:
When building any arbitrary subset \(A \subseteq S = \{x_1, x_2, \dots, x_n\}\), you make an independent binary decision for each element:
- Choice 1: Include \(x_1\) (1) or Exclude \(x_1\) (0) → 2 options
- Choice 2: Include \(x_2\) (1) or Exclude \(x_2\) (0) → 2 options
- ...
- Choice \(n\): Include \(x_n\) (1) or Exclude \(x_n\) (0) → 2 options
Total Combinations: \(\underbrace{2 \times 2 \times \dots \times 2}_{n\text{ times}} = 2^n\)
Subsets vs. Proper Subsets Explained
A subset is any collection of elements belonging to \(S\). A subset is permitted to be equal to \(S\) itself. Every finite set of size \(n\) has exactly \(2^n\) subsets.
A proper subset must contain strictly fewer elements than \(S\) (\(A \ne S\)). The only subset excluded is the original set \(S\). Therefore, every set of size \(n\) has exactly \(2^n - 1\) proper subsets.
