Combinations and permutations and locks, oh my!

I bought a cheap push button combination lock and fell down a rabbit hole when I realized it didn't matter what order you entered the code in. Check out my teardown of the mechanism and the 3D models I designed to figure out how they worked (and why the manual’s advice to set a 5–7 digit code is so interesting).