Two identities for complex numbers with applications to special sequences and functions
Description
We present two identities for $n$ complex numbers.
\begin{enumerate}
\item {Let $P(z)=\alpha z^m + \beta z^{m-1} + \cdots $ be a polynomial of degree $m$ with $m\leq n$, and let $a_1,\cdots ,a_n$ be pairwise distinct complex numbers. Then,}
$$
\sum_{k=1}^n P(a_k) \prod_{j=1 \atop j\neq k}^n \frac{1}{a_k-a_j} = \left\{ \begin{array}{ll}
0, & \textrm{{if} $m<n-1$,} \\
\alpha, & \textrm{{if} $m=n-1$,} \\
\alpha (a_1+\cdots+a_n) +\beta, & \textrm{{if} $m=n$.}
\end{array} \right.
$$
\item For all pairwise distinct complex numbers $z_1,\cdots,z_n$ $(n\geq 2)$,
$$
1+\sum_{k=1}^n z_k -\prod_{k=1}^n z_k= \sum_{k=1}^n \prod_{j=1 \atop j\neq k}^n \left( 1+\frac{z_j(z_j-1)(z_k-1)}{z_k-z_j}\right).
$$
\end{enumerate}
\noindent Applications lead to formulas involving special sequences and functions like, for example,
$$
F_n= n -\sum_{k=1}^{n-1} \prod_{j=1 \atop j\neq k}^{n-1}
\left( 1+ \frac{2 (2\cos \frac{j\pi}{n} + i ) \cos \frac{j\pi}{n}\cos \frac{k\pi}{n} }{ \cos \frac{j\pi}{n}-\cos \frac{k\pi}{n} }\right) ,
$$
where $F_n$ denotes the $n$-th Fibonacci number.