107k views
1 vote
Given below is the odd-number function. Which of the following are equal to O(20)? Check all that apply. O(n) = 2n - 1 A. O(19) + 1 B. The twentieth odd number C. 39 D. 19

1 Answer

2 votes

In order for us to determine the value of O(20), we just have to substitute 20 to the n’s of the function.

O(n) = 2n – 1

Substituting,

O(20) = 2(20) – 1= 39

Thus, the answer is letter C. It should be noted also that this is also the 20th odd number, so letter B is also acceptable.

User Kushal Sharma
by
7.5k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories