Turing Tumble Community

Multiples of three

Objective: Round A down to the nearest multiple of 3 and store the result in B.

Available parts: Everything.

Starting setup:
Blue: 21 - - - - - - - - - - - - - - - - - - - - - Red: 0
IMG_4905

A layout-independent way to think about it: build a 3-state cycle that advances once per incoming marble. Only when the cycle returns to its start has a full group of three arrived. Route those completed groups to B and dump the final 1–2 marbles. If B counts marbles, that directly gives 3·floor(A/3); if B is binary, increment B once per completed group and then scale by three, or add three per group.