subject
Mathematics, 29.07.2020 23:01 mine9226

The following function attempts to calculate the n th triangular number ( Tn ). The n th triangular number is defined by the formula: Tn=n+(n−1)+(n−2)+...+3+2+1 In other words, triangular numbers are just like factorial numbers, but with addition instead of multiplication. Below we've attempted to write a recursive formula that will calculate the n th triangular number. 1| def tri(n): 2| return n + tri(n - 1) What will be the current result of using this function?

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 19:00
Sanya noticed that the temperature was falling at a steady rate of 1.4 degrees every hour from the time that she first checked her outdoor thermometer. by 6 a.m., the temperature had fallen 21 degrees. which expression can you use to find how many hours earlier she had first checked the thermometer?
Answers: 3
question
Mathematics, 21.06.2019 22:10
What is the area of the original rectangle? 8 cm² 20 cm² 25 cm² 40 cm²
Answers: 1
question
Mathematics, 21.06.2019 23:30
Simplify. 3(4+4x) (type your answer in with no spaces)
Answers: 1
question
Mathematics, 21.06.2019 23:30
Write a similarity statement for the similar triangles. afgh ~ a
Answers: 1
You know the right answer?
The following function attempts to calculate the n th triangular number ( Tn ). The n th triangular...
Questions
question
Mathematics, 16.10.2019 17:30