Chuyển tới nội dung
Number Buffet

Dãy Collatz

Chia đôi khi chẵn, nhân ba rồi cộng một khi lẻ — rồi xem những số mưa đá leo lên và lao xuống trên đường về 1.

OEIS A006577 · Đọc 3 phút

Thiết lập

Thiết lập nhanh

Any positive integer up to 1,000,000,000,000,000. Try 27 — it is the smallest start that needs more than 100 steps.

Trajectory follows one number. The other two scan a block of consecutive starting numbers.

Only used by the stopping-time and peak modes. A trajectory runs for as long as it takes to reach 1.

Group tall values as 17,202,377,752 for readability.

Tinh chỉnh dáng vẻ

Hãy chọn một thiết lập cạnh ảnh trước — các điều khiển này điều chỉnh nó.

Frame

A border drawn inside the edge of the image.

Nâng cao

Kết quả

112 giá trị

27, 82, 41, 124, 62, 31, 94, 47, 142, 71, 214, 107, 322, 161, 484, 242, 121, 364, 182, 91, 274, 137, 412, 206, 103, 310, 155, 466, 233, 700, 350, 175, 526, 263, 790, 395, 1186, 593, 1780, 890, 445, 1336, 668, 334, 167, 502, 251, 754, 377, 1132, 566, 283, 850, 425, 1276, 638, 319, 958, 479, 1438, 719, 2158, 1079, 3238, 1619, 4858, 2429, 7288, 3644, 1822, 911, 2734, 1367, 4102, 2051, 6154, 3077, 9232, 4616, 2308, 1154, 577, 1732, 866, 433, 1300, 650, 325, 976, 488, 244, 122, 61, 184, 92, 46, 23, 70, 35, 106, 53, 160, 80, 40, 20, 10, 5, 16, 8, 4, 2, 1

27 reaches 1 in 111 steps, peaking at 9,232. The list ends 4, 2, 1.


Tạo ảnh

Hãy bật JavaScript để tạo kiểu cho những số này và tải về dưới dạng ảnh. Bản thân các giá trị đã được liệt kê ở trên.

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

Bài viết nền bên dưới chưa được dịch và đang hiển thị bằng tiếng Anh.

Về dãy collatz

Lothar Collatz was born in Arnsberg, in Westphalia, in 1910, and took his doctorate in Berlin in 1935 under Alfred Klose. His published career was in applied mathematics — numerical analysis, eigenvalue estimates, differential equations — first at the Technical University of Hanover and then at Hamburg, where he founded the Institute of Applied Mathematics. He is remembered for none of that. He is remembered for a problem he posed in 1937, two years after his doctorate, and never published.

That omission shaped everything that followed. The problem spread by word of mouth and picked up a new name wherever it landed. Collatz is reported to have passed it around orally at the International Congress of Mathematicians in Cambridge, Massachusetts, in 1950, and to have described it to Helmut Hasse in Hamburg in 1952. Hasse took to it, and according to Jeffrey Lagarias's survey of the literature it was Hasse who proposed calling it the Syracuse problem, during a visit to Syracuse University. Elsewhere it is Ulam's conjecture, after Stanisław Ulam; Kakutani's problem, after Shizuo Kakutani; the Thwaites conjecture, after Bryan Thwaites; or Hasse's algorithm. Plainest of all, it is the 3n+1 problem. Nothing about it appeared in the mathematical literature until the early 1970s.

The names multiplied because the proofs did not. The rule interleaves multiplication and division in a way that defeats the standard tools: no quantity decreases monotonically, and there is no algebraic structure to lean on. Paul Erdős's much-quoted verdict was that "mathematics may not be ready for such problems" — the variant "is not yet ready for such problems" also circulates.

What progress exists is statistical. In 2019 Terence Tao showed that, measured by logarithmic density, almost all starting values have orbits that eventually sink below any function you care to name, so long as it grows to infinity; the work was published as "Almost all orbits of the Collatz map attain almost bounded values" in Forum of Mathematics, Pi in 2022. Brute force has gone further in its narrower way: every start below 2^68 had been checked by 2020, and David Barina raised the verified limit to 2^71, about 2.36 × 10^21, in 2025. Not one counterexample has turned up.

Tính chất chính

  • The rule: halve n when it is even, replace it with 3n+1 when it is odd. The conjecture — still unproved — is that every positive integer eventually reaches 1.
  • Starting from 27 the trajectory takes 111 steps and climbs to 9,232 before falling to 1. No smaller starting number needs more than 23 steps.
  • Stopping time is wildly non-monotone: 27 takes 111 steps while its neighbour 28 takes 18.
  • Powers of two are the dull case — 2^k simply halves k times, so it finishes in exactly k steps.
  • Doubling a start adds exactly one step: 2n halves straight back to n, so the total stopping time of 2n is always one more than that of n.
  • A rise is never followed by a rise: 3n+1 is even whenever n is odd, so every tripling step is immediately followed by a halving.
  • Below one million, 837,799 has the longest trajectory at 524 steps, and 704,511 climbs the highest, reaching 56,991,483,520.
  • Every trajectory that reaches 1 then cycles 1 → 4 → 2 → 1. No other cycle is known, and the computer search rules out any cycle containing a number below 2^71.

Xuất hiện ở đâu

  • Project Euler problem 14 asks which starting number below one million produces the longest Collatz chain; the answer is 837,799, with 524 steps.
  • The iteration is a standard first exercise in programming courses, usually under the name "hailstone numbers" — the values rise and fall like a hailstone carried up and down inside a storm cloud.
  • It is the textbook example in program-termination analysis: a four-line loop whose termination nobody can prove. John Conway showed in 1972 that a natural generalisation of the rule produces undecidable problems, so no single algorithm can settle every variant.
  • Searching for a counterexample has become a benchmark for GPU-accelerated integer arithmetic; David Barina’s open-source verification code holds the current record.
  • The xkcd strip numbered 710, titled "Collatz Conjecture", made the problem a joke about mathematical obsession — a measure of how far outside mathematics it has travelled.

Cách dùng bộ tạo này

Các giá trị được tạo hiện ở trên cùng, bên cạnh là nút sao chép. Để biến chúng thành ảnh, hãy chọn một dáng vẻ trong các kiểu ở phần Tạo ảnh, chọn kích thước xuất rồi tải về dưới dạng PNG, JPEG hoặc WebP. Mọi thứ được vẽ trong trình duyệt, nên không có gì bạn tạo ra được gửi tới máy chủ.

Thanh địa chỉ cập nhật theo lúc bạn làm, nên liên kết luôn cho lại đúng những gì bạn đang thấy — tiện khi muốn chia sẻ một dãy cụ thể hay giữ lại một cấu hình. Dùng Sao chép để lấy giá trị dưới dạng văn bản thuần, hoặc Xuất dữ liệu để có CSV, JSON, NDJSON, SQL và XML.

Nguồn

Các phần tóm lược lịch sử trên trang này dựa vào những tài liệu giấy phép mở được liệt kê ở trên. Thấy chỗ nào sai? Hãy cho chúng tôi biết và chúng tôi sẽ sửa.