sum of alternate numbers in a triangle