problem 12, factors of triangle numbers