Project Euler 45 - Triangle, pentagonal, and hexagonal

Official link: https://projecteuler.net/problem=45