Collatz's Ant: Visualizing Collatz Sequences with Langton's Ant
2024-12-23
Collatz's Ant visualizes Collatz sequences using Langton's Ant rules. Based on the Collatz function (even numbers halved, odd numbers multiplied by 3 and added to 1), the ant turns 90 degrees clockwise for even numbers and counter-clockwise for odd numbers. The cell's state flips with each move, repeating until n=1. Code and examples demonstrate consecutive trajectories from 10^30 to 10^30+20.
Read more