Is this the right way to use for loop in order to find the sequence of $x_n$
x[0] = 0;
T[x_] := Piecewise[{{1 - x, 0 <= x < 1/7}, {(x + 6)/7,
1/7 <= x <= 1}}];
a[n_] := n/(n + 1);
b[n_] := n/(n + 5);
x[n_] := (1 - a[n - 1]) x[n - 1] +
a[n - 1]*T[(1 - b[n - 1]) x[n - 1] + b[n - 1] T[x[n - 1]]];
For[n = 1, n < 20, n++, Print[x[n]]];
Table. In your case you might replace the For-loop withTable[x[n] // N, {n, 20}]. – m_goldberg Apr 30 '16 at 08:02