triangle number factorization, project euler number 12