Logopolis

Logopolis is a planet of mathematicians visited by The Doctor, Tegan Jovanka, Nyssa, Adric in the final Fourth Doctor story, Logopolis.