more concise parsing of triangle-number structure