Power Set
P(S) = set of all subsets of S. |P(S)| = 2^n for n elements. Each element: in or out → 2 choices. Proper subsets exclude S itself. k-subsets: C(n,k) = n!/(k!(n−k)!).
Did our AI summary help? Let us know.
Each element: in or out — 2 choices. n elements → 2^n subsets. Proper subsets exclude S. Count: 2^n − 1. C(n,k) = number of ways to choose k elements from n.
Ready to run the numbers?
Why: Power sets model all possible combinations — used in logic, topology, and computer science. |P(S)|=2^n grows exponentially. k-subsets count combinations without repetition.
How: List elements. For each of 2^n binary strings (0=out, 1=in), form subset. Proper: exclude full set. k-subsets: C(n,k)=n!/(k!(n−k)!) = binomial coefficient.
Run the calculator when you are ready.
Enter Set
Subsets by Size
Size Distribution
📐 Step-by-Step Breakdown
For educational and informational purposes only. Verify with a qualified professional.
🧮 Fascinating Math Facts
S={a,b} → P(S)={∅,{a},{b},{a,b}}. |P(S)|=4=2².
— Example
C(5,2)=10 — ways to choose 2 from 5 elements.
— Combination
📋 Key Takeaways
- • Power set P(S) = set of all subsets of S, including ∅ and S itself.
- • |P(S)| = 2^n — each element is either in or out; 2 choices per element.
- • Binary representation: Integer 0..2^n−1 encodes each subset (bit j = 1 ⇒ element j included).
- • Cantor's theorem: |P(S)| > |S| for any set S. No set equals its power set.
- • k-element subsets: C(n,k). Sum: Σ C(n,k) = 2^n.
💡 Did You Know?
📖 How It Works
P(S) contains every possible subset of S. For n elements, 2^n subsets because each element is independently in or out. Enumerate by i = 0..2^n−1: subset i includes element j iff bit j of i is 1.
Proper subsets exclude S itself: 2^n − 1. k-element subsets: C(n,k).
📝 Worked Example: P({a,b,c})
Step 1: |S| = 3, so |P(S)| = 2³ = 8
Step 2: Binary 000→∅, 001→{c}, 010→{b}, 011→{b,c}, 100→{a}, 101→{a,c}, 110→{a,b}, 111→{a,b,c}
Result: P(S) = {∅, {a}, {b}, {c}, {a,b}, {a,c}, {b,c}, {a,b,c}}
🚀 Real-World Applications
💻 Subset Sum
NP-complete: find subset summing to target.
📊 Feature Selection
2^n subsets of n features to evaluate.
🔐 Access Control
Power set of permissions for roles.
📐 Boolean Algebra
Power set with union, intersection.
🎲 Probability
Event space as σ-algebra on power set.
🔬 Logic
Truth tables, propositional logic.
⚠️ Common Mistakes to Avoid
- Forgetting ∅: The empty set is always in P(S).
- Confusing proper vs full: Proper excludes S; full includes it.
- n > 10: 2^n grows fast. Limit n for enumeration.
- Duplicate elements: Sets have no duplicates; we deduplicate input.
- Order in sets: {a,b} = {b,a} — order doesn't matter.
🎯 Expert Tips
💡 Binary Trick
Loop i=0 to 2^n-1; for each j, if (i>>j)&1, include element j.
💡 Large Sets
For n>15, 2^n is huge. Use combinatorial counting instead of enumeration.
💡 Proper vs Full
Proper subsets exclude S. Count = 2^n − 1.
💡 C(n,k) Sum
Σ C(n,k) = 2^n. Each subset has some size k.
📊 Reference Table
| n | |P(S)| | C(n,0)..C(n,n) |
|---|---|---|
| 0 | 1 | 1 |
| 1 | 2 | 1, 1 |
| 2 | 4 | 1, 2, 1 |
| 3 | 8 | 1, 3, 3, 1 |
| 4 | 16 | 1, 4, 6, 4, 1 |
| 5 | 32 | 1, 5, 10, 10, 5, 1 |
📐 Quick Reference
🎓 Practice Problems
❓ FAQ
What is the power set?
P(S) is the set of all subsets of S. Includes ∅ and S. |P(S)| = 2^|S|.
Why 2^n subsets?
Each of n elements is either in or out. 2 choices per element ⇒ 2^n total.
What are proper subsets?
Subsets of S not equal to S. Count = 2^n − 1.
How does binary encoding work?
Number 0 to 2^n−1: bit j = 1 means element j is in the subset.
What is Cantor's theorem?
For any set S, |P(S)| > |S|. No set equals its power set.
Applications in CS?
Subset sum, knapsack, feature selection, exhaustive search.
P(∅)?
P(∅) = {∅}. The empty set has one subset: itself.
📌 Summary
P(S) = set of all subsets. |P(S)| = 2^n. Binary encoding: integer i ↔ subset with bit j = 1 iff element j included. Proper subsets: 2^n − 1. k-element subsets: C(n,k).
✅ Verification Tip
Verify: Σ C(n,k) for k=0..n = 2^n. Check |P(∅)| = 1, |P({x})| = 2.
🔗 Next Steps
Explore the Combination Calculator for C(n,k), Subset Calculator, or Binomial Coefficient Calculator.
⚠️ Disclaimer: For n > 10, 2^n > 1024. Display is limited for performance.
Related Calculators
Subset Calculator
Check if set A is subset of B (A⊆B), proper subset (A⊂B), or superset. List all subsets (power set), count subsets. Find intersection, union, complement. Bar...
MathematicsBinomial Coefficient Calculator
Calculate binomial coefficients C(n,k) = n!/(k!(n-k)!) — the number of ways to choose k items from n without regard to order. Also known as n choose k or ⁿCₖ. Features Pascal's triangle row generation, factorial breakdown, Bar chart of full row C(n,0)..C(n,n), Doughnut chart showing k vs n−k. Applications: lottery (C(49,6)), poker hands (C(52,5)), committee selection, DNA combinations, binary strings. Educational content on combinatorics, binomial theorem (x+y)ⁿ expansion, and Pascal's identity.
MathematicsAbsolute Value Equation Calculator
Solve absolute value equations and inequalities including |ax+b|=c, |ax+b|=|cx+d|, and |ax+b|≤c forms. Features solution verification, number line...
MathematicsAbsolute Value Inequalities Calculator
Solve absolute value inequalities |ax+b| < c, > c, ≤ c, ≥ c. Get solution intervals, interval notation, set builder notation, number line visualization...
MathematicsBessel Function Calculator
Calculate Bessel functions J_n(x), Y_n(x), I_n(x), and K_n(x) with series approximation. Supports first kind (J), second kind/Neumann (Y), and modified Bessel functions (I, K). Applications include vibrating drum modes, electromagnetic waveguides, heat conduction in cylinders, and Bessel filter design in signal processing. Uses the power series J_n(x) = Σ (-1)^m/(m!(m+n)!)·(x/2)^(2m+n). Includes convergence info, Bar chart comparing values at different x, Doughnut chart showing series term contributions, and educational content on Bessel's differential equation and cylindrical harmonics.
MathematicsBox Method Calculator
Multiply polynomials visually using the box method (area model). Step-by-step solutions for binomials, trinomials, and factoring. Interactive grid...
Mathematics