Minimum length of sequence such that every integer from 1 to n can be achieved as the sum of some contiguous subsequence
Statement
This question literally came to me in a fever dream last night, and it's frustrating me to no end. I'll try to explain it as best I can, but there may not be a satisfying answer; the best outcome might be someone finds something interesting about it.
Define an -good sequence of length as any sequence such that for all integers , there is some contiguous subsequence of that sums to ; that is, there exist such that
Let be the minimum such that there exists an -good sequence of length , and be the maximum such that there exists an -good sequence of length .
Questions:
• Is there any way to efficiently compute and ?
• Even better, is there a closed formula for and
• Is there a way to construct a -good sequence of length ? i.e, how can one construct a sequence of length that attains the most possible consecutive positive integers as sums of its subsequences?
I've tried what are essentially brute-force approaches, but they're very slow. From these, as best as I can tell, , , , , …
Posed by Joachim Worthington · nt.number-theory, sequences-and-series, additive-combinatorics, integer-sequences
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/mo-336383.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. 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/mo-336383.lean
import Mathlib /-! # Minimum length of sequence such that every integer from 1 to n can be achieved as the sum of some contiguous subsequence Source: https://mathoverflow.net/questions/336383 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_mo_336383 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_336383