/- 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, software distributed 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 and limitations under the License. -/ module public import FormalConjecturesUtil /-! # A GCD-Driven Sequence with Universal Jumps OEIS A260194 begins with three ones and then adds the greatest common divisor of the current term and the term two places earlier. The open question asks whether every positive integer occurs as an adjacent difference. *References:* - [OEIS A260194](https://oeis.org/A260194) -/ @[expose] public section namespace OeisA260194 /-- OEIS A260194, shifted so that Lean index zero is the first OEIS term, with recurrence $a(n+3) = a(n+2) + \gcd(a(n+2),a(n))$ and initial values $a(0)=a(1)=a(2)=1$. -/ def a : ℕ → ℕ | 0 => 1 | 1 => 1 | 2 => 1 | n + 3 => a (n + 2) + Nat.gcd (a (n + 2)) (a n) @[category test, AMS 11] theorem a_0 : a 0 = 1 := by rfl @[category test, AMS 11] theorem a_1 : a 1 = 1 := by rfl @[category test, AMS 11] theorem a_2 : a 2 = 1 := by rfl @[category test, AMS 11] theorem a_3 : a 3 = 2 := by rfl @[category test, AMS 11] theorem a_4 : a 4 = 3 := by rfl @[category test, AMS 11] theorem a_5 : a 5 = 4 := by rfl @[category test, AMS 11] theorem a_6 : a 6 = 6 := by rfl @[category test, AMS 11] theorem a_7 : a 7 = 9 := by rfl @[category test, AMS 11] theorem a_8 : a 8 = 10 := by rfl @[category test, AMS 11] theorem a_9 : a 9 = 12 := by rfl /-- Does every positive integer occur as a difference in this sequence? -/ @[category research open, question, AMS 11] theorem conjecture : ∀ d > 0, ∃ n, a (n + 1) = a n + d := by sorry end OeisA260194