[math-fun] Legendre's relation empirically