WolframAlpha computational knowledge AI
1-g < (g^2 - 2*(1-g) + r - 1) / (r/(1-g) - 2*(2-g)) < 1 and r > 0 and g < 1/3