The Egorychev method is a collection of techniques introduced by Georgy Egorychev for finding identities among sums of binomial coefficients, Stirling numbers, Bernoulli numbers, Harmonic numbers, Catalan numbers and other combinatorial numbers. The method relies on two observations. First, many identities can be proved by extracting coefficients of generating functions. Second, many generating functions are convergent power series, and coefficient extraction can be done using the Cauchy residue theorem (usually this is done by integrating over a small circular contour enclosing the origin). The sought-for identity can now be found using manipulations of integrals. Some of these manipulations are not clear from the generating function perspective. For instance, the integrand is usually a rational function, and the sum of the residues of a rational function is zero, yielding a new expression for the original sum. The residue at infinity is particularly important in these considerations. Should a series appear during summation that is not finite the contours must be chosen such as to make the series converge. Some of the integrals employed by the Egorychev method are:
First binomial coefficient integral (nk)=resz(1+z)nzk+1=12πi∫|z|=ρ(1+z)nzk+1dz where 0<ρ<∞
Second binomial coefficient integral (nk)=resz1(1−z)k+1zn−k+1=12πi∫|z|=ρ1(1−z)k+1zn−k+1dz where 0<ρ<1
Exponentiation integral nk=k!reszexp(nz)zk+1=k!2πi∫|z|=ρexp(nz)zk+1dz: where 0<ρ<∞
Iverson bracket [[k≤n]]=reszzkzn+111−z=12πi∫|z|=ρzkzn+111−zdz where 0<ρ<1
Stirling number of the first kind [nk]=n!k!resz1zn+1(log11−z)k=n!k!12πi∫|z|=ρ1zn+1(log11−z)kdz where 0<ρ<1
Stirling number of the second kind {nk}=n!k!resz(exp(z)−1)kzn+1=n!k!12πi∫|z|=ρ(exp(z)−1)kzn+1dz where 0<ρ<∞.
Example I Suppose we seek to evaluate
Sj(n)=∑k=0n(−1)k(nk)(n+kk)(kj) which is claimed to be :(−1)n(nj)(n+jj). Introduce :(n+kk)=12πi∫|z|=ε(1+z)n+kzk+1dz and :(kj)=12πi∫|w|=γ(1+w)kwj+1dw. This yields for the sum : 12πi∫|z|=ε(1+z)nz12πi∫|w|=γ1wj+1∑k=0n(−1)k(nk)(1+z)k(1+w)kzkdwdz=12πi∫|z|=ε(1+z)nz12πi∫|w|=γ1wj+1(1−(1+w)(1+z)z)ndwdz=12πi∫|z|=ε(1+z)nzn+112πi∫|w|=γ1wj+1(−1−w−wz)ndwdz=(−1)n2πi∫|z|=ε(1+z)nzn+112πi∫|w|=γ1wj+1(1+w+wz)ndwdz. This is
(−1)n2πi∫|z|=ε(1+z)nzn+112πi∫|w|=γ1wj+1∑q=0n(nq)wq(1+z)qdwdz. Extracting the residue at w=0 we get
(−1)n2πi∫|z|=ε(1+z)nzn+1(nj)(1+z)jdz=(nj)(−1)n2πi∫|z|=ε(1+z)n+jzn+1dz=(−1)n(nj)(n+jn) thus proving the claim. There are no convergence issues here as the sums involved are finite and with n+k and k not being negative we can choose any non-zero finite value for ε and γ.
Example II Suppose we seek to evaluate ∑k=1nk(2nn+k). Introduce
(2nn+k)=12πi∫|z|=ε1zn−k+11(1−z)n+k+1dz. Observe that this is zero when k>n so we may extend k to infinity to obtain for the sum
12πi∫|z|=ε1zn+11(1−z)n+1∑k≥1kzk(1−z)kdz=12πi∫|z|=ε1zn+11(1−z)n+1z/(1−z)(1−z/(1−z))2dz=12πi∫|z|=ε1zn1(1−z)n1(1−2z)2dz. Now put z(1−z)=w so that (observe that with w=z+⋯ the image of |z|=ε with ε small is another closed circle-like contour which makes one turn and which we may certainly deform to obtain another circle |w|=γ)
z=1−1−4w2and(1−2z)2=1−4w and furthermore
dz=−12×12×(−4)×(1−4w)−1/2dw=(1−4w)−1/2dw to get for the integral
12πi∫|w|=γ1wn11−4w(1−4w)−1/2dw=12πi∫|w|=γ1wn1(1−4w)3/2dw. This evaluates by inspection to (use the Newton binomial)
4n−1(n−1+1/2n−1)=4n−1(n−1/2n−1)=4n−1(n−1)!∏q=0n−2(n−1/2−q)=2n−1(n−1)!∏q=0n−2(2n−2q−1)=2n−1(n−1)!(2n−1)!2n−1(n−1)!=n22n(2nn)=12n(2nn). Here the mapping from z=0 to w=0 determines the choice of square root. For the conditions on ϵ and γ we have that for the series to converge we require |z/(1−z)|<1 or ϵ/(1−ϵ)<1 or ϵ<1/2. The closest that the image contour of |z|=ϵ comes to the origin is ϵ−ϵ2 so we choose γ<ϵ−ϵ2 for example γ=ϵ2−ϵ3. This also ensures that γ<1/4 so |w|=γ does not intersect the branch cut [1/4,∞) (and is contained in the image of |z|=ϵ). For example ϵ=1/3 and γ=2/27 will work. This example also yields to simpler methods but was included here to demonstrate the effect of substituting into the variable of integration.
Computation using formal power series We may use the change of variables rule 1.8 (5) from the Egorychev text (page 16) on the integral (recall that by the convergence requirement the poles at z=1 and z=1/2 are not inside the contour since ε<1/2):
12πi∫|z|=ε1zn1(1−z)n1(1−2z)2dz=resz1zn1(1−z)n1(1−2z)2 with A(z)=z(1−2z)2 and f(z)=11−z. We get h(z)=z(1−z) and find
resw1wn+1[A(z)f(z)h′(z)]|z=g(w). with g the inverse of h. This becomes
resw1wn+1[z/(1−2z)2(1−2z)/(1−z)]|z=g(w) or alternatively
resw1wn+1[z(1−z)(1−2z)3]|z=g(w)=resw1wn[1(1−2z)3]|z=g(w). Observe that (1−2z)2=1−4z+4z2=1−4z(1−z)=1−4w so this is
resw1wn1(1−4w)3/2 and the rest of the computation continues as before.
External links Hosam Mahmoud, 2022, History and examples of Egorychev method Marko Riedel, 2024, Computational examples of using the Egorychev method to evaluate sums involving types of combinatorial numbers (parts 1 and 2, formal power series and residue operators Marko Riedel, 2024, Computational examples of using the Egorychev method to evaluate sums involving types of combinatorial numbers (part 3, complex variables
References Egorychev, G. P. (1984). Integral representation and the Computation of Combinatorial sums. American Mathematical Society. ISBN 9780821898093. Riedel, Marko; Mahmoud, Hosam (2023). "Egorychev Method: A Hidden Treasure". La Matematica. 2 (4): 893–933. doi:10.1007/s44007-023-00065-y.