Some cleanup
Calculate the triangle numbers