Introduction
Let Rn be the last time Xn appeared in the past Rn(Xn)=min{j≥0:X−j−j+n−1=Xn}Let us define a new source alphabet U=Xn and source {Ui} by setting Ui=Xii+n−1, i=0,±1,±2,…We see the new process is also stationary. >[!lem] Kac’s Lemma >For any u∈U such that P(U1=u)>0 let Qu(i)=P(U−i+1=u,Uj=u for −i+1<j<1∣U1=u)for i=1,2,…. Then E[Rn(Xn)∣Xn=xn]=P(Xn=xn)1for stationary ergodic sources.