Recursion with different relations solved