Andrew Hodges is a mathematician, an author and an activist in the gay liberation movement of the 1970s.