7 kyu
Sum of Triangular Numbers
5,643 of 17,602ThomasL
Description:
Your task is to return the sum of Triangular Numbers up-to-and-including the nth
Triangular Number.
Triangular Number: "any of the series of numbers (1, 3, 6, 10, 15, etc.) obtained by continued summation of the natural numbers 1, 2, 3, 4, 5, etc."
[01]
02 [03]
04 05 [06]
07 08 09 [10]
11 12 13 14 [15]
16 17 18 19 20 [21]
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.
Mathematics
Fundamentals
Similar Kata:
Stats:
Created | Oct 20, 2016 |
Published | Oct 20, 2016 |
Warriors Trained | 33312 |
Total Skips | 5103 |
Total Code Submissions | 45658 |
Total Times Completed | 17602 |
JavaScript Completions | 5643 |
Ruby Completions | 385 |
Python Completions | 4120 |
C# Completions | 871 |
C Completions | 1587 |
Java Completions | 2145 |
TypeScript Completions | 467 |
CoffeeScript Completions | 24 |
C++ Completions | 1962 |
Haskell Completions | 225 |
Crystal Completions | 21 |
NASM Completions | 57 |
Julia Completions | 31 |
Prolog Completions | 30 |
R Completions | 65 |
COBOL Completions | 15 |
Factor Completions | 16 |
SQL Completions | 823 |
Total Stars | 260 |
% of votes with a positive feedback rating | 89% of 2105 |
Total "Very Satisfied" Votes | 1707 |
Total "Somewhat Satisfied" Votes | 342 |
Total "Not Satisfied" Votes | 56 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |