Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Collatz Kelp Forest

The Collatz (3n + 1) tree grown as a kelp forest in a sunlit tank, where every frond is one number's road down to 1 from a shared holdfast; point at a tip to chart its climb and fall, sow any whole number up to a trillion and turn two brass dials to re-shape the forest.

Ví dụ

Collatz Kelp Forest tank
Mở trong tab mới

Collatz Kelp Forest tank

Ví dụ chạy trong khung được sandbox hóa, không có quyền truy cập vào trang này.

Chạy trực tuyến

Chạy trong sandbox của SandBase và xem kết quả trong Lab.

Mở trong Lab ↗

Bạn nhận được gì

Bring the numbers to sow and the two turn angles that shape the forest. The Skill returns a downloadable Skill and a runnable kelp-tank scene.

Cách hoạt động

  1. 01

    Build the kelp tank page

    Collatz Kelp Forest needs only npm install, which brings in playwright-core for the checks, then npm run build for one bilingual dist/index.html, or node scripts/build.mjs dusk-zh for a Chinese-only page. The water, light beams, sand, fish, bubbles and every frond are Canvas 2D code with no image assets and no network requests, so the tank opens offline from a single file.

  2. 02

    Grow the merged 3n + 1 tree

    For each n from 2 to 6,000 (2,400 on phones) the page walks the Collatz sequence down until it meets a value already in the tree, then links the stack back, giving 12,912 nodes. Each edge turns by the even angle for a halving step and the opposite odd angle for a 3n + 1 step, and the whole tree is stood upright by its centroid angle before it sways.

  3. 03

    Trace, sow and check the forest

    Open dist/index.html, or add ?lang=zh-CN for Chinese. Point at a frond tip to chart its road on the specimen slide, sow a number up to 10^12 or pick one of five long journeys, and turn the even and odd dials. npm run shoot then runs 14 mechanism checks offline, and the holdfast verify script proves five live interactions under the sandbox policy.

Câu hỏi thường gặp

What does each frond in Collatz Kelp Forest show?

Each frond in Collatz Kelp Forest is the road one whole number takes down to 1 under the 3n + 1 rule: halve an even value, turn an odd value n into 3n + 1, and repeat. Roads that pass through the same value share a stem, which is why every frond in the tank grows from a single holdfast labelled 1 on the sand.

Does Collatz Kelp Forest prove the Collatz conjecture?

No. Collatz Kelp Forest only draws the roads of the numbers it grows, and every one it checks reaches 1, as every number tested so far has. Whether all whole numbers must reach 1 is still an open problem, and the ledger on the sand keeps a playful count of disproofs found, which stays at zero.

What does the specimen slide in Collatz Kelp Forest chart?

The specimen slide in Collatz Kelp Forest shows the selected number, how many moves it takes to reach 1 and the highest value along the way. A small chart plots the height of every value on a log scale and draws itself in, while an amber thread with a numbered tag marks the same road through the forest and beads the final stretch from 16 down to 1.

How large a number can I sow in Collatz Kelp Forest?

Collatz Kelp Forest accepts any whole number from 1 to 10^12. Sown numbers are stored as BigInt, so a twelve-digit start is walked exactly, and the new frond joins the forest with the same angle law as the rest. Five chips offer known long journeys such as 27, 871 and 837,799, and the arrow keys step the slide to the next or previous number.

What do the brass dials in Collatz Kelp Forest change?

Collatz Kelp Forest has two brass gauge dials. The even dial sets the turn for a halving step, from 2 to 16 degrees, and the odd dial sets the opposite turn for a 3n + 1 step, from 6 to 30 degrees. Both can be dragged or nudged with the arrow keys, and the whole tree re-shapes at once, so the same numbers can lean, curl or fan out.

What does tint by peak do in Collatz Kelp Forest?

By default Collatz Kelp Forest shades each frond by how many moves it sits from 1, from the dark holdfast teal to a sunlit green crown. The tint by peak switch shades by the highest value reached instead, from pale to abyss blue, so roads that climb unusually high stand out. Frond width always follows how many numbers pass through that stretch.

Does Collatz Kelp Forest need an API key or a network connection?

No. Collatz Kelp Forest is one HTML file that draws the tank in the browser and calls no model during use, so there is nothing to configure or pay for. The only package npm install fetches is playwright-core for the headless checks. With ?capture=1 the page stops its own animation loop and fixes the seed of its fish and bubbles for frame-by-frame recording.

Lab Skill · Interactive scenes

Resin Diorama

Live 3D resin-block dioramas in your browser: send a little tram across a clear turquoise sea, or ripple the bay of a cliff island. Synthesized sound, and every scene can be tuned.

Lab Skill · Interactive scenes

3D Vehicle Worlds

Explore interactive 3D vehicle worlds in your browser, with varied terrain, camera controls and driving effects. Choose a playable example to begin.

Lab Skill · Interactive scenes

3D Firefly Terrariums

Turn a thick glass miniature, scatter glowing fireflies and open its brass lid. Actual particles leave through the neck and return before it seals. A moonlit cabin, forest and real local lights in one offline HTML.

Lab Skill · Interactive scenes

Jelly Candy: Fruit Bears

Six translucent fruit gummies on a white table. Grab any part and pull, lift a head until the neck stretches thin, press one flat until it springs back, flick one across the pile or pour in more. Fixed-step soft-body physics and a marching-cubes skin in one offline HTML.

Lab Skill · Interactive scenes

WebGPU Soft-Body Gummy Bears

Four translucent gummy bears on an ivory floor, rendered with native WebGPU. A deterministic 36-second choreography stretches, presses, flips and tumbles them before they settle back to the exact rest pose. Drag any bear to stretch, squish or toss it. A fixed-step tetrahedral XPBD solver in one offline HTML.

Lab Skill · Interactive scenes

Stone Stars: 3D Miniature Landmark City

Turn a city into a storybook 3D island around one landmark, with chapters, a daylight-to-starlight slider, street life and a matching scored 24-second film. Sample: a Gaudí-style basilica.