FixedPointList
FixedPointList[f,expr] generates a list giving the results of applying f repeatedly, starting with expr, until the results no longer change.
FixedPointList[f,expr,n] stops after at most n steps.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.