We know that Pascal's triangle obeys the recurrence relation $\binom{n}{k} = \binom{n - 1}{k - 1} + \binom{n - 1}{k} $ And we can simply $\binom{n}{k}$ by $\frac{n!}{k!\,(n - k)!}$
I have a recurrence relation where $$ f(n, k) = f(n - 1, k) + f(n - 2, k - 1) $$
How can I get a generel formula for that?
Thanks in advance!
Edited: Base Case: $f(n, 1) = n$ and $f(n, k) = 0$ when $n < k$
From the stated boundary conditions of the recurrence relation \begin{align*} f(n,k)=f(n-1,k)+f(n-2,k-1)\qquad\qquad n\geq 2, k\geq 1\tag{1} \end{align*} which are \begin{align*} f(n,1)=1\qquad n\geq 1\\ f(n,k)=0\qquad n<k \end{align*} it also follows by (1) \begin{align*} f(n,0)=1\qquad n\geq 0 \end{align*}
LHS=RHS gives
In order to extract the coefficients of $F(x,y)$ we expand the generating function in powers of $x$ and $y$.
We extract the coefficient $[x^ny^k]$ and we also use Iverson brackets \begin{align*} [[P(x)]]=\begin{cases} 1&\qquad P(x) \ \text{ true}\\ 0&\qquad P(x) \ \text{ false} \end{cases} \end{align*} This way we can treat multiple cases in one expression.
We finally conclude