determined formula for generating triangle numbers, need to factor each number
counting factors