given below is the odd number function. Which of the following are equal to O(10) O(n)=2n-1 check all that apply A.19 B.O(9)+2 C.The 10th odd number D.10 i really need help on this
the function itself, is a function that no matter what ODD or UNEVEN value you give to "n" the O(n) function will always give an ODD number, never an EVEN one so, what they're asking is, what would be O(n) when n = 10, or O(10) which is pretty straight forward, just set n = 10 in the function, and get the value
or I should have said, no matter what value "n" takes, the function will always "spit out" an UNEVEN number
so what would be the answers?
well, set n = 10, for O(n) = 2n -1 what does it give you?
O(10)=20-1?
yes
so is it only 19? or are there other answers
so, \(\bf \text{"the following are equal to O(10)"}\) , 19 :)
so only 19?
yes
Join our real-time social learning platform and learn together with your friends!