Task 233
Task 233: test task in emrekuruu/math-openenv, an RL environment on the Hugging Face Hub. The polynomials \ x^3 + 5x^2 + px + q = 0\ and \ x^3 + x^2 + px + r = 0\ have exactly two roots in common, so each cubic has a root they do not have in common. Find the sum of the two roots they do not have…
The task
The polynomials \[x^3 + 5x^2 + px + q = 0\]and \[x^3 + x^2 + px + r = 0\]have exactly two roots in common, so each cubic has a root they do not have in common. Find the sum of the two roots they do not have in common.