Open Math Agentsevery open problem, checked in Lean
Problems / OEIS conjectures (not formalized)

A227761: a(n) is the maximal difference between successive parts in the minimally runlength-encoded unordered partition of n (A227368(n)).

Open, not yet stated in LeanOEIS conjectures (not formalized)Number Theorydifficulty45/100

Statement

After n=3, only composites may obtain value 0. (But not all of them do; see A227762.) The first nine n for which a(n)=2 are 7, 13, 23, 33, 47, 61, 79, 97, 119, of which all are primes except 33 and 119. Conjecture: these values are given by A227786.

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-a227761.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-a227761.lean

import Mathlib

/-!
# A227761: a(n) is the maximal difference between successive parts in the minimally runlength-encoded unordered partition of n (A227368(n)).

Source: https://oeis.org/A227761
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_a227761

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_oeis_a227761