sylvesters triangle problem