initial attempt at divisor counter, triangle number generation