Suppose you roll a $k$-sided die repeatedly, totaling your scores as you go, until you reach or surpass $n$. (For a real-world usage ... if you have a non-looping game board and only move forward, what are your odds of landing on a specific square?)
What is the probability that you actually hit $n$?
I'm trying to solve this myself and have gotten an ugly closed form for $k=2$, and have a pair of interrelated recursion expressions for $k=3$ . But I feel like there ought to be more elegant solutions than the ones I've achieved, so I thought I'd propose the problem to the community to see if someone else comes up with an answer whilst I work on it.
A recurrence for the probability is given by
\begin{align*} f_n = \left\{\begin{matrix} \dfrac{\sum_{i=1}^k f_{n-i}}{k} & n > k\\ \dfrac{(k+1)^{n-1}}{k^n}& 1\le n \le k \end{matrix}\right. \end{align*} and the corresponding generating function can be written as \begin{align*} F(x) &= \dfrac{1}{1-\dfrac{\sum_{i=1}^kx^i}{k}} \end{align*}