This Triangle Number is produced by a pattern of dots that form a triangle. The first 5 numbers in a row, or dots, are: 1, 3, 6, 10, 15 This means that the first triangle has only one dot, the second...


Java Script


This Triangle Number is produced by a pattern of dots that<br>form a triangle. The first 5 numbers in a row, or dots, are:<br>1, 3, 6, 10, 15<br>This means that the first triangle has only one dot, the second<br>has three dots, the third has 6 dots and so on.<br>Write a function that returns the number of dots when you are<br>given their corresponding triangular number sequence.<br>Examples<br>triangle (1) -1<br>triangle (6) - 21<br>triangle (215) 23220<br>

Extracted text: This Triangle Number is produced by a pattern of dots that form a triangle. The first 5 numbers in a row, or dots, are: 1, 3, 6, 10, 15 This means that the first triangle has only one dot, the second has three dots, the third has 6 dots and so on. Write a function that returns the number of dots when you are given their corresponding triangular number sequence. Examples triangle (1) -1 triangle (6) - 21 triangle (215) 23220

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here