# Counting

**Topic:** Maths · Probability and statistics  
**Page:** https://curium.ctopass.com/en/c/denombrement  
**Updated:** 2026-09-11

## The three levels

### Beginner — How to find all 52 playing cards without counting them one by one?

Multiply: 4 suits (clubs, diamonds, hearts, spades) times 13 values, giving 4 × 13 = 52. This is the cardinality of a Cartesian product — the tree rule: n branches each carrying p sub-branches make n × p sub-branches. Guessing a card's suit drawn at random succeeds 1 time in 4, its value 1 time in 13, and both together 1 time in 52.

### Intermediate — How many subsets does a 10-element set have, including the empty set?

1,024 — that's 2 to the power of 10. Each element is in or out: two independent choices per element, so 2 × 2 × … × 2, ten times. The empty set and the whole set are both included. A set with k elements has 2^k subsets.

### Expert — How many surjections send a 4-element set onto a 3-element set?

36. All 3^4 = 81 functions include those missing at least one value: the inclusion-exclusion principle removes them, giving 81 − 3 × 2^4 + 3 × 1^4 = 81 − 48 + 3 = 36. The general formula is an alternating sum: for i from 0 to n, add (−1)^i × C(n, i) × (n − i)^k, and it equals zero whenever the domain has fewer elements than the codomain.

## Explore next

- [Bijection](https://curium.ctopass.com/en/c/bijection.md)
- [Combination](https://curium.ctopass.com/en/c/combinaison.md)
- [Permutation](https://curium.ctopass.com/en/c/permutation.md)
- [Birthday paradox](https://curium.ctopass.com/en/c/paradoxe-des-anniversaires.md)
- [Independence](https://curium.ctopass.com/en/c/independance.md)
- [Chebyshev's inequality](https://curium.ctopass.com/en/c/inegalite-de-bienayme-tchebychev.md)
- [Fluctuation interval](https://curium.ctopass.com/en/c/intervalle-de-fluctuation.md)
- [Statistical chart](https://curium.ctopass.com/en/c/le-diagramme-statistique.md)
- [Binomial distribution](https://curium.ctopass.com/en/c/loi-binomiale.md)
- [Benford's law](https://curium.ctopass.com/en/c/loi-de-benford.md)

---

Curium — Knowledge, one question at a time.

App Store: https://apps.apple.com/fr/app/curium/id6793886587
Google Play: https://play.google.com/store/apps/details?id=com.ctopass.curium
