Left to Solve
Problems / MathOverflow (not formalized)

Tweak the numerators in the alternating harmonic series so that the partial sums alternate across $0$. What's the pattern in the numerators?

Open, not yet stated in LeanMathOverflow (not formalized)Uncategoriseddifficulty55/100

Statement

I was thinking about the alternating harmonic series: .

I wondered what would happen if we tweak the numerators so that the partial sums alternate between "barely" non-negative and "barely" non-positive.

That is, where

u_2=\left\{\text{least positive integer m1-\frac{m}{2}\le0} \right\} =2

u_3=\left\{\text{least positive integer m1-\frac{2}{2}+\frac{m}{3}\ge0} \right\} =1

u_4=\left\{\text{least positive integer m1-\frac{2}{2}+\frac{1}{3}-\frac{m}{4}\le0} \right\} =2

u_5=\left\{\text{least positive integer m1-\frac{2}{2}+\frac{1}{3}-\frac{2}{4}+\frac{m}{5}\ge0} \right\} =1

u_6=\left\{\text{least positive integer m1-\frac{2}{2}+\frac{1}{3}-\frac{2}{4}+\frac{1}{5}-\frac{m}{6}\le0} \right\} =1

And so on.

In other words, for : u_n=\left\{\text{least positive integer m(-1)^{n-1}\sum\limits_{k=1}^{n-1}(-1)^{k-1}\frac{u_k}{k}+\frac{m}{n}\ge 0}\right\}

Here is a plot of against for .

Is there a way to determine the values of …

Posed by Dan · sequences-and-series

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

import Mathlib

/-!
# Tweak the numerators in the alternating harmonic series so that the partial sums alternate across $0$. What's the pattern in the numerators?

Source: https://mathoverflow.net/questions/457091
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_457091

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

theorem main : sorry := by
  sorry

end OMA.S_mo_457091