Code for exploring the Amir Problem