Mathematical Analysis Of Recursive Algorithm