[math-fun] Square (& other) chains and necklaces.