Consider a simple random walk in one dimension with reflective boundaries at $n=1$ and $n=N$. We can express it via the master equation: \begin{equation} P(n,t) = \frac{1}{2}P(n-1,t-1) + \frac{1}{2}P(n+1,t-1) \quad \text{if } n\neq 1 \;{\rm and} \;n\neq N, \end{equation} \begin{equation} P(n,t) = P(n-1,t-1) \quad \text{if } n = 1, \end{equation} \begin{equation} P(n,t) = P(n+1,t-1) \quad \text{if } n = N. \end{equation}
I would like to know the exact expression of $P(n,t)$. I thought this would be simple to find but I can't find a reference with a simple expression for it... Am I missing something?