For integer m≥0 and functions f,g, reverse the order in ∑r=1m+1f(r)∑s=r−1mg(s), giving the new bounds explicitly. Next let X0=0 and, conditional on Xn−1=s, let Xn be uniform on 0,…,s+1. Calculate E[X1], all three probabilities for X2, and E[X2]. Express P(Xn=0) using the distribution of Xn−1, and find the corresponding formula for P(Xn=r) for 1≤r≤n. Deduce E[Xn]=(1+E[Xn−1])/2 and solve for E[Xn] as a function of n.
Show final result
The reversed sum is ∑s=0mg(s)∑r=1s+1f(r). E[X1]=1/2. The probabilities for X2=0,1,2 are 5/12,5/12,1/6, with mean 3/4. In general P(Xn=r)=∑s=max(0,r−1)n−1P(Xn−1=s)/(s+2) and E[Xn]=1−2−n.