+0  
 
0
87
2
avatar

A number is called triangular if it is the sum of the first $n$ positive integers for some $n.$ For example, 10 is triangular because $10 = 1+2+3+4$ and 21 is triangular because $21 = 1+2+3+4+5+6.$ (For fun, see if you can figure out where the name "triangular" comes from.) Write a Python program to find the smallest 6-digit triangular number. Enter the smallest 6-digit triangular number as your answer below.

 Aug 13, 2020
 #1
avatar
0

Go online to this page and learn how to find the nth triangular number. Click the "Python 3" code and see how it is done. Good luck.

 Aug 13, 2020
 #2
avatar
0

Sorry, I didn't give you the link. Here it is:  https://www.geeksforgeeks.org/smallest-triangular-number-larger-than-p/

Guest Aug 13, 2020

38 Online Users

avatar
avatar
avatar
avatar