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 30∑i=1⌊a987654321i⌋.
Note: ⌊a⌋ represents the floor function.