Universal Miscellany personal blog

Collatz’s Ant

if $n \equiv 0 \, (\text{mod}\, 2)$ the ant turns 90º clockwise, else the ant turns 90º counter-clockwise. On both accounts, the state of the cell is flipped and the ant moves forward one unit. This is repeated until $n = 1$.
Points
114
HN comments
13
Submissions
1
Cited by
0 commenters

Math & Algorithms2024

On Hacker News

SubmittedTitle on HNPointsComments
Dec 21, 2024Collatz’s Ant by Fibra11413

More from Universal Miscellany

All 2 posts →

Related posts from the same era