7 kyu
Sum of Triangular Numbers
5,661 of 17,704ThomasL
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 | 33511 |
Total Skips | 5122 |
Total Code Submissions | 45901 |
Total Times Completed | 17704 |
JavaScript Completions | 5661 |
Ruby Completions | 385 |
Python Completions | 4148 |
C# Completions | 874 |
C Completions | 1592 |
Java Completions | 2154 |
TypeScript Completions | 469 |
CoffeeScript Completions | 24 |
C++ Completions | 1972 |
Haskell Completions | 225 |
Crystal Completions | 21 |
NASM Completions | 59 |
Julia Completions | 31 |
Prolog Completions | 30 |
R Completions | 67 |
COBOL Completions | 15 |
Factor Completions | 16 |
SQL Completions | 849 |
Total Stars | 261 |
% of votes with a positive feedback rating | 89% of 2109 |
Total "Very Satisfied" Votes | 1708 |
Total "Somewhat Satisfied" Votes | 344 |
Total "Not Satisfied" Votes | 57 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |