jk22 said:
In other words we write $$x_{n+1}=1/2*(x_n+1+1/x_n) $$
Computing the fix point is not exact for n=10 this would need a computer program but this method gives average at infinity is $$\phi=\frac {1+\sqrt {5}}{2}\approx 1.62$$
Average at ten using a program gave me 1.59
No, that first equation you wrote is false:
E \left( \frac{1}{X_n} \right) \neq \frac{1}{E X_n}
For instance,
X_1 = \begin{cases} 101 & \Pr = 1/2 \\<br />
\displaystyle \frac{1}{100} & \Pr = 1/2<br />
\end{cases}<br />
Thus,
E X_1 = \frac{1}{2} \left( 101 + \frac{1}{100} \right) = 50.50500000
so
\frac{1}{E X_1} \doteq 0.01980001980
but
E \left( \frac{1}{X_1} \right) = \frac{1}{2} \left( \frac{1}{101} + 100 \right) \doteq 50.00495050<br />
Just for interest's sake: what was the nature of the program you used?
When I do it in Maple 11 I get the following ##E X_n## values:
\begin{array}{rl}<br />
n & EX_n \\<br />
2 & 50.75497525 \\<br />
3 & 38.62872549 \\<br />
4 & 32.59731395 \\<br />
5 & 26.56027159 \\<br />
6 & 22.03256118 \\<br />
7 & 18.26083028 \\<br />
8 & 15.24344673 \\<br />
9 & 12.79228905 \\<br />
10 & 10.81267707 \\<br />
\end{array}<br />
Basically, starting from a sequence ##V_n## of ##X_n## values (which may have repeated values, so each entry has probability ##2^{-n}##), I form two new sequences ##M_{n+1} = [V_n(1)+1, \ldots ,V_n(2^n)+1]## and ##N_{n+1} = [1/V_n(1) , \ldots, 1/V_n(2^n) ]##, then get a new sequence ##V_{n+1}## of ##X_{n+1}## values by concatenating ##M_{n+1}## and ##N_{n+1}##, then sorting the entries from smallest to largest. The sequence ##V_{n+1}## has ##2^{n+1}## entries, but many entries are duplicated, so each individual entry has probability ##2^{-n-1}##. Of course, the sorting step is unnecessary, but makes the results easier to read.
Maple did all the computations of the ##V_n## in exact rational arithmetic, so roundoff errors are not an issue. However, I let the ##V_n(i)## values be converted to floating-point numbers in the computation of ##EX_n## because the exact rational value of ##EX_n## becomes a ratio of two huge integers when ##n## gets close to 10. In fact, the exact value of ##EX_{10}## is
\begin{array}{lcl} E X_{10} &= & \displaystyle\frac{I_{10}}{J_{10}}, \; \text{where}\\<br />
I_{10} &=& 1469579070445432944325748152877976451732541041634060024\\ &&653347052338236193574669483177095563513720147511715879 \\<br />
J_{10} &=& 1359126015084446126651435240624997445643066808400449966906136188164565\\<br />
&&14601326679253516313161435366438748160<br />
\end{array}<br />