Number patterns · Collatz

When does a number fall below where it started?

Start at 5. The ordinary Collatz rule says to triple an odd number and add one, or halve an even number. The path is 5 → 16 → 8 → 4. At 4 you are below 5 for the first time. Mathematicians call that a descent. Could you tell ahead of time which starts will drop?

What does 239 have in common with 1,048,815?

After 32 ordinary moves, 239 lands on 122. Add 1,048,576 to the start and you get 1,048,815. After the same 32 moves it lands on 531,563. Both endpoints are below their own starts.

You can keep adding 1,048,576 to 239. Lean, a proof checker, verified a formula for the endpoint of every start in that progression. The proof covers 2,652 listed progressions in all. Whether every positive starting number eventually reaches 1 is still open.

See the formula for all 2,652 progressions and its source

Plain statement: take any one of the 2,652 exact coefficient pairs in the linked source and any natural number k. Starting from 2²⁰k+r, exactly 32 standard Collatz steps reach 3¹²k+q, and that endpoint is strictly smaller than the start.

∀ (r,q) ∈ S, ∀ k ∈ ℕ: C³²(2²⁰k+r) = 3¹²k+q ∧ 3¹²k+q < 2²⁰k+r

Here S is the finite set of 2,652 pairs listed in the theorem source. The map C sends an even number to half of it and an odd number to three times the number plus one. The theorem proves the trajectory equality and the strict decrease together for every natural k.

What this does not prove: it does not cover every starting number, give a descent rule for all residue classes, or show that every trajectory reaches 1. It is not a solution of the Collatz conjecture and makes no novelty claim.

Can you predict a drop by counting odd numbers?

Use a shortcut. From an odd input, do two ordinary moves together. For instance, 5 → 16 → 8 becomes 5 → 8. From an even input, just halve it. Count the odd numbers you start a shortcut move on.

When exactly 12 of the first 20 shortcut moves start on an odd number, those moves use 32 ordinary steps. Lean proved the endpoint is below the start for every such number.

This calculator follows one starting number in your browser. Try 239, then 27, and compare their odd-input counts.

Enter a positive whole number of up to 120 digits.

See how Lean proved and counted the qualifying patterns

Plain statement: if exactly 12 of the first 20 accelerated inputs are odd, the value after 32 ordinary Collatz steps is smaller than the start. Lean proves this for every qualifying residue progression, with every natural parameter.

125,970 of the 1,048,576 residues modulo 2²⁰ have exactly 12 odd inputs; for every such r and k, C³²(2²⁰k+r) = 531,441k + A²⁰(r) < 2²⁰k+r.

An accelerated step halves an even input. For an odd input, it applies (3n+1)/2. The parity condition makes 20 accelerated steps correspond to 32 ordinary steps. Lean proves the count by a recurrence on sibling residue classes, then ties that exact count to the same parity predicate used by the descent theorem.

Because the condition depends only on n modulo 2²⁰, these starts have natural density exactly 62,985/524,288 (about 12.0134%). So at least that share of all starts is below its starting value at ordinary step 32; other starts may also be.

Limits: this covers a fixed parity pattern, not every starting number. It gives no eventual-return rule, proves no global convergence, and makes no priority claim. The count is a residue-class density, not a percentage of Collatz solved.

How late can the drop come if we watch 23 moves?

In an ordinary move, halve an even number or multiply an odd number by three and add one. A shortcut combines an odd move with the next halving. From 5, the two ordinary moves 5 → 16 → 8 become one shortcut, 5 → 8.

Try 5. Its shortcut path begins 5 → 8 → 4 → 2 → 1, then alternates between 1 and 2. Eleven of the first 23 moves begin on an odd number. After 23 + 11 = 34 ordinary steps you are at 2, below 5.

What the proof adds. Start at any whole number at least 3. If at most 14 of its first 23 shortcut moves begin on odd numbers, it falls below its starting value within 37 ordinary steps. Even with all 14 extra halvings, 23 + 14 is only 37.

Inspect the reviewed statement, proof and exploratory follow-ups

The separate 34-move sample counts from one odd number to the next odd number. From 5, that move runs through 16, 8, 4 and 2 to land on 1. Here a shortcut from 5 halves just once and lands on 8. See the separate odd-to-odd calculation.

Plain statement: repeat this shortcut 23 times: halve an even number; for an odd number, calculate 3n+1 and halve once. For every start n ≥ 3, if at most 14 shortcut moves begin on odd numbers, the ordinary Collatz sequence is below its start after 23+h steps, where h is the number of odd moves.

Lean checked exactly 7,507,638 of 8,388,608 residue classes modulo 2²³. Since h ≤ 14, the proved drop occurs no later than ordinary step 37.

This is one precise bounded-descent rule. It does not show that every number eventually reaches 1, prove the Collatz conjecture, or establish novelty.

Read the exact target, receipts, and exploratory follow-ups

The checked target is (residueAtMostCount 23 14 = 7507638) ∧ ∀ n, 3 ≤ n → odds n 23 ≤ 14 → ordinaryIter n (23 + odds n 23) < n. The descent theorem reports axioms [propext, Quot.sound]; the count and combined theorem report [Classical.choice, propext, Quot.sound]. No sorryAx was reported.

The reviewed English statement is bound to packet SHA-256 cab441ca8079f71a6c9dbaadcea53a8e38cc8d4e9ee68f18f874f6bf39fb66bb. The source-to-kernel receipt SHA-256 is 9fcb62099417bd0ad46a60dc0addab267b18145f893fb5ff2761e25dba904497.

Exploratory parameter checks. At most 15 odd inputs in 24 steps covers 15,505,590 of 16,777,216 classes and gives a step-39 bound; at most 19 in 31 covers 1,986,838,144 of 2,147,483,648 and gives a step-50 bound; at most 20 in 32 covers 4,058,348,603 of 4,294,967,296 and gives a step-52 bound. For 31/19, the original receipt still says FAIL_AUDIT; a separate audit passed with [Classical.choice, propext, Quot.sound]. The statement review above covers only the 23-step, 14-odd-input theorem.

A separate Python screen counts the union of five checked conditions as 4,138,588,909 of 4,294,967,296 length-32 parity words. Its two counting methods agree, but it is not a combined Lean theorem and does not close the smaller-basis search. Its first calculation failed and remains in the record.

Open the four source modules, receipts, and replay route ↗ · Open the basis screen and preserved correction ↗

Compare the 20-, 21-, 22- and 27-move rules

Each rule counts odd inputs over a different number of shortcuts. A start can qualify under one rule and miss another.

20 shortcut moves · up to 12 odd

Start at 3 or above. If 12 or fewer moves begin on an odd number, the checked endpoint is below the start. With 10 odd inputs that endpoint is ordinary step 30.

See the proof, exact count and replay instructions

Plain statement: for every starting number n ≥ 3, if at most 12 of its first 20 accelerated Collatz inputs are odd, then one specific ordinary iterate is smaller than n.

Let h be the odd-input count. Lean proves C^(20+h)(n) < n for 0 ≤ h ≤ 12; the checked step is between 20 and 32.

The qualifying condition covers exactly 910,596 of 1,048,576 residue classes modulo 2²⁰ (86.8412%). Every number at least 3 in those classes has the stated drop. This gives a lower bound on the natural density of starts that drop at one of steps 20 through 32; it does not claim a drop at step 32 for all of them.

Why the uniform cutoff stops at twelve odd inputs

For any residue with exactly 13 odd inputs in the first 20 accelerated steps, Lean proves that some member of its full residue family is not smaller at ordinary step 33. This rules out extending the all-members guarantee to every 13-odd family at that endpoint; it does not say every 13-odd start fails to descend.

Limits: the step depends on the odd-input count. This is bounded descent, not a convergence argument, and it makes no novelty or priority claim. The starts 1 and 2 are excluded: their step-30 values are not smaller than their starts.

python scripts/run_public_case.py collatz-at-most-twelve

This local command recompiles the Lean sources from a fresh temporary directory and enumerates the 1,048,576 residues. It makes no model or network call.

21 shortcut moves · up to 13 odd

For starts of 3 or above, the checked endpoint falls between ordinary steps 21 and 34. Each odd shortcut adds one ordinary step to the count.

See the proof, exact count and replay instructions

Plain statement: for every start n ≥ 3, if at most 13 of its first 21 accelerated Collatz inputs are odd, then the ordinary iterate at step 21+h is smaller than n, where h is the odd-input count.

1,898,712 / 2,097,152 residue classes modulo 2²¹ qualify (90.5376%). The proved endpoint is between steps 21 and 34, depending on h.

Lean lifts the result to every 2²¹k+r ≥ 3 whose residue has at most 13 odd inputs. A separate boundary theorem proves that each residue with exactly 14 odd inputs has a representative 2²¹+r that is not smaller at step 35.

Limits: this is a parity-conditioned first drop. The 90.5376% is a share of residue classes, not a percentage of Collatz solved. It proves no global convergence and makes no novelty claim.

python scripts/run_public_case.py collatz-at-most-thirteen

The command recompiles all five Lean-core modules from a fresh temporary directory, checks complete axiom reports, and independently enumerates all 2²¹ residues. It makes no model or network call.

22 shortcut moves · up to 13 odd

Take 7. The shortcut starts 7 → 11 → 17 → 26. If 13 or fewer of all 22 moves start on an odd number, a start of 3 or above will be below its original value by ordinary step 35.

See the proof, exact count and replay instructions

Start with the shortcut: for an even number, halve it. For an odd number, calculate 3n+1 and halve once. Repeat that rule 22 times.

Plain statement: for every start n ≥ 3, if no more than 13 of those 22 shortcut moves begin on odd numbers, a regular Collatz step takes the number below its start by step 35.

If h of the 22 shortcut moves begin on odd numbers, the exact claim is C^(22+h)(n) < n whenever h ≤ 13. An odd shortcut move represents two regular steps; an even move represents one.

Lean proves the claim for exactly 3,593,934 of 4,194,304 possible 22-step parity patterns (85.6861%). This is a separate family from the 20- and 21-step results: their pattern sets are not nested, so the percentages are not a direct improvement comparison.

See one example starting at 7

The shortcut path begins 7 → 11 → 17 → 26 → 13 → 20 → 10 → 5 → 8 → 4 → 2 → 1. That illustrates the rule for one input; it is not the proof. The Lean theorem checks every qualifying parity pattern and every natural start covered by it.

Limits: this is a parity-conditioned first drop, not a rule for every input. It does not show that every sequence reaches 1, solve Collatz, or make a novelty claim.

python scripts/run_public_case.py collatz-at-most-thirteen-22

The local command compiles four fresh Lean-core modules, checks the exact axiom reports, and runs a separate integer audit. It makes no model or network call.

27 shortcut moves · up to 17 odd

This rule starts at 26,018 or above. For 26,018 itself, 12 of the 27 moves start on an odd number. After 39 ordinary moves the value is 107. Every qualifying start drops by step 44.

See the proof, exact count and replay instructions

The rule: for an even number, halve it. For an odd number, triple it, add 1, and halve once. Repeat this 27 times.

What Lean checked: for every start n ≥ 26,018, if no more than 17 of those 27 moves start on odd numbers, the ordinary sequence falls below its starting value at step 27+h, where h is the number of odd moves. That is between steps 27 and 44.

For example, 26,018 has 12 odd moves; it falls below its start after 39 ordinary steps and is then 107. This example illustrates the rule; the Lean proof checks the general statement.

Limit: this covers starts meeting the stated size and parity conditions. It does not show that every number eventually reaches 1 or solve the Collatz conjecture.

Show the pattern count and command-line replay

The separate arithmetic audit counts 126,025,204 of 134,217,728 possible 27-move parity patterns (93.8961%). This count is not a natural-density result or a percentage of Collatz solved. Lean checks the general link from residue counts to parity-word counts; the final numeral is an arithmetic audit.

python scripts/run_public_case.py collatz-at-most-seventeen-27

The command recompiles five Lean-core modules from fresh source copies, audits their axiom reports, and checks the separate integer count and 18 coefficient thresholds.

Read the proof guide, source and replay details ↗

Build another starting number in a listed family

Each row picks a progression. The second box says how many times to add 1,048,576 to its first number. Try row 1 with 0, then 1. Watch how the gap between the start and the endpoint changes.

The browser checks the saved table before enabling the calculator. It uses whole-number arithmetic to work out the two endpoints.

Loading and checking the source-pair table…

Inspect the calculation and the saved table

Plain statement: choose a row from the pinned 2,652-pair table and a natural number k; this tool recomputes the start, endpoint, and exact difference using integer arithmetic.

start = 1,048,576k+r · endpoint = 531,441k+q · start−endpoint = 517,135k+(r−q)

Method and source: Read the human audit and reproduction steps. The browser table is loaded from evidence/collatz/m20-source-replay-2026-11-18/coefficient-audit/pairs.tsv, SHA-256 30f06904507a35d180fab9d0d9195759047d13edfd857c04e2ef483eaf75194a, pinned in collatz-coefficient.js.

Why does the gap stay positive?

In the family beginning at 239, the first gap is 239 − 122 = 117. Each time the start grows by 1,048,576, the endpoint grows by only 531,441. The gap grows by 517,135. Every listed family also begins with a positive gap.

Follow the algebra and compare the separate coverage count

Plain statement: for every listed pair, the starting expression exceeds the endpoint expression by a positive amount for every natural k.

(2²⁰k+r) − (3¹²k+q) = 517,135k + (r−q)

The source-pair audit checks all 2,652 intercepts r−q. Every one is positive; the minimum is 117. Since k ≥ 0 and the coefficient of k is positive, the displayed gap is positive. This algebra explains the inequality, while the Lean replay establishes that 32 Collatz steps actually reach the stated endpoint.

How much of the residue space is covered?

This theorem covers 2,652 listed infinite progressions; it does not itself imply a density statement. A separate finite audit records certificates for 1,021,248 of 1,048,576 remainders modulo 2²⁰ (about 97.394%). That is a finite share of one residue space, not a share of all natural numbers and not a percentage of the conjecture solved. Read that separate audit.

Did checking the proof twice give the same answer?

Two recorded runs rebuilt all 363 proof files and agreed on the results. The first run’s time limit expired after the checks had finished. An independent rebuild of the full proof remains open.

Compare the two runs

Open the run records, environment and source correction

Plain statement: two fresh isolated workspaces compiled the same source set, and the tracked source, OLEAN, output, and exit-code hashes agree across the runs.

363 files per phase229 shard inputs + 133 composition modules + the final theorem; 23 axiom groups and 4,262 queries; zero sorryAx reports
EvidencePhase 1Phase 2
Lean module exitsAll 0All 0
Outer Docker wrapper124 after the two-hour watchdog expired0
Docker OOM reportedNoNo
Final theorem axioms[propext, Quot.sound][propext, Quot.sound]

The first wrapper stopped with exit 124 after its inner compiles and axiom checks completed; the second wrapper exited 0. The two workspaces were isolated but were not separate Git clones. The replay did not reuse MathCase OLEANs; the pinned container supplied 346 Mathlib dependency OLEANs.

Open receipt bindings and the exact replay limits
  • Phase 1 source receipt SHA-256: 115d08d619763e3478e17467a80852529e55d77f11be7b55e48361830462ebf4.
  • Phase 2 source receipt SHA-256: 6e48d17cf40f4f6b61a7a46793ae1b33f87ead146723ec3762b1f3af69ea45b6.
  • Phase 1 output manifest SHA-256: 7baa0fc698f848b125cfe1aef59d2c6793ffe9ace29290a916edb037fe3d37f4.
  • Phase 2 output manifest SHA-256: b0e8eba33252d1f7eb253d55e05e0249fb599f58ebe75bc0db74c71fcbf967c9.
  • The theorem source SHA-256 is 8e8fb280df93829c988a360b01276def73e7e5cbd8c9ce8eca70987d5733d3e5; the staged comparison copy was byte-identical.
  • Phase 2 was bound to Candidate A. Candidate B's matching hash is a separate provenance check; the replay is not claimed to have consumed Candidate B.
  • Toolchain: Lean 4.33.1 commit 819816b2e0a3bf405af45ae5c7af2491d8f5bee6; Mathlib commit 0df444a360eaa60ab8c11dca51a86af692955474; container image sha256:ec3377f34aaf0b83502e6755d5403ca36382adb99e4c7ab1470d42a1ac5abdc7.
  • Recorded cap: one CPU, 2 GiB memory and swap, network disabled. The fresh OLEAN hashes differ from historical expected OLEAN hashes; the two fresh runs agree with one another. Timing and run-metadata hashes vary.
  • The November 18 two-phase run was an author-side replay, not an independent stranger build. A separate runner-bound public-source replay passed on November 26; a stranger’s full replay and independent mathematical review remain open.
  • The earlier root-guard failure and the all-at-once aggregate stop remain preserved in the linked attempt history; neither was a Lean proof refutation.

Separate public-source reruns: the historical smoke receipt verified input and dependency bindings, then compiled only Descent127. The November 23 full run reported PASS, and a later same-host audit matched its saved files, but its receipt did not bind the runner hash. On November 26 the v2 runner-bound run passed all 363 compiles, 23 axiom groups, and 4,262 theorem queries. A separate same-host artifact audit rehashed its files without rerunning Lean. The newer OLEANs match the November 18 Phase 2 output manifest, not the original container hashes. A stranger’s full replay and independent mathematical review remain open. Read the November 26 run and audit report; Inspect the runner-bound receipt; Review the November 23 audit; Read the one-shard smoke receipt; Follow the public-source replay guide ↗

Could the proof use fewer rows?

All 2,652 rows share the same argument for why the endpoint is smaller. Two attempts to shorten the proof still needed every row to show where the 32 moves actually end. A shorter proof remains possible.

Read what each attempt tried

Plain statement: the two bounded analyses did not remove any of the 2,652 exact 32-step trajectory equalities. Whether a smaller proof basis exists remains open.

  • The prefix screen found that all 2,652 candidates first qualify at step 32; it reduced zero rows.
  • The shared affine/dependency review found common coefficient structure and 133 grouped modules, but it removed none of the trajectory equalities.
  • No completed screen has combined those rows with the 23/14, 24/15, 31/19, and 32/20 parity-parameter cases.

This is a negative result about the tried compression approaches, not a theorem that no smaller proof basis exists. The broader basis search remains open.

Open the shared-structure analysis

Where does your number go?

Follow the steps for any positive whole number, or explore the other checks by subject.

← HomeAll work →Back to top ↑