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.

These problems are part of Project Euler and are licensed under CC BY-NC-SA 2.0 UK