here's the Story:
Let $\epsilon_1.\epsilon_2,... $ be i.i.d numbers of machines for repair to the repair shop on mornings of days $1, 2,...$ . Assume that the shop is capable of repairing exactly K machine per day. Let $X_0$ be a (random) number of machines before repair in the end of day 0, which we assume to be independent of $\epsilon_l$-s. Define $X_n$ as the number of machines before repair in the end of day n. Then, For any n
$X_n+1 = max(X_n+\epsilon_{n+1}-K,0)$
I am trying to find conditions on $E[\epsilon]=\mu $ in which this process is transient, null recurrent and positively recurrent.
Edit:
Work had been done until now.
I already proved that for $\mu\leq K$ the process is recurrent (I proved by the sufficient condition to recurrence) now I should prove when it is positive recurrence (I guess I should some how use sufficient criterion for positive recurrence)
Thanks
Your recurrence for $X_{n+1}$ is a bit off; it should be $$X_{n+1} = (X_n-1)^+ + \varepsilon_{n+1}\tag 1 $$ (where $a^+:=\max\{a,0\}$). Let $a_k=\mathbb P(\varepsilon_1=k)$, then the transition probabilities are given by \begin{align} P_{ij} &= \mathbb P(X_{n+1}=j\mid X_n=i)\\ &= \mathbb P((i-1)^++\varepsilon_1=j)\\ &= \mathbb P(\varepsilon_1 = j - (i-1)^+)\\ &= a_{j-(i-1)^+}. \end{align} Let $\pi$ be the stationary distribution of $\{X_n\}$, assuming one exists. Let \begin{align} g_{\varepsilon_1}(s) := \mathbb E[s^{\varepsilon_1}]=\sum_{n=0}^\infty a_n s^n,\\ g_{\pi}(s) := \mathbb E[s^{\pi}] = \sum_{n=0}^\infty \pi_n s^n \end{align} be the generating functions of $\varepsilon_1$ and $\pi$. By a somewhat tedious computation detailed in Markov Chains: Gibbs Fields, Monte Carlo Simulation, and Queues (2008) by Pierre Brémaud (Example 5.5), we may show that $\mathbb E[\varepsilon_1]<1$ is a necessary and sufficient condition for $\pi$ to exist, and further that $$g_\pi(s) = (1-\mathbb E[\varepsilon_1])\frac{(s-1)g_{\varepsilon_1}(s)}{s - g_{\varepsilon_1}(s)}. $$