Full movie description "Doctor Who Logopolis: Part Two":

With the threat of doom ever-present, the Doctor and Adric press on for Logopolis, where the muttered mathematical incantations of its people can completely overhaul the TARDIS. En route they discover an accidental yet demanding passenger on board while, all the while, the Master secretively journeys with them to ensnare the Doctor in a diabolical trap.