Problem 356: Largest roots of cubic polynomials
Let an be the largest real root of a polynomial g(x) = x3 - 2n·x2 + n.
For example, a2 = 3.86619826...
Find the last eight digits of.
Note: represents the floor function.
Test
{{test}}Console output