Well, scientists were curious about it too, and have now worked out the mathematical equation that underpins how we navigate sidewalks, and why, collectively, it descends into chaos so quickly.