subject
Mathematics, 20.11.2020 14:00 july00

Write a function that is passed in a positive integer, n, and sum up all the digits from 1 to n, doubling the even numbers. In other words, calculate and return the following sum. if n is odd: 1 (2 * 2) 3 (4 * 2) ... ((n - 1) * 2) n if n is even: 1 (2 * 2) 3 (4 * 2) ... (n - 1) (n* 2)

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 15:50
Which of the following represents a number squared is equal to twenty more than nine times that number ? a) x squared = 9x + 20 b) x squared = 20x + 9 c) x squared > 9 + 20x d) x squared = 9 + x + 20
Answers: 2
question
Mathematics, 21.06.2019 19:00
What is the average diastolic blood pressure for adults
Answers: 2
question
Mathematics, 21.06.2019 20:00
Ialready asked this but i never got an answer. will give a high rating and perhaps brainliest. choose the linear inequality that describes the graph. the gray area represents the shaded region. y ≤ –4x – 2 y > –4x – 2 y ≥ –4x – 2 y < 4x – 2
Answers: 1
question
Mathematics, 22.06.2019 00:20
Data for the height of a model rocket launch in the air over time are shown in the table. darryl predicted that the height of the rocket at 8 seconds would be about 93 meters. did darryl make a good prediction? yes, the data are best modeled by a quadratic function. the value of the function at 8 seconds is about 93 meters. yes, the data are best modeled by a linear function. the first differences are constant, so about 93 meters at 8 seconds is reasonable. no, the data are exponential. a better prediction is 150 meters. no, the data are best modeled by a cubic function. a better prediction is 100 meters.
Answers: 2
You know the right answer?
Write a function that is passed in a positive integer, n, and sum up all the digits from 1 to n, dou...
Questions
question
Biology, 11.01.2020 14:31