Solve an equation inside a loop

Hello all,

I am trying to solve a polynomial equation in each loop:

For[i = 0,
i < 21,
i++,
y = i; R[i] = Solve[x + x^5*y + y == x, x]
]

I am not sure how to store the solutions in a vector R since there are several solutions. Is it correct?

For simplicity, I am even interested only in the largest real solution

Try

R={};
For[i = 0,i < 21,i++,
  AppendTo[R,x/.Solve[x + x^5*i +i == x, x][[1]]]];
R

or perhaps more simply

R=Table[x/.Solve[x + x^5*i +i == x, x,Reals][[1]],{i,0,21}]