Jacobians among abelian threefolds: A formula of klein and a question of serre