e.g. If 4 is given: 1 + 3 + 6 + 10 = 20. Triangular Numbers cannot be negative so return 0 if a negative number is given.
* Calculates the sum of the triangular numbers up to a given level. * @param {number} n - The level up to which triangular numbers are calculated. * @returns {number} - The sum of the triangular ...
https://doi.org/10.4169/college.math.j.46.3.172 https://www.jstor.org/stable/10.4169/college.math.j.46.3.172 The College Mathematics Journal emphasizes the first two ...
Mathematics Magazine presents articles and notes on undergraduate mathematical topics in a lively expository style that appeals to students and faculty throughout the undergraduate years. The journal ...