Trials and Tribble-ations - S5-E6
Trivia: In this episode, Sisko, Dax, Bashir, and O'Brien are talking about the amount of Tribbles, and Dax gives the total as 1,771,561, and the explanation behind the total. The conversation was an exact copy of the one between Lurry, Kirk and Spock in the original episode "The Trouble With Tribbles" (TOS, S2: E15).