Question 635912
Let x = g^3
your expression becomes 25x^2 - 10x + 1 which factors into (5x-1)(5x-1) or
 (5x-1)^2
In terms of g we have (5g^3 - 1)^2