the following function attempts to calculate the th triangular number (). the th triangular number is defined by the formula: in other words, triangular numbers are just like factorial numbers, but with addition instead of multiplication. below we've attempted to write a recursive formula that will calculate the th triangular number.