I've been searching for references that deals with the Egorychev methods and particularly with the integral representations for binomial coefficients.
$$\binom{n}{k}=\frac{1}{2\pi i} \oint_{|z|<\infty}\frac{(1+z)^n}{z^{k+1}}dz$$ and $$\binom{n}{k}=\frac{1}{2\pi i} \oint_{|z|<1}\frac{dz}{(1-z)^{k+1}z^{n-k+1}}$$ My doubt here is, when to use each one? I've seen problems here on MSE where both are used but couldn't figure out when to choose over another. Also I managed to get (?) a sketch of a proof but i would like to see this in the depth it deserves, and there's where I haven't had luck finding references. I am aware of Marko Riedel pdf about the Egorychev method and the Egorychev book itself. But there's no more besides these? And why isn't this more popular and used? I don't remember seeing these results in complex analysis books (not that I can remember at least).
Anyway, thanks in advance if anyone can answer the question about when to use each case and/or conditions to consider to choose.
Keywords to look for applications of this kind are residue calculus and Cauchy integral formula in books of combinatorics.
OPs examples taken from Marko Riedels paper are two useful representations of the binomial coefficient $\binom{n}{k}$ using the residue calculus, which is used here as technique to extract a coefficient of a series expansion.
In the first case we select the coefficient of $z^k$ from the polynomial $(1+z)^n$. We obtain \begin{align*} \frac{1}{2\pi i} \oint_{|z|<\infty}\frac{(1+z)^n}{z^{k+1}}dz &=[z^k](1+z)^n\color{blue}{=\binom{n}{k}}\tag{1} \end{align*}
In the second case we select the coefficient of $z^{n-k}$ from the binomial series expansion $(1-z)^{-k-1}$ at $z=0$. We obtain \begin{align*} \frac{1}{2\pi i} \oint_{|z|<1}\frac{dz}{(1-z)^{k+1}z^{n-k+1}}\ &=[z^{n-k}](1-z)^{-k-1}\\ &=[z^{n-k}]\sum_{q=0}^{\infty}\binom{-k-1}{q}(-z)^q\\ &=\binom{-k-1}{n-k}(-1)^{n-k}\\ &\,\,\color{blue}{=\binom{n}{k}}\tag{2} \end{align*}
Here we also use the coefficient of operator $[z^k]$ to denote the coefficient of $z^k$ of a series. On the other hand, whenever we see this operator $[z^k]$ in use we can interpret it as application of the residue calculus in disguise.
Note: It is usually a matter of experience which of the representations $(1+z)^n$ in (1) or $(1-z)^{-k-1}$ in (2) is the right choice for an appropriate simplification of the expression under consideration.
Some references:
Mathematics for the Analysis of Algorithms by D. H. Greene and D. E. Knuth. In section 4.3.2 Residue Calculus there are examples for the Hadamard product and the diagonalisation of series. Given \begin{align*} F(w,z)=\sum_{m,n\geq 0}\binom{m+n}{n}w^mz^n=\frac{1}{1-w-z} \end{align*} we have the diagonalisation of $F(w,z)$: \begin{align*} G(z)=\frac{1}{2\pi i}\oint_{C}\frac{dt}{(1-t-z/t)t}=\sum_{n}{\binom{2n}{n}}z^n \end{align*}
Combinatorial Enumeration by I. P. Goulden and D. M. Jackson. In section I.2.3 An Identity (by Residue Composition) the residue calculus is used to show the identity \begin{align*} \sum_{k=0}^{n}\binom{2n+1}{2k+1}\binom{j+k}{2n}=\binom{2j}{2n} \end{align*}
Advanced Combinatorics by L. Comtet. We find already in Section I.12: Formal Series the diagonalisation example, but here in the context of formal power series.
Enumerative Combinatorics, Vol. II by R. P. Stanley This classic presents besides many other examples of the residue calculus also the diagonalisation example in section 6.3 Diagonals which contains a thorough treatment of this theme.
Generating Functionology by H. S. Wilf. See for instance Cauchy's formula which is formula (2.25) in section 2.4 Power Series, Analytic Theory.
Analytic Combinatorics by P. Flajolet and R. Sedgewick. Here I finally like to cite Theorem IV.4 from section IV.2 Analytic and meromorphic functions: