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 17:30
What does x = in this equation x+3+2x=x+5
Answers: 2
question
Mathematics, 21.06.2019 20:00
What is the total area of the figure?
Answers: 1
question
Mathematics, 21.06.2019 20:00
How to find the exponential function y=ca^x, with points (1,2) and (2,1)
Answers: 2
question
Mathematics, 21.06.2019 21:30
Questions 9-10. use the table of educational expenditures to answer the questions. k-12 education expenditures population indiana $9.97 billion 6.6 million illinois $28.54 billion 12.9 million kentucky $6.58 billion 4.4 million michigan $16.85 billion 9.9 million ohio $20.23 billion 11.6million 9. if the amount of k-12 education expenses in indiana were proportional to those in ohio, what would have been the expected value of k-12 expenditures in indiana? (give the answer in billions rounded to the nearest hundredth) 10. use the value of k-12 education expenditures in michigan as a proportion of the population in michigan to estimate what the value of k-12 education expenses would be in illinois. a) find the expected value of k-12 expenditures in illinois if illinois were proportional to michigan. (give the answer in billions rounded to the nearest hundredth) b) how does this compare to the actual value for k-12 expenditures in illinois? (lower, higher, same? )
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
Chemistry, 12.03.2021 01:00
question
History, 12.03.2021 01:00
question
Mathematics, 12.03.2021 01:00
question
Mathematics, 12.03.2021 01:00
question
Social Studies, 12.03.2021 01:00
Questions on the website: 13722367