At a glance
This sim lists every way to put n particles on g levels, then changes the rule for when two arrangements count as the same. The three rules give different counts and different odds, and they are the starting point for Bose–Einstein and Fermi–Dirac statistics.
What you'll learn
- How the number of arrangements depends on n, g and the counting rule.
- What a ×m badge records, and how it links one count to another.
- How the chance of finding every particle on one level depends on the rule.
- How Pauli exclusion shows up as a count, and what this sim leaves out.
What's on screen
- Gallery tile: one arrangement, drawn as a mini-ladder. The gallery holds every arrangement allowed by the current rule.
- Big ladder (left): the tile you hover or click, drawn larger.
- Lettered discs: particles A, B, C, D, with labels on.
- Plain discs: the same particles with the labels off.
- ×m badge: the tag on a tile when the labels are off.
- Results: the Arrangements count and the All in one level share.
The controls
Press ⌖ on a row to see where that control sits in the sim.
| Control | What it changes | Range | |
|---|---|---|---|
| distinguishable (Statistics) | Labels on. The letters name the particles, and every assignment of levels is its own tile. | opens here | |
| bosons (Statistics) | Labels off, sharing allowed. Swapping two particles gives the same tile, and each tile carries a ×m badge. | switch | |
| fermions (Statistics) | Labels off, and no level may hold two. Tiles that break the rule are greyed out, and the badges dim. | switch | |
| particles n | How many particles are placed. The gallery rebuilds. | 2–4 opens at 3 | |
| levels g | How many levels there are. The gallery rebuilds. | 2–4 opens at 3 | |
| Gallery tiles | Hover or click a tile to load it onto the big ladder. | click or hover | |
| Results | Arrangements: how many tiles the current rule gives. All in one level: how many of them have every particle on a single level, as a fraction. | panel | |
| ↻ Reset | Returns n and g to 3 and 3. | top bar |
Fixed: the levels carry no energies, so every tile in a gallery is equally likely. The gallery never holds more than 81 tiles, so n = 4 with g = 4 is blocked and the slider you moved snaps back.
Labelled particles give gⁿ arrangements
An arrangement is one complete way to put n particles on g levels. With labels on, each particle picks a level independently of the others, so there are gⁿ arrangements. The gallery draws every one of them; nothing is sampled.
The levels carry no energy, so nothing favours one tile over another: every tile in a gallery is equally likely. That is the only probability assumption the sim makes, and every share it reports is a count of tiles divided by a count of tiles.
Taking the labels off merges tiles
Without labels, a tile is only its occupancy vector (n₀, n₁, …, ng−1): how many particles sit on each level. Tiles that differ only by swapping particles become the same tile. Identical particles that may share a level are bosons, and counting the occupancy vectors gives the boson count:
The badge on a tile is the number of labelled tiles that merged into it:
The crowded share depends on the rule
Take the g tiles with all n particles on one level. Each has m = 1, so none of them merges with another. Spread-out tiles merge many to one, up to n! when every particle sits alone on a level. The same g tiles are then compared with a different total:
| n, g | labelled | bosons |
|---|---|---|
| 3, 3 | 3/27 = 0.111 | 3/10 = 0.300 |
| 2, 4 | 4/16 = 0.250 | 4/10 = 0.400 |
For every (n, g) the sim allows, the boson share is the larger. No force acts anywhere in the sim: the counting rule alone changes the odds.
Exclusion removes every shared level
Identical particles that may not share a level are fermions. Of the boson tiles, only those with every nᵢ ≤ 1 survive:
A count of zero is a result, not an error: the sim shows 0 arrangements when the particles do not fit one per level. Exclusion also forbids putting two or more particles on one level, so for fermions the All in one level readout says "0 — never".
These sliders move the sim too.
Where it matters
- Atoms. Electrons are fermions, so no two share a single-particle state. They fill states from the bottom up, which gives atoms their shell structure. A real energy level can hold several electrons because it contains several states, such as the two spin states of an orbital.
- Lasers and condensates. Photons are bosons. A laser puts a very large number of them into one mode, and in a Bose–Einstein condensate of ultracold atoms a large share of the atoms sit in the lowest state.
- What the sim leaves out. It has no energies or temperature, so it does not produce the Bose–Einstein or Fermi–Dirac distributions; those need level energies on top of these counts. It stops at n ≤ 4 and g ≤ 4 because it draws every tile.
Go deeper: when levels far outnumber particles
- For g ≫ n almost every arrangement has the particles on different levels, so a boson tile or a fermion tile stands for about n! labelled tiles. Dividing gⁿ by n! is the "correct Boltzmann counting" used for a classical gas.
- The sim is far from that limit. At n = 2, g = 4: WBE = 10, gⁿ/n! = 8, WFD = 6. At n = 3, g = 3: gⁿ/n! = 4.5, while WBE = 10.
Summary
Key points
- Labelled: gⁿ arrangements. Bosons: C(n+g−1, n). Fermions: C(g, n), which is 0 when n > g.
- A ×m badge counts the labelled tiles merged into one boson tile, and the badges add up to gⁿ.
- The g crowded tiles never merge, so their share is g/gⁿ labelled and g/C(n+g−1, n) as bosons.
Common mix-ups
- "Bosons crowd because they attract, and fermions avoid each other because they repel." This sim has no interaction at all. The rule for what counts as different does all the work.
- "The gallery shrank, so crowding got rarer." A smaller list is not a smaller share: the crowded tiles all survive, and the spread-out ones merge away.
- "Identical particles can never share a level." That is the fermion rule only. Bosons share freely.
Things to try on your own
- In bosons mode with n = 2, step g from 2 to 4 and note the All in one level share at each g.
- For n = 3, find the smallest g at which the fermion gallery is not empty, then check the count against C(g, 3).
- At n = 3, g = 3 in bosons mode, find the tile with badge ×6. Switch to distinguishable and count the tiles that also have one particle on each level.