Push out single use of isTriangular.
Brute force solution for 112.