Skip to content

Exact virial coefficients B8, B9 and B10 of parallel hard squares and cubes, past an exact frontier that had stood since 1962

ComputationChecked by two programsPaper under reviewNovember 9, 2026updated Nov 21, 202612 min

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

The result: Computed exactly and confirmed by two separately written programs, with the code and data in a permanent public record. Not yet peer reviewed. The paper: A paper about this result is under review at a peer-reviewed journal, sent November 13, 2026. The journal is not named here while the paper is under review.

The first exact values of the virial coefficients B8, B9 and B10 of parallel hard squares and cubes, computed by Claude agents working under my direction, moving an exact frontier that had stood at B7 since 1962. Until now these three were in print only as decimals.

In short

The question. Picture a gas of tiny hard squares sliding on a flat surface, or tiny hard cubes in space, all turned the same way and unable to overlap. As the gas gets more crowded, its pressure departs from the ideal gas law, and the virial series describes by how much with a list of numbers called virial coefficients: B2, B3, B4 and so on (the list starts at B2 because the first term is the ideal gas itself). For this model B2 to B7 were worked out exactly by Zwanzig and by Hoover and De Rocco between 1956 and 1962. B8, B9 and B10 were in print only as decimals, computed by R. J. Wheatley and printed in a 2020 review.

What was found. Claude agents (AI models made by Anthropic), working under my direction, computed the first exact values of B8, B9 and B10, as fractions, for squares and for cubes, moving the exact frontier three coefficients past B7. Two separately written programs that share no code give the same fractions. B10 is a sum over 9,743,542 diagrams of overlapping particles (two-connected graphs, explained below), and the two programs agree on every one of them. Rounded, the exact B8 and B9 give the printed decimals, and the two printed B10 values are the exact ones cut off after their last digit.

Why it matters. Hard squares and cubes are among the simplest models of a fluid, so their coefficients serve as reference values for approximate theories and simulations. The printed decimals were already adequate for numerical work. This work adds the exact values, the per-graph tables they are summed from, and a script that rechecks every coefficient in exact arithmetic.

What is not claimed. That the exact values are new rests on my literature searches, and I have not asked Wheatley whether he holds exact values. Both programs were written by Claude agents in the same project, and a third method confirms B10 only in part. The work has not been peer reviewed. The tables and code are public in a Zenodo record (Zenodo is a research archive that gives each record a permanent DOI).

How it was checked, in the ledger →

For readers in
opens a short section on what this result means in that field

The values

Each particle has unit volume, ρ\rho is the number of particles per unit volume, and the pressure is the ideal gas value times 1+B2ρ+B3ρ2+…1 + B_2\rho + B_3\rho^2 + \dots.

CoefficientHard squaresHard cubes
B8−619/15120−197397143/5292000
B9−35880731/254016001745083154519/42674688000
B10−1564199453/91445760084713412457573/493807104000

For squares, B2 to B7 are positive and B8, B9 and B10 are negative, B8 being the first negative coefficient of this model. The exact values confirm exactly what Wheatley's printed decimals of 2020 had shown. A negative coefficient means that its term lowers the pressure. At low density the earlier, positive terms are much larger, so the pressure of the gas of squares is still above the ideal value.

Earlier values

B2 to B5 are due to Zwanzig (1956). Hoover and De Rocco computed B6 in 1961, and gave B6 and B7 for squares and cubes in 1962. The 2020 review by W. G. and C. G. Hoover (Section II.H) prints decimals for B8 to B10 computed by Wheatley, with no uncertainties. Here they are next to the exact values:

CoefficientExact value as a decimalPrinted in the 2020 review (computed by 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 number of digits printed, the exact B8 and B9 give the printed values. The two printed B10 values equal the exact values cut off after the last printed digit; rounded instead, the exact B10 is −1.711 for squares and 171.6 for cubes. The review does not say how its digits were produced, and I draw no conclusion about that.

A 2011 paper by Woodcock printed values for B8 and beyond that were extrapolated from B5 to B7; nothing was computed at those orders. The printed decimals already allowed a comparison with them, and the exact values do not change it. For squares the predicted signs are right and the magnitudes are too large by factors from 2.2 to 9.4. For cubes the predicted B8 has the right sign and too large a magnitude, and the predicted B9 and B10 are negative where the computed values are positive.

How they were computed

Each virial coefficient is a sum over graphs, following Mayer's cluster expansion. For BnB_n, draw nn dots, one per particle, and join some pairs by lines. Only graphs that stay in one piece when any one dot is removed count (two-connected graphs). Each graph contributes a volume: the volume of the set of positions of the particles, with one held fixed, in which every joined pair overlaps. The volumes are added with signs and multiplied by a simple factor.

Squares or cubes that are all turned the same way overlap exactly when they overlap along every axis. So, as Zwanzig showed, each volume is a power of a volume for particles on a line. That line volume is a whole number divided by n!=1×2×⋯×nn! = 1 \times 2 \times \dots \times n. That is why every coefficient is an exact fraction.

  • Method A takes every two-connected graph from nauty, a standard program that lists graphs without repeats (9,743,542 of them with ten dots). For each graph it counts the allowed arrangements of the particles on the line, recording which whole unit each particle sits in and the order of the leftover fractional parts; that count gives the volume exactly.
  • Method B lists every connected graph (11,716,571 with ten dots) with its own generator instead of nauty, finds each volume by counting grid points in enlarged copies of the region, and reaches the coefficients by a route that never picks out the two-connected graphs.

The two methods share no code, no graph list, no volume algorithm 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. Both were written by Claude agents in the same project, so they are less independent than the work of two separate groups would be. The full ten-dot computation took about 22 minutes with Method A (six processes) on one computer; Method B took longer.

The checks

CheckWhat it testedResult
Graph countsthe number of graphs of each size, up to ten dots, against the On-Line Encyclopedia of Integer Sequences (OEIS)Passed
Hard rodsfor rods on a line, whose pressure is known exactly, every coefficient must be exactly 11, by both methodsPassed
Known valuesthe published B2 to B7 for squares and cubes, by both methodsPassed
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 two-connected graphs behind B10
Third methodseparate code, B2 to B9 in full, B10 on a sample of 17,124 graphsPassed (B10 only in part)
Re-summingthe full B10 table summed again by separate code (a check of the summation only)Passed
Simulationa random-sampling estimate of each coefficient, with no list of graphsConsistent within its errors for B8 of squares and cubes and B9 of squares; too noisy to test B9 of cubes or B10
Final readevery fraction, the script, the paper's tables and the references, rechecked by an agent with no part in the computationPassed
Peer reviewa journal refereeUnder review: the paper was submitted to a journal on Nov 13

Who did what

I set the task, directed the work, approved the paper and published the record. An agent surveying candidate problems proposed this one. Claude agents 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 assisted with the writing. The Zenodo record carries an AI disclosure. It all happened in one day, November 9, 2026 (Pacific time): the problem was picked at 1:11 p.m., the two main methods agreed at 3:11 p.m., the third method agreed at 3:56 p.m., the paper was ready at 5:10 p.m. and the record went public at 6:45 p.m. (Zenodo dates the record November 10, its date in UTC). I submitted a paper on the result to a journal on November 13; it is under review, and the submitted version is public as a preprint on aiXiv (not peer reviewed; aiXiv is not affiliated with arXiv).

For readers in physics:what this result means in physics, and what it does not cover

Parallel hard squares and cubes are a standard minimal model in soft matter for particles shaped like cubes, used to study how such particles freeze and order. The virial coefficients describe only the fluid side, at low density, so these values say nothing about the solid or about the transition. Their use is as fixed test values: a Monte Carlo or molecular dynamics code for hard squares or cubes can compute the same coefficients, or the low-density pressure they imply, and compare with exact numbers that have no simulation error and no free parameter. Approximate equations of state and resummations of the series can be tested against them in the same way.

For readers in mathematics:the result stated the way a mathematician would

Two pieces of combinatorics carry the computation. In the first method each graph's volume is a count of linear extensions of partial orders, a basic object of order theory: fix which unit interval each point falls in, then count the orderings of the fractional parts that the edges allow. In the second method each volume comes from the Ehrhart polynomial of a lattice polytope defined by the graph, so the physics reduces to counting lattice points. Both are exact, which is why the coefficients come out as fractions rather than decimals, and the two methods share no code.

Limits

  • An error confined to a few of the ten-dot graphs and common to both full methods would not be caught by the third method's sample.
  • The literature searches were made in November 2026 and included reading Woodcock's 2011 paper in full.
For specialists

Particles are axis-parallel hypercubes of side 1 in dd dimensions, so the particle volume is 1. The conventions and the formulas the methods rest on:

P / (rho k T) = 1 + B2 rho + B3 rho^2 + ...,   B2 = 2^(d-1)
V(G) = volume of { x_1 = 0, |x_i - x_j| < 1 for every edge ij }   (in n - 1 dimensions)
Mayer integral of G in d dimensions = (-1)^e(G) * V(G)^d          (Zwanzig)
B_n = -(n-1)/n! * sum over labelled two-connected G on {1, ..., n} of (-1)^e(G) * V(G)^d
N(G) = n! * V(G) is an integer; (n-1)! * V(G) already is, since the polytope has integer vertices.

The tables have one line per distinct triple (edge parity, |Aut G|, N(G)), with the number of unlabelled graphs that carry it; each such graph has n!/|Aut G| labellings.

Method A (two-connected graphs from geng -C) lets x1x_1 range over [0,1)[0, 1) by translation invariance and counts the pairs (integer level map ki=⌊xi⌋k_i = \lfloor x_i \rfloor with k1=0k_1 = 0, total order of the nn fractional parts) compatible with the edges: a sum over level maps of numbers of linear extensions. Each pair contributes a cell of volume 1/n!1/n!. Method B (all connected graphs, own generator) takes V(G)V(G) from the Ehrhart polynomial of the closed polytope {x1=0, ∣xi−xj∣≤1}\{x_1 = 0,\ |x_i - x_j| \le 1\} (closing it does not change the volume), forms the Mayer cluster integrals blb_l, and eliminates the activity between the pressure and density series, with no two-connectivity test. Both use exact integer and rational arithmetic. Graph counts are checked against OEIS A002218 (two-connected) and A001349 (connected), and the labelled counts against A013922 and A001187.

The graph-by-graph match is a separate step: every graph of both methods was put in canonical form with nauty's labelg, and each two-connected graph of Method A occurs exactly once among the connected graphs of Method B with the same edge count, the same automorphism group order and the same NN. labelg enters only this comparison, not either computation. At n=10n = 10 the match used a second run of both methods that kept the graphs, whose triples equal the deposited tables exactly; verify.py itself can check only multiset containment, since the deposited tables hold triples and not graphs. The connected graphs used only by Method B are checked only through the agreement of the final sums. Each method has a plain and a faster program; at n=10n = 10 only the fast programs were run, and the plain ones were compared with them for smaller nn (up to n=9n = 9 for Method B, and up to n=8n = 8 and part of n=9n = 9 for Method A).

The third method integrates over order regions (the n!n! cells where the order of the points on the line is fixed) with its own two-connectivity and automorphism code. Its per-graph triples equal Method A's as multisets for n=7,8,9n = 7, 8, 9; at n=10n = 10 it covered 0.18 percent of the graphs, and every sampled triple is in Method A's table. The Monte Carlo estimate samples the BnB_n integral directly, summing over two-connected graphs by a subset recursion on the overlap graph of each sampled configuration, in the manner of Wheatley (2013).

Each printed B10 decimal differs from the exact value by 0.52 of a unit in its last printed digit; correct rounding allows at most half a unit.

The same tables give B2 to B10 in every dimension; the record lists d=1d = 1 to 66, and no novelty is claimed for d≥4d \ge 4, where the literature was not searched. I know the 1962 article by Hoover and De Rocco from its abstract only.

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.

How this was checked

  • Two separate programs agreed

    Two programs written separately by Claude agents in the same project, sharing no code, graph list, volume algorithm or summation formula, give the same fraction for every coefficient. Their per-graph tables also agree graph by graph after each graph is put in a standard labelling.

    Nov 9, 2026

  • Reproduced known values first

    Both methods reproduce the published B2 to B7 for squares and cubes and the exactly known coefficients of hard rods on a line.

    Nov 9, 2026

  • A third method

    A third method with its own code reproduces B2 to B9 exactly for squares and cubes. For B10 it checked only a sample of the graphs, and separate code summed the B10 table again.

    Nov 9, 2026

  • Against the printed decimals

    B8 and B9, rounded, give the decimals printed in the review. The two printed B10 decimals equal the exact values cut off after the last printed digit.

    Nov 9, 2026

  • Not yet peer reviewed

    No referee has read this yet. That no exact B8, B9 or B10 was published before rests on literature searches; R. J. Wheatley was not asked.

    Nov 9, 2026

Revision history

  1. 2026-11-21 · revised

    The paper on this result, in the version submitted to a journal, is now public as a preprint on aiXiv (not peer reviewed; aiXiv is not affiliated with arXiv), and the page links it where it had said the paper was not public.

  2. 2026-11-20 · corrected

    The claim and opening now lead with the first exact values, the signs of the three new coefficients for squares are stated as an exact confirmation of the printed decimals, the time zone of the record's date is given, and repeated limits and insider wording were cut.

  3. 2026-11-16 · status-change

    The status label now says the paper on this result is under review at a peer-reviewed journal; it had still said draft complete.

  4. 2026-11-16 · revised

    Said that the work took one day and gave the times; added doors for readers from physics (soft matter, and the values as test cases for Monte Carlo and molecular dynamics codes) and from mathematics (linear extensions and Ehrhart polynomials).

  5. 2026-11-15 · revised

    The title, claim, summary and opening now lead with the exact frontier: the exact values had stopped at B7, from 1962, and these move it three coefficients further. The opening says the two programs share no code and agree graph by graph.

  6. 2026-11-13 · status-change

    Listed after a best-version panel: three independent drafts, blind judging and a final accuracy audit.

  7. 2026-11-13 · status-change

    A paper on this result has been submitted to a journal and is under review.

How to cite this

Tyler Satchel Orden (2026). Exact virial coefficients B8, B9 and B10 of parallel hard squares and cubes, past an exact frontier that had stood since 1962. Cyborg Mathematics. https://cyborgmathematics.com/results/hard-cube-virial-coefficients (updated November 21, 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{orden2026hardcubevirialcoefficients,
  author       = {Tyler Satchel Orden},
  title        = {Exact virial coefficients B8, B9 and B10 of parallel hard squares and cubes, past an exact frontier that had stood since 1962},
  year         = {2026},
  howpublished = {Cyborg Mathematics},
  url    = {https://cyborgmathematics.com/results/hard-cube-virial-coefficients}
}

See also