A400411 · Number of deals of n cards numbered 1 to n between two players for which the card game War never ends.
Imported on
This entry contains a conjecture recorded in the OEIS. Its status has not been independently checked across the literature.
Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.
Problem 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.
Definitions and context
Number of deals of n cards numbered 1 to n between two players for which the card game War never ends.
First recorded terms: 0,0,0,0,30,0,2304,0,218680,395940,28223770,0,4880546113,3790165176,1095264882758,0,312707435743775
Example from the source
a(5) = 30: of the 120 deals of 5 cards, 30 never end, and each of them ends in a cycle of 6 turns. One of them is the deck in order 1, 2, 3, 4, 5. Player 1 gets 1, 3, 5 and player 2 gets 2, 4 (top card first), and the piles go
(1,3,5 | 2,4) -> (3,5 | 4,2,1) -> (5 | 2,1,4,3) -> (5,2 | 1,4,3) -> (2,5,1 | 4,3)
-> (5,1 | 3,4,2) -> (1,5,3 | 4,2) -> (5,3 | 2,4,1) -> (3,5,2 | 4,1) -> (5,2 | 1,4,3),
so from the fourth position on, the game repeats every 6 turns.
Statement and context adapted from OEIS · Daniel Okwor, Sep 25 2026
CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history
Sources and original status
- OEIS Status in source : conjecture recorded in OEIS
Coverage, sources and method
This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.
This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.
Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.
Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.
Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.
OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.
Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.
Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.
- Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
- Erdős Problems (teorth) · 622 · Apache-2.0
- Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
- OEIS · 18,857 · CC BY-SA 4.0
- MathOverflow · 19,035 · CC BY-SA (version on each entry)
- Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)