Iterate2[a_,b_,n_]:=Module[{x,y,i}, x=a; y=b; For[i=1,i