A400411: Number of deals of n cards numbered 1 to n between two players for which the card game War never ends.
Statement
In the cycles constructed by Spivey, the two players take turns winning runs of the same length, a power of 2. Every cycle with at most 13 cards is of this kind. The first exceptions are at n = 14: counting a cycle and the one with the players swapped as one, 720 of the 26640 cycles of 14 cards are not of Spivey's kind, all of length 96, and 61184620 of the a(14) endless deals end in one of them. Cycles not of Spivey's kind, entered from ordinary deals, exist for every n = m*2^v with m == 3 (mod 4), m >= 7 and v >= 1 (n = 14, 22, 28, 30, 38, 44, 46, ...). Conjecture: they exist for no other n. · Conjecture: for every n, the length of every cycle is divisible by n + A006519(n). This holds for every cycle with at most 16 cards, for every cycle when n is odd, for every cycle of Spivey's kind, and for every cycle in the known infinite families of the other kind.
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-a400411.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-a400411.lean
import Mathlib /-! # A400411: Number of deals of n cards numbered 1 to n between two players for which the card game War never ends. Source: https://oeis.org/A400411 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_a400411 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a400411