Skip to content

Exact virial coefficients of hard squares and cubes, explained from the start

ExplainerNovember 16, 2026updated Nov 20, 202622 min

A ▲ after a number means it has a note at the foot of this page.

The first exact values of the eighth, ninth and tenth virial coefficients (the numbers that describe how a gas of parallel hard squares or cubes behaves as it gets crowded), past an exact frontier that had stood since 1962, explained from the first definition.

The first exact values of the eighth, ninth and tenth virial coefficients of hard squares and hard cubes, moving an exact frontier that had stood since 1962.

Picture a gas made of tiny hard squares sliding on a table, or tiny hard cubes in space, all turned the same way and unable to overlap. How its pressure grows as it gets crowded is described by a list of numbers called virial coefficients, written B2, B3, B4 and so on. The ones up to B7 were worked out exactly between 1956 and 1962. The next three, B8, B9 and B10, were in print only as decimals. Claude agents (Anthropic), working under my direction, computed all three exactly, as fractions, for squares and for cubes, on November 9, 2026. The tenth coefficient alone is a sum over 9,743,542 different diagrams of overlapping particles (word 8 below), and two programs that share no code agree on every one of them.

Below, every word the story needs is defined in order, each with an example small enough to check by eye. The first coefficients are then worked by hand, and a calculator near the end builds them from nothing, exactly, in the browser.

  • The new values: exact fractions for the virial coefficients B8, B9 and B10; for squares B8=−619/15120B_8 = -619/15120, and five more exact fractions in the table of values.
  • Before: exact values up to B7 (Zwanzig, 1956; Hoover and De Rocco, 1961 and 1962); B8 to B10 only as decimals, computed by R. J. Wheatley and printed in a 2020 survey article.
  • The check: two separately written programs that share no code agree graph by graph, and a third method confirms B8 and B9 in full.
  • Public: the tables, the code and a single command that reruns the check, in a Zenodo record, a public archive that gives each record a permanent address, published on November 9, 2026 (Pacific time; Zenodo shows November 10, its date in UTC).
  • Status: a paper on it was submitted to a peer-reviewed journal on November 13, 2026 and is under review.

Words first

Read these in order. Each one uses only the words before it, and later sections point back to them by number. Readers who know the virial expansion can skip to the short version.

A gas, and its pressure

A gas is a crowd of particles moving about at random. Its pressure is how hard it pushes on the walls of its container. More particles in the same space, or faster particles, push harder.

Example

Pump air into a bicycle tyre and the tyre gets harder: more particles in the same space hit the inside of the tyre more often.

Density

The density is the number of particles per unit of space, written ρ\rho (the Greek letter rho). On a table the unit of space is a unit of area; in space it is a unit of volume. On this page each particle has size 1, so a density of 1 would mean the particles fill the space completely.

Example

Four squares of size 1 on a table of area 16 have density 4/16=0.254/16 = 0.25: a quarter of the table is covered.

The ideal gas law

When the particles are far apart they hardly ever meet, and the pressure is simply proportional to the density: P=ρkTP = \rho k T, where TT is the temperature and kk is a fixed constant of nature. This is the ideal gas law. Dividing by ρkT\rho k T gives the number 1, so the ratio P/(ρkT)P/(\rho k T) measures how far a real gas departs from the ideal one.

Example

For an ideal gas the ratio is exactly 1 at every density. For the hard squares below it is above 1, because particles that take up room leave less room for the others.

Hard particles: parallel squares and cubes

A hard particle is one that cannot overlap another, and otherwise does not pull or push. The model on this page uses squares of side 1 on a plane, or cubes of side 1 in space, all turned the same way (parallel): they slide but never rotate. It is one of the simplest models of a fluid with shape, and it has been studied since the 1950s. The same model works in any number of dimensions dd: rods on a line (d=1d = 1), squares (d=2d = 2), cubes (d=3d = 3), and beyond.

The virial series and its coefficients

As the gas gets more crowded, the ratio of word 3 grows like this:

P/(ρkT)=1+B2 ρ+B3 ρ2+B4 ρ3+⋯P/(\rho k T) = 1 + B_2\,\rho + B_3\,\rho^2 + B_4\,\rho^3 + \cdots

This is the virial series, and the numbers B2,B3,B4,…B_2, B_3, B_4, \dots are the virial coefficients. The list starts at B2 because the 1 at the front is the ideal gas itself. Each coefficient depends only on the shape of the particles, not on the density. B2 describes pairs of particles, B3 triples, and BnB_n groups of nn. Knowing more of them describes the gas at higher densities.

Example

For squares B2=2B_2 = 2 and B3=3B_3 = 3 (both computed by hand below). At density 0.10.1 the first terms give 1+2×0.1+3×0.01=1.231 + 2 \times 0.1 + 3 \times 0.01 = 1.23: the pressure is about a quarter above the ideal value.

Exact values, and decimals

An exact value here is a fraction of two whole numbers, such as 11/311/3. A decimal such as 3.6673.667 is an approximation of it. A decimal can be rounded (the last digit is chosen to be as close as possible) or truncated (the digits after a point are simply cut off). Fractions can be compared and combined with no error at all, which is why exact coefficients are the standard against which approximate theories and computer simulations are tested.

Example

11/3=3.6666…11/3 = 3.6666\ldots Rounded to three decimals it is 3.6673.667; truncated it is 3.6663.666.

Overlap, one direction at a time

Two parallel squares overlap exactly when their shadows overlap on the horizontal axis and on the vertical axis. So a question about squares splits into two questions about intervals on a line, and a question about cubes into three. R. W. Zwanzig used this in 1956, and every computation on this page rests on it. On a line, two particles of length 1 overlap exactly when their positions differ by less than 1.

Shadows overlap on both axes: the squares overlap

Shadows overlap on the horizontal axis only: no overlap

Left: the shadows overlap on both axes, and the squares overlap. Right: the shadows overlap across but not up and down, and the squares do not overlap. Try it in the playground.

A graph of overlaps

Here a graph is a set of dots with some pairs joined by lines. To describe a group of nn particles, draw one dot per particle and a line between two dots when those two particles overlap. In physics these pictures are called Mayer graphs, after the physicist J. E. Mayer, whose work on the statistical mechanics of gases, beginning in 1937, led to sums of exactly this kind.

Example

Three squares where 1 overlaps 2 and 2 overlaps 3, but 1 and 3 are apart: the graph has the lines 1 to 2 and 2 to 3.

Two-connected

A graph is two-connected when it is in one piece and stays in one piece after removing any one dot (and the lines at it). Only two-connected graphs enter the virial coefficients: in the theory Mayer began, the contributions of graphs that fall apart at a single dot cancel out of the pressure. With two dots the single line counts; with three dots only the triangle qualifies; with four dots three shapes do.

1234

The ring: 4 lines

1234

The ring with one diagonal: 5 lines

1234

Every pair joined: 6 lines

1234

Not two-connected: removing dot 2 cuts it in two

The three two-connected shapes on four dots, and a fourth graph that is not two-connected: removing dot 2 cuts dot 3 off from the rest.

The volume of a graph

Fix particle 1 at position 0 on a line. The volume of a graph is the size of the set of positions of the other particles in which every pair joined by a line overlaps (pairs not joined may do anything). This is a looser reading than in word 8: there a missing line meant the two particles were apart, and here a missing line asks for nothing, so one arrangement of particles can count toward several graphs. For one line on two dots, particle 2 can sit anywhere between −1-1 and 11, so the volume is 2. For the triangle the set is a hexagon of area 3 (worked below). For squares the positions across and up and down are chosen independently (word 7), so the area is this line volume squared; for cubes it is cubed.

Peer review, Zenodo, DOI

Peer review is a journal's examination of a paper by other researchers before it is published. Zenodo is a public research archive, and each record there gets a DOI, a permanent web address that anyone can cite. The tables and code behind this result are a Zenodo record; the paper on it is under review at a journal and has not yet been peer reviewed.

The short version

  • The pressure of a crowded gas of parallel hard squares or cubes is described by the virial coefficients B2,B3,…B_2, B_3, \dots (word 5).
  • Each coefficient is a signed sum over two-connected graphs, and for squares and cubes each graph's share is a power of a volume on a line (words 7 to 10). So every coefficient is an exact fraction.
  • Exact values stopped at B7 in 1962. B8, B9 and B10 were known only as decimals.
  • Claude agents, working under my direction, computed all three exactly for squares and cubes. The tenth needs every two-connected graph on ten dots, 9,743,542 shapes.
  • Two separately written programs agree on every coefficient and on every graph; a third method confirms B8 and B9 in full. The paper is under review.

The first coefficients by hand

Every coefficient comes from one rule. For BnB_n: list every labelled two-connected graph on nn dots (word 9); give each one its volume (word 10) raised to the power dd, with a plus sign when it has an even number of lines and a minus sign when the number is odd; add everything up; and multiply by −(n−1)/n!-(n-1)/n!, where n!=1×2×⋯×nn! = 1 \times 2 \times \cdots \times n. The signs and the factor come from Mayer's expansion of the pressure; the rule is stated in symbols at the end of this section. Here it is at work on two, three and four particles, for squares (d=2d = 2) and cubes (d=3d = 3).

Two particles: B2

There is one graph, the single line. On a line, particle 2 overlaps particle 1 (at 0) when it sits between −1-1 and 11: a volume of 2. For squares the volume is 22=42^2 = 4, the area of positions where a second square would overlap the first; for cubes it is 23=82^3 = 8. The coefficient is half of that: B2=2B_2 = 2 for squares and B2=4B_2 = 4 for cubes. The half is the rule's factor −1/2-1/2 for two particles, and the single line brings a minus sign that cancels the minus in the factor.

Three particles: B3

There is one graph, the triangle: all three pairs overlap. With particle 1 at 0, particles 2 and 3 must each lie between −1-1 and 11, and within 1 of each other. On the square of side 2 that is everything except two corner triangles of area 12\tfrac12 each, so the volume is 4−1=34 - 1 = 3 (the hexagon in the picture). The rule then gives B3 = 3d − 1: 3 for squares and 9 for cubes.

−2−1012length 2

Two particles: where particle 2 can sit and still overlap particle 1 at 0

x₂x₃3½½

Three particles: where particles 2 and 3 can sit so that all three pairs overlap

Left: positions of particle 2 that overlap particle 1, an interval of length 2. Right: positions of particles 2 and 3 in which all three overlap, a hexagon of area 3.

Four particles: B4

Now three shapes of graph enter (word 9), and each shape can be drawn on the four labelled dots in several ways: the ring in 3 ways, the ring with a diagonal in 6, the complete graph in 1. Each labelled graph contributes its volume to the power dd, with a plus sign for an even number of lines and a minus sign for an odd number. The table adds them up.

GraphLinesLabellingsVolume on a lineTerm, squaresTerm, cubes
Ring43128/24 = 16/3256/34096/9
Ring with a diagonal56112/24 = 14/3−392/3−5488/9
Every pair joined6196/24 = 41664
Sum−88/3−272/3
Times −3/24 gives B411/334/3

Computed on this page, in exact arithmetic. The volumes on a line are 16/316/3, 14/314/3 and 44 (written as 128/24 and so on because step 2 below finds them by counting small cells of size 1/24), and −3/24-3/24 is the rule's factor for four particles; the terms are labellings times volume to the power dd, with the sign of the number of lines. The results, 11/311/3 for squares and 34/334/3 for cubes, are Zwanzig's values of 1956.

Preciselythe exact statement, for readers who want it

For parallel hard hypercubes of side 1 in dd dimensions (particle volume 1),

P / (rho k T) = 1 + B2 rho + B3 rho^2 + ...,       B2 = 2^(d-1)
B_n = -(n-1)/n! * sum over labelled two-connected G on {1..n} of (-1)^e(G) * V(G)^d
V(G) = volume of { x_1 = 0, |x_i - x_j| < 1 for every edge ij }   (n - 1 dimensions)

The Mayer integral of a graph in dd dimensions is (-1)^e(G) V(G)^d (Zwanzig, 1956). For two dots, -(1/2) (-1) 2^d = 2^(d-1); for three, -(2/6) (-1) 3^d = 3^(d-1).

The values

The table gives B2 to B10 for squares and cubes. Up to B6 every value is computed on this page from nothing by the page's own code and checked against the published value; B7 is the 1962 value, as listed in the record, and B8 to B10 are the new exact values from the record.

CoefficientSquaresCubesExact value first given by
B222.000044.0000Zwanzig, 1956recomputed on this page
B333.000099.0000Zwanzig, 1956recomputed on this page
B411/33.666734/311.3333Zwanzig, 1956recomputed on this page
B567/183.7222455/1443.1597Zwanzig, 1956recomputed on this page
B6121/403.0250−2039/108−18.8796Hoover and De Rocco, 1961 and 1962recomputed on this page
B717827/108001.6506−169149119/3888000−43.5054Hoover and De Rocco, 1962value from the record
B8−619/15120−0.0409−197397143/5292000−37.3010New: exact here for the first timevalue from the record
B9−35880731/25401600−1.41251745083154519/4267468800040.8927New: exact here for the first timevalue from the record
B10−1564199453/914457600−1.710584713412457573/493807104000171.5516New: exact here for the first timevalue from the record

The decimal under each fraction is rounded to four places. The shaded rows are the new values. For squares every coefficient up to B7 is positive, and B8, B9 and B10 are negative, B8 being the first negative one. Wheatley's printed decimals of 2020 had already shown these signs; the exact values confirm them exactly.

A negative coefficient means its term lowers the pressure. At low density the earlier positive terms are much larger, so the gas of squares still pushes harder than an ideal gas.

Against the decimals in print

The 2020 review by W. G. and C. G. Hoover prints decimals for B8 to B10 computed by R. J. Wheatley, with no stated uncertainty. Here they are beside the exact values:

CoefficientExact value as a decimalPrinted in 2020 (Wheatley)
B8, squares−0.040939−0.04094
B9, squares−1.41254−1.4125
B10, squares−1.710522−1.710
B8, cubes−37.301047−37.3010
B9, cubes40.8927040.8927
B10, cubes171.5516171.5

Rounded to the digits printed, the exact B8 and B9 give exactly the printed decimals. The two printed B10 values are the exact ones truncated (word 6): each differs from the exact value by 0.52 of a unit in its last printed digit, where correct rounding would allow at most half a unit. His B8 and B9 are correct to every printed digit and his B10 values are the exact ones cut off; what is new is the exact fractions, the tables they are summed from, and a script that rechecks them.

A 2011 paper by L. V. Woodcock printed values for B8 and beyond. They were extrapolated from B5 to B7, with nothing computed at those orders. For squares its signs are right and its sizes too large by factors from 2.2 to 9.4; for cubes it predicts negative B9 and B10, and the exact values are positive.

Preciselythe exact statement, for readers who want it
Squares (d=2d = 2)Cubes (d=3d = 3)
B8−619/15120−197397143/5292000
B9−35880731/254016001745083154519/42674688000
B10−1564199453/91445760084713412457573/493807104000

Convention: unit-volume particles, P/(ρkT)=1+B2ρ+…P/(\rho k T) = 1 + B_2 \rho + \dots, B2 = 2d − 1. The record also lists d=1d = 1 (every coefficient equals 1) and d=4,5,6d = 4, 5, 6; no novelty is claimed for d≥4d \ge 4.

How the new values were computed

The rule is the same as for B4. What changes is the size: the tenth coefficient needs every two-connected graph on ten dots, each with its exact volume.

Step 1: list every graph

CoefficientShapes of graphLabelled graphs
B211
B311
B4310
B510238
B65611,368
B74681,014,888
B87,123166,537,616
B9194,06650,680,432,112
B109,743,54229,107,809,374,336

Up to six dots the labelled counts are computed on this page; the shape counts, and every count from seven dots on, are the record's, each checked there against the On-Line Encyclopedia of Integer Sequences (the shape counts are OEIS A002218, the labelled counts A013922). A shape drawn on labelled dots gives many labelled graphs, and the sum needs all of them, so each shape is listed once with its number of labellings.

The shapes came from nauty, a standard program that lists graphs without repeats.

Step 2: the volume of each graph, as a count

On a line, write each position as a whole part plus a fraction: x=k+fx = k + f, with kk a whole number (the level) and ff between 0 and 1. Instead of pinning particle 1 at exactly 0, let it slide anywhere between 0 and 1 (level 0, any fraction): sliding all the particles together changes no overlap, so this measures the same volume. Whether two particles overlap depends only on their levels and on which of their fractions is larger: on the same level they always overlap; one level apart they overlap exactly when the higher one has the smaller fraction; further apart, never. So the space of positions falls into cells, one for each choice of levels and each order of the nn fractions, every cell of the same size 1/n!1/n!, and in each cell a pair either always overlaps or never does. The volume of a graph is the number of cells in which all its lines overlap, divided by n!n!.

Two particles

Particle 2 at level 0, with either order of the fractions: 2 cells, both overlapping. At level 1, it overlaps only if its fraction is the smaller: 1 cell. At level −1-1, only if its fraction is the larger: 1 cell. Total 4 cells of size 1/21/2, a volume of 2, as in word 10.

Three particles

The same count for the triangle finds 18 cells of size 1/61/6, a volume of 3, the hexagon of the picture above.

Counting cells over orders of the fractions is counting linear extensions of a partial order, a standard object in combinatorics. The first of the record's two main programs, called Method A, does exactly this for every graph, with fast code. The calculator below does it by brute force for up to six dots.

Step 3: a second method with its own code

Method B, written separately, lists every connected graph instead of only the two-connected ones (11,716,571 shapes on ten dots), from a graph generator written for this work rather than nauty. It finds each volume another way, by counting the whole-number grid points inside enlarged copies of the region, and it adds the graphs up by a different formula, so it never needs to know which graphs are two-connected. The two methods share no code, no graph list, no volume method and no summation formula, so a bug in one of them alone would almost certainly show up as a disagreement, and a mistake common to both would not.

Step 4: add up exactly

Each volume is a fraction with denominator n!n!, raised to the power dd, signed and summed in exact integer arithmetic. Nothing is rounded at any point. The full ten-dot computation took about 22 minutes with Method A on one computer. The size is the difficulty: B7, the last exact value before, needs a few hundred shapes of graph, and B10 needs nearly ten million, each with an exact volume. The 2020 review does not say how Wheatley's decimals were produced.

Preciselythe exact statement, for readers who want it

Method A: for each two-connected GG (from geng -C), N(G) = n! V(G) is the number of pairs (integer level map kk with k1=0k_1 = 0, total order of the fractional parts) compatible with the edges, a sum over level maps of numbers of linear extensions. Method B: all connected graphs from its own generator; V(G)V(G) from the Ehrhart polynomial of the closed polytope {x_1 = 0, |x_i - x_j| <= 1}; Mayer cluster integrals blb_l; elimination of the activity between the pressure and density series. The record's tables have one line per distinct triple (edge parity, |Aut G|, N).

Try it

The overlap playground

Drag the three squares. The table tests each pair along each axis, and the small graph joins two dots exactly when their squares overlap (words 7 and 8, in the reading of word 8). Arranging all three into a triangle is the situation behind B3.

Drag the squares, or pick one with Tab and move it with the arrow keys

123
123

Overlap graph: a line for each overlapping pair

PairAcrossUp and downOverlap?
1 and 2yesyesyes
1 and 3noyesno
2 and 3noyesno

A pair overlaps exactly when it overlaps across and up and down. Each test on its own is a question about points on a line, which is why the whole calculation can be done on a line.

The calculator

Pick a coefficient and a kind of particle. The calculator lists every labelled two-connected graph, counts its cells as in step 2, raises each volume to the power dd, and adds everything up with signs, in exact arithmetic, in the browser. It then compares the result with the published value. Six dots take a moment: there are more than eleven thousand labelled graphs to sum.

Coefficient
Particles

ResultB3 = 3(3.000000)

Matches the published value. 1 labelled two-connected graph, in 1 group with the same number of lines and the same volume.

LinesLabellingsVolume on a lineTerm
313−9
Sum, times −2/63

Rods on a line give 1 for every coefficient, a known exact result that checks the machinery. For cubes, B6 comes out negative: the cube gas has a negative coefficient two coefficients earlier than the square gas.

What was checked

CheckWhat it testedResult
Graph countsthe number of graphs of each size up to ten dots, against the OEISPassed
Hard rodsevery coefficient must equal 1 for rods on a linePassed, both methods
Known valuesthe published B2 to B7 for squares and cubesPassed, both methods
Two methodsthe same fraction for every coefficient from B2 to B10Passed
Graph by grapheach two-connected graph of Method A found once among Method B's graphs, with the same number of lines, the same number of relabellings that leave it unchanged, and the same volumePassed for all 9,743,542 graphs behind B10
Third methoda third program, written separately, that measures volumes region by region where the order of the particles is fixed: B8 and B9 in full; B10 on a sample of 17,124 graphs (0.18 percent)Passed, B10 in part
Simulationa random-sampling estimate with no list of graphs, in the manner of Wheatley (2013)Consistent for B8 of squares and cubes and B9 of squares; too noisy to test the rest
This pageB2 to B6 recomputed from nothing by the page's own code, against the published valuesPassed
Peer reviewa journal refereeUnder review

All the computing checks were written by Claude agents in one project, so they are less independent than the work of two separate groups would be. An error confined to a few ten-dot graphs and common to both full methods would not be caught by the third method's sample.

Who did what

R. W. Zwanzig found B2 to B5 and the power rule of word 7 (1956). W. G. Hoover and A. G. De Rocco extended the exact values to B6 and B7 (1961 and 1962). R. J. Wheatley computed the decimals for B8 to B10, printed in the 2020 review by W. G. and C. G. Hoover. On November 9, 2026, I asked Claude agents to look for a result worth publishing in mathematics or physics, and an agent surveying candidate problems proposed this one; Claude agents, working under my direction, wrote and ran the enumeration and checking code, computed the coefficients, checked them by a second and a third method and against the literature, and helped write the paper. I set the task, directed the work, approved the paper and published the record. It all happened in one day: the problem was picked at 1:11 p.m., the two methods agreed at 3:11 p.m., the third at 3:56 p.m., and the record went public at 6:45 p.m. (Pacific time).

Where things stand

  • The exact values, the per-graph tables and the code are public in the Zenodo record, with a script that rechecks every coefficient in about four minutes using only Python.
  • A paper on the result was submitted to a peer-reviewed journal on November 13, 2026 and is under review. Nothing here has been peer reviewed yet.
  • That no exact B8, B9 or B10 was published before rests on literature searches; a search cannot prove that none exists. I know the 1962 article by Hoover and De Rocco from its abstract only.
  • Exact B8, B9 and B10 of parallel hard squares and cubes, computed by Claude agents under my direction; the exact frontier had stood at B7 since 1962.
  • Two programs that share no code agree on every coefficient and graph by graph; a third method confirms B8 and B9 in full and B10 in part.
  • Submitted to a peer-reviewed journal on November 13, 2026; under review.

What it is part of

  • The result page: Exact virial coefficients B8, B9 and B10, with the full table of checks and the notes for specialists.
  • The record: Zenodo, doi:10.5281/zenodo.24094959, with verify.py, the per-graph tables for two to ten dots and the source of every method.
  • The day it came from: this was one of seven new results found in under two days with Claude agents in November 2026, and one of seven papers sent to journals.
  • Physics: parallel hard squares and cubes are a standard minimal model in soft matter for cube-shaped particles; exact coefficients are parameter-free test values for Monte Carlo and molecular dynamics codes and for approximate equations of state. They describe the fluid at low density only.
  • Mathematics: the computation is graph enumeration plus exact volumes of polytopes, by linear extensions (order theory) in one method and by Ehrhart polynomials (lattice-point counting) in the other.

Sources

  • J. E. Mayer, The statistical mechanics of condensing systems. I, Journal of Chemical Physics 5 (1937), 67-73: doi.org/10.1063/1.1749933.
  • R. W. Zwanzig, Journal of Chemical Physics 24 (1956), 855.
  • W. G. Hoover and A. G. De Rocco, Journal of Chemical Physics 34 (1961), 1059; and 36 (1962), 3141 (known from its abstract).
  • W. G. Hoover and C. G. Hoover, review in the Journal of Chemical Physics 153 (2020), 070901, Section II.H: arXiv:2006.07689.
  • R. J. Wheatley, Calculation of high-order virial coefficients with applications to hard and soft spheres, Physical Review Letters 110 (2013), 200601: doi.org/10.1103/PhysRevLett.110.200601.
  • L. V. Woodcock, Natural Science 3 (2011), 622: doi.org/10.4236/ns.2011.37085.
  • T. S. Orden, Exact virial coefficients B8, B9 and B10 of parallel hard squares and cubes: certificate tables and code, Zenodo (2026): doi.org/10.5281/zenodo.24094959.
  • OEIS A002218 (two-connected graphs), A013922 (labelled two-connected graphs), A001349 (connected graphs).

Notes on numbers used on this page

Each number marked ▲ on this page has its note here.

  • B8 of parallel hard squares (d = 2), exact, in the convention of unit-volume particles with B2 = 2^(d-1): −619/15120. Not peer reviewed.
  • B9 of parallel hard squares, exact, in the convention of unit-volume particles with B2 = 2^(d-1): −35880731/25401600. Not peer reviewed.
  • B10 of parallel hard squares, exact, in the convention of unit-volume particles with B2 = 2^(d-1): −1564199453/914457600. Not peer reviewed. B10 was computed in full by two methods; a third method checked it on a sample.
  • B8 of parallel hard cubes (d = 3), exact, in the convention of unit-volume particles with B2 = 2^(d-1): −197397143/5292000. Not peer reviewed.
  • B9 of parallel hard cubes, exact, in the convention of unit-volume particles with B2 = 2^(d-1): 1745083154519/42674688000. Not peer reviewed.
  • B10 of parallel hard cubes, exact, in the convention of unit-volume particles with B2 = 2^(d-1): 84713412457573/493807104000. Not peer reviewed. B10 was computed in full by two methods; a third method checked it on a sample.

These notes appear in every version of this page.

Revision history

  1. 2026-11-20 · corrected

    Wording fixes from an outside review: the coefficients known exactly before are named correctly, the Mayer credit and the claim about Wheatley's method are limited to what was checked, the two readings of a missing line are explained, the time zone of the record's date is given, the negative signs of the three new coefficients for squares are stated as an exact confirmation of the printed decimals, and the record's title in the sources is corrected.

  2. 2026-11-16 · revised

    The Mayer graphs paragraph now gives the paper it refers to, which is added to the sources.

  3. 2026-11-16 · created

    Written as a from-the-start explainer of the exact virial coefficients, with worked tables, an overlap playground and a calculator.

How to cite this

Tyler Satchel Orden (2026). Exact virial coefficients of hard squares and cubes, explained from the start. Cyborg Mathematics. https://cyborgmathematics.com/writing/hard-cube-virial-from-zero (updated November 20, 2026)

This page has no DOI of its own. Cite the URL and the date; the revision history above keeps a dated citation meaningful.

BibTeX
@misc{orden2026hardcubevirialfromzero,
  author       = {Tyler Satchel Orden},
  title        = {Exact virial coefficients of hard squares and cubes, explained from the start},
  year         = {2026},
  howpublished = {Cyborg Mathematics},
  url    = {https://cyborgmathematics.com/writing/hard-cube-virial-from-zero}
}

See also