Arithmetic Billiards Racks
✓ Published0🌍 Public
BBBischof
Last edited May 22, 2017
Created on May 19, 2017
This visualization shows the exhaustive search for arithmetic billiards racks, where each rack is a triangular arrangement of numbered balls where adjacent pairs combine via addition or absolute difference to produce the ball below. The code enumerates all possible starting configurations and recursively fills each row, displaying complete racks with remaining balls listed. It uses Python’s `copy.deepcopy` and custom `rack` and `row` classes to track and print valid arrangements, with the final output summarizing counts of racks by size.
AI-generated description