A166872: a(n) = floor(n/2 + 2 - sqrt(17/4 + 2*n)).
Statement
Each nonnegative integer k occurs 2 to 6 times in the sequence, with 0 occurring 6 times, 3 occurring 4 times, all others either 2 or 3 times. Conjecture: The sequence of integers k which occur 3 times has the g.f. (1 + 2*x^2 - 2*x^3 + x^6 - x^8 - x^9 + x^11)/(1 - 2*x + x^2 - x^8 + 2*x^9 - x^10).
Posed by Robert Israel · 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-a166872.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-a166872.lean
import Mathlib /-! # A166872: a(n) = floor(n/2 + 2 - sqrt(17/4 + 2*n)). Source: https://oeis.org/A166872 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_a166872 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a166872