What formula is used in the simple calculation of 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = 15?

What formula is used in the simple calculation of 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = 15?

The formula of (head number + tail number) × term number △ 2 is used