Returns the F-pure threshold of a diagonal hypersurface in a polynomial ring. This is based on the work of Daniel Hernandez.