Collapsing Numbers Formula