AKG said:
How would you check that the recursion is valid?
When i said recursion being valid, i meant, making sure that the final number doesn't change by infinite application of recursion.
actually, since each step in the recursion produces the same number, why would the infinite recursion be any different?
umm, let me try and give an example,
Let f(x) = x
f(x) = x = (x+1) - 1
f(x) = f(x+1)-1
...-3-2-1 = f(x) = x ,for any x
I guess this example is pretty lame but i hope it drives home the point.
If it is different, what we have to do to check convergence?
I am not sure whether there is a convergence check (the paper i mentioned above, discusses convergence of infinite radicals IIRC and not exactly recursion, and to be honest, when i had read that paper, i couldn't understand a penny out of it,

cmon i am just 21 and an engineer at that so give me a break

) .
However, i guess one could model the convergence condition as that in the convergence of a series,
Let R(k,f(x)) denote the value of recursive function f(x) at depth k.
Then a possible convergence condition would be,
R(1,f(x)) = R(2,f(x)) = R(k,f(x)) = R(k+1,f(x))
-- AI