{
  "id": "5862",
  "ident": "NS.05862",
  "slug": "oeis-24356",
  "title": "Determinant of Hankel matrix of the first $2n-1$ prime numbers",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "\"I conjecture that $a(4)$ is the only zero. - _Jon Perry_, Mar 22 2004\"\n\nStated as a biconditional: the claim that $a(4)$ is *the only* zero asserts both that $a(4) = 0$\nand that no other index vanishes. A bare implication `a n = 0 → n = 4` would be satisfied\nvacuously by a sequence with no zero at all. The existence direction is certified by `a_4`; the\nuniqueness direction is the open part.",
  "subjects": [
    "math.NT",
    "math.RA",
    "msc:11",
    "msc:15"
  ],
  "tags": [],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA24356.conjecture",
  "statement_lean": "theorem conjecture : ∀ n : ℕ, a n = 0 ↔ n = 4",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Determinant of Hankel matrix of the first $2n-1$ prime numbers\n\nThe determinant of the $n \\times n$ Hankel matrix whose entries are the first $2n-1$ prime numbers.\nThe matrix $M$ has entries $M_{i, j} = p_{i+j}$ for $i, j \\in \\{0, \\dots, n-1\\}$,\nwhere $p_k = \\mathrm{Nat.nth\\;Nat.Prime} (k)$ is the $k$-th prime starting at $p_0=2$.\n$a(0)=1$ by convention.\n\n*References:*\n- [A024356](https://oeis.org/A024356)-/\n\n@[expose] public section\n\nnamespace OeisA24356\n\n/-- The determinant of the $n \\times n$ Hankel matrix of primes. -/\nnoncomputable def a (n : ℕ) : ℤ :=\n  Matrix.det (Matrix.of fun (i j : Fin n) ↦ (Nat.nth Nat.Prime (i.val + j.val) : ℤ))\n\n/-- Value of the sequence `a` at 0. -/\n@[category test, AMS 11]\ntheorem a_0 : a 0 = 1 := by\n  simp [a]\n\n/-- Value of the sequence `a` at 1. -/\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 2 := by\n  simp [a, Nat.nth_prime_zero_eq_two]\n\n/-- Value of the sequence `a` at 2. -/\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 1 := by\n  simp [a, Matrix.det_fin_two, Nat.nth_prime_zero_eq_two,\n    Nat.nth_prime_one_eq_three, Nat.nth_prime_two_eq_five]\n\n/-- Value of the sequence `a` at 4. This records the zero whose uniqueness is conjectured below. -/\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 0 := by\n  unfold a\n  have hp13 : Nat.Prime 13 := by decide\n  have hp17 : Nat.Prime 17 := by decide\n  have h5 : Nat.nth Nat.Prime 5 = 13 := Nat.nth_count hp13\n  have h6 : Nat.nth Nat.Prime 6 = 17 := Nat.nth_count hp17\n  have hM :\n      (Matrix.of fun (i j : Fin 4) ↦ (Nat.nth Nat.Prime (i.val + j.val) : ℤ)) =\n        !![(2 : ℤ), 3, 5, 7; 3, 5, 7, 11; 5, 7, 11, 13; 7, 11, 13, 17] := by\n    ext i j\n    fin_cases i <;> fin_cases j <;>\n      simp [Nat.nth_prime_zero_eq_two, Nat.nth_prime_one_eq_three,\n        Nat.nth_prime_two_eq_five, Nat.nth_prime_three_eq_seven,\n        Nat.nth_prime_four_eq_eleven, h5, h6]\n  rw [hM]\n  apply Matrix.det_eq_zero_of_mulVec_eq_zero_of_mem_nonZeroDivisors\n    (v := ![(6 : ℤ), -3, -2, 1]) (i := 0)\n  · decide\n  · norm_num [nonZeroDivisors]\n\n/--\n\"I conjecture that $a(4)$ is the only zero. - _Jon Perry_, Mar 22 2004\"\n\nStated as a biconditional: the claim that $a(4)$ is *the only* zero asserts both that $a(4) = 0$\nand that no other index vanishes. A bare implication `a n = 0 → n = 4` would be satisfied\nvacuously by a sequence with no zero at all. The existence direction is certified by `a_4`; the\nuniqueness direction is the open part. -/\n@[category research open, AMS 11 15]\ntheorem conjecture : ∀ n : ℕ, a n = 0 ↔ n = 4 := by\n  sorry\n\nend OeisA24356\n",
  "statement_hash": "3cc829dcfe85274c85689d40f478c06d40271b630c9975e2e4fcfe0be4be42b1",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}