A351871: a(1) = 1, a(2) = 2; a(n) = gcd(a(n-1), a(n-2)) + (a(n-1) + a(n-2))/gcd(a(n-1), a(n-2)).
Statement
From Robert Gerbicz, Sep 18 2022: Let a(1), a(2) be the first two (positive) integers, and for n>2 define a(n)=g+(a(n-1)+(a-2))/g, where g=gcd(a(n-1),a(n-2)). If a(1) and a(2) are odd then it is easy to see that all numbers in the sequence are odd. If a(1) or a(2) is even, then by induction out of every two consecutive numbers in the sequence at least one of them is even. This partitions the sequences into two groups. Conjecture: In the first group the sequence always goes to infinity (as in A355898), and in the second group it always goes to a cycle (as in the present sequence). Here are three more cycle lengths: For a(1)=52, a(2)=378 the sequence starts with: 52, 378, 217, 92, 310, 203, 514, 718, 618, 670, 646, 660, 655, 268, 924, 302, 615, 918, 514, 718, ... and has a cycle length of 12, starting at 514. For a(1)=264, a(2)=1037 the sequence starts with: 264, 1037, 1302, 2340, 613, 295
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/oeis-a351871.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Text: OEIS Foundation, CC BY-SA 4.0. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/oeis-a351871.lean
import Mathlib /-! # A351871: a(1) = 1, a(2) = 2; a(n) = gcd(a(n-1), a(n-2)) + (a(n-1) + a(n-2))/gcd(a(n-1), a(n-2)). Source: https://oeis.org/A351871 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_oeis_a351871 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a351871