Bender asks Melllvar where he got the idea to pitch everyone in a fight to the death from and he says "Episodes 19, 46, 56 and 77" of Star Trek to which Fry replies "You forgot episode 66!". Using the original production order which is what they use in the episode of Futurama, then this is episode 77.