<plagiarise>

Yep, it was Lobachevsky.

and, xara, re Be prepared: the liner notes say that the Police Commissioner in Queensland (one of our more forward-looking States) advised Mr Lehrer not to sing the song; however, he did so and the Boy Scout movement continued to thrive.