On Legendre's equation ax2 + by2 + cz2 = 0