Solution for the HighlyDivisibleTriangularNumber problem