I understand that
FixedPoint[(# + 2/# )/2 &, 1.]
can be written
x[0] = 1; x[1] = 2;
x[k_] := N@(x[k - 1] + x[1]/x[k - 1])/2
x@5
but I don't understand how to interpret
CompositeP[n_Integer] := FixedPoint[n + PrimePi[#] + 1 &, n] - n
mathematically. How could it be rewritten using a recurrence relation? How would it be written in standard mathematical notation?