A073846: a(1) = 1; thereafter, every even-indexed term is prime and every odd-indexed term is composite.
Statement
From Chayim Lowen, Aug 12 2015: Consider f(n,k) = a(f(n,k-1)) with f(n,0) = n. Let us also define f(n,k) for negative values of k as well using: f(n,k-1) = A073898(f(n,k)) where A073898(a(n)) = a(A073898(n)) = n. Let us denote the sequence {f(n,i)} for integers i by R#(n). It is clear that if a is a value in R#(b), R#(a) is just R#(b) with a different offset. Therefore, unless there is a need to do otherwise, let us denote each sequence by its lowest value. These sequences can only behave in one of two ways. They can either be periodic with f(n,m) = f(n,0) for some m, or they can include infinitely many distinct values. Here is the behavior of R#(n) for n<=100: R#(1), R#(2) and R#(9) are 1-cycles. R#(3), R#(5), R#(7), R#(10) and R#(12) are 2-cycles. R#(14), R#(62) and R#(84) are 3-cycles. R#(92) is a 6-cycle. R#(18) is a 22-cycle. R#(34) (A261314) has been checked up to f(34,
Posed by Michel Marcus · OEIS
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-a073846.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-a073846.lean
import Mathlib /-! # A073846: a(1) = 1; thereafter, every even-indexed term is prime and every odd-indexed term is composite. Source: https://oeis.org/A073846 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_a073846 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a073846