Question: Description:python Given the triangle of consecutive odd numbers: 1 3 5 7 9 1 1 1 3 1 5 1 7 1 9 2 1

Description:python
Given the triangle of consecutive odd numbers:
1
35
7911
13151719
2123252729
...
Calculate the sum of the numbers in the nth row of this triangle (starting at index 1) e.g.: (Input --> Output)
1-->1
2-->3+5=8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!