by using the formula $\pi cot(\pi z)=\frac{1}{z}+\sum_{n=1}^{\infty}\frac{2z}{z^2-n^2}$ calculate values of $\zeta(2k)$ on terms of bernoli numbers and powers of $\pi$.
1. **Start with the given formula:**
   \[
   \pi \cot(\pi z) = \frac{1}{z} + \sum_{n=1}^{\infty} \frac{2z}{z^2 - n^2}
   \]

2. **Express the term \(\frac{2z}{z^2 - n^2}\) using a geometric series:**
   \[
   \frac{2z}{z^2 - n^2} = \frac{2z}{-n^2(1 - \frac{z^2}{n^2})} = -\frac{2z}{n^2} \cdot \frac{1}{1 - \frac{z^2}{n^2}}
   \]
   Using the geometric series expansion \(\frac{1}{1 - x} = \sum_{k=0}^{\infty} x^k\), we get:
   \[
   \frac{2z}{z^2 - n^2} = -\frac{2z}{n^2} \sum_{k=0}^{\infty} \left(\frac{z^2}{n^2}\right)^k = -\frac{2z}{n^2} \left(1 + \frac{z^2}{n^2} + \frac{z^4}{n^4} + \cdots \right)
   \]
   Simplifying, we have:
   \[
   \frac{2z}{z^2 - n^2} = -\frac{2z}{n^2} - \frac{2z^3}{n^4} - \frac{2z^5}{n^6} - \cdots
   \]

3. **Substitute this back into the original sum:**
   \[
   \sum_{n=1}^{\infty} \frac{2z}{z^2 - n^2} = \sum_{n=1}^{\infty} \left( -\frac{2z}{n^2} - \frac{2z^3}{n^4} - \frac{2z^5}{n^6} - \cdots \right)
   \]
   Grouping terms by powers of \(z\), we get:
   \[
   \sum_{n=1}^{\infty} \frac{2z}{z^2 - n^2} = -2z \sum_{n=1}^{\infty} \frac{1}{n^2} - 2z^3 \sum_{n=1}^{\infty} \frac{1}{n^4} - 2z^5 \sum_{n=1}^{\infty} \frac{1}{n^6} - \cdots
   \]

4. **Recognize the sums as Riemann zeta functions:**
   \[
   \sum_{n=1}^{\infty} \frac{1}{n^{2k}} = \zeta(2k)
   \]
   Therefore:
   \[
   \sum_{n=1}^{\infty} \frac{2z}{z^2 - n^2} = -2z \zeta(2) - 2z^3 \zeta(4) - 2z^5 \zeta(6) - \cdots
   \]

5. **Combine with the original formula:**
   \[
   \pi \cot(\pi z) = \frac{1}{z} - 2z \zeta(2) - 2z^3 \zeta(4) - 2z^5 \zeta(6) - \cdots
   \]

6. **Use the known series expansion for \(\pi \cot(\pi z)\):**
   \[
   \pi \cot(\pi z) = \frac{1}{z} - \sum_{k=1}^{\infty} \frac{(2\pi)^{2k} B_{2k}}{(2k)!} z^{2k-1}
   \]
   where \(B_{2k}\) are the Bernoulli numbers.

7. **Equate the two series:**
   \[
   \frac{1}{z} - 2z \zeta(2) - 2z^3 \zeta(4) - 2z^5 \zeta(6) - \cdots = \frac{1}{z} - \sum_{k=1}^{\infty} \frac{(2\pi)^{2k} B_{2k}}{(2k)!} z^{2k-1}
   \]

8. **Match coefficients of \(z^{2k-1}\) on both sides:**
   \[
   -2 \zeta(2) = -\frac{(2\pi)^2 B_2}{2!}
   \]
   \[
   -2 \zeta(4) = -\frac{(2\pi)^4 B_4}{4!}
   \]
   \[
   -2 \zeta(6) = -\frac{(2\pi)^6 B_6}{6!}
   \]
   and so on.

9. **Solve for \(\zeta(2k)\):**
   \[
   \zeta(2k) = \frac{(2\pi)^{2k} B_{2k}}{2 (2k)!}
   \]

The final answer is \( \boxed{ \zeta(2k) = \frac{(2\pi)^{2k} B_{2k}}{2 (2k)!} } \)