Task 851
Task 851: development task in emrekuruu/math-openenv, an RL environment on the Hugging Face Hub. Let \ f(x) = \frac{ax}{x + 1}.\ Find the constant $a$ so that $f(f(x)) = x$ for all $x \neq -1.$
The task
Let \[f(x) = \frac{ax}{x + 1}.\]Find the constant $a$ so that $f(f(x)) = x$ for all $x \neq -1.$