TOPICS
Search

Glynn Formula


The Glynn formula expresses the permanent of a matrix as a sum over sign vectors. For an n×n matrix A=(a_(ij)) over a field whose characteristic is not 2, with n a positive integer, it states that

 per(A)=1/(2^(n-1))sum_(delta)(product_(i=1)^ndelta_i)product_(j=1)^n(sum_(i=1)^ndelta_ia_(ij)),

where the sum is over the 2^(n-1) vectors delta=(delta_1,...,delta_n) in {-1,1}^n with delta_1=1 (Glynn 2010).

To prove the formula, expand the product of column sums and let lambda_i count the factors drawn from row i. Summing over signs cancels every term unless each lambda_i with i>1 is odd. Since sum_(i)lambda_i=n, this forces every lambda_i to equal 1. The surviving terms are exactly the permutation terms defining the permanent, each with weight 2^(n-1).

Applying the formula to the transpose gives a sum of products of linear forms, one form in each row of the original matrix per term. Liu (2026) reports that this row-wise decomposition is shortest over every field of characteristic other than 2. For n>=3, every shortest row-wise decomposition is obtained from the Glynn decomposition by the same diagonal change of coordinates in every row and by rescaling the factors within summands. Liu credits AI assistance in developing the proof.

Ordering the sign choices by a Gray code changes a single sign at each step, so the n column sums can be updated in O(n) arithmetic operations. Forming their product also takes O(n) operations per term, giving O(n2^n) arithmetic complexity, the same asymptotic bound as the implementation of the Ryser formula using a Gray code. Here O denotes big-O notation.

In the Wolfram Language, the Glynn method can be selected in Permanent with Method -> "Glynn".

Glynn's formula also gives an upper bound of 2^(n-1) on the ordinary Chow rank of the permanent, where the linear factors may mix entries from different rows. Xu (2026) reports that this bound is attained for 3<=n<=10 over every field of characteristic zero.


See also

Glynn's Alon-Tarsi Theorem, Gray Code, Permanent, Ryser Formula

Explore with Wolfram|Alpha

References

Glynn, D. G. "The Permanent of a Square Matrix." Europ. J. Combin. 31, 1887-1891, 2010. https://doi.org/10.1016/j.ejc.2010.01.010.Liu, Y. "The Tensor Rank of the Permanent." Hexagon, Nov. 26, 2026. https://hexagonmath.org/2611.01113v1.Xu, R. "The Ordinary Chow Rank of the Permanent in Orders Three through Ten." Hexagon, 2026. https://hexagonmath.org/2611.01338v1.

Cite this as:

Weisstein, Eric W. "Glynn Formula." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GlynnFormula.html

Subject classifications