Index of theproofnetwork/open-problems@860a535/FormalConjectures/OEIS/A189409.lean

qedmarket’s copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source ↗

77 lines · 2.4 kBraw
/-Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at     https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.-/module public import FormalConjecturesUtil /-!# Primorial squared plus one The sequence $a(n)$ is defined by $a(n) = (p_n\#)^2 + 1$, where $p_n\# = \prod_{k=0}^{n-1} p_k$is the $n$-th primorial (A002110). *References:*- [A189409](https://oeis.org/A189409)-/ @[expose] public section namespace OeisA189409 /-- The sequence $a(n) = (p_n\#)^2 + 1$. -/noncomputable def a (n : ℕ) : ℕ :=  (Nat.kthPrimorial n) ^ 2 + 1 @[category test, AMS 11]theorem a_0 : a 0 = 2 := by simp [a] @[category test, AMS 11]theorem a_1 : a 1 = 5 := by simp [a] @[category test, AMS 11]theorem a_2 : a 2 = 37 := by simp [a] @[category test, AMS 11]theorem a_3 : a 3 = 901 := by simp [a] @[category test, AMS 11]theorem a_4 : a 4 = 44101 := by simp [a] /--It is unknown whether or not numbers in this sequence are always squarefree.- _John M. Campbell_, Apr 21 2011 The answer is no: $a(9) = 223092870^2 + 1 = 49770428644836901 = 29^2 \cdot 53 \cdot 1116604864937$.Indeed $223092870 \equiv 800 \pmod{841}$ and $800^2 + 1 = 640001 = 841 \cdot 761$.For $n \le 1000$ and primes $q < 2 \cdot 10^7$ this is the only case of $q^2 \mid a(n)$.This was first shown in the OEIS Open project, see T. Adamczewski, OEIS Open: How manyconjectures can language models turn into theorems?,[arXiv:2608.11941](https://arxiv.org/abs/2608.11941). A kernel-checked Lean proof of exactlythis statement is at [oeis-a189409](https://github.com/DevSingh05/oeis-a189409).-/@[category research solved, question, AMS 11]theorem conjecture_1 : ¬ ∀ n : ℕ, Squarefree (a n) := by  sorry /--It is unknown whether or not there exist infinitely many primes in this sequence.- _John M. Campbell_, Apr 21 2011-/@[category research open, question, AMS 11]theorem conjecture_2 : Set.Infinite {n : ℕ | (a n).Prime} := by  sorry end OeisA189409

download (.tar)