Got Homework?
Connect with other students for help. It's a free community.
Here's the question you clicked on:
 0 viewing
johnnydiamond08
Group Title
How do I go about solving: 1+Floor(Log2(x)) where x = 8
 2 years ago
 2 years ago
johnnydiamond08 Group Title
How do I go about solving: 1+Floor(Log2(x)) where x = 8
 2 years ago
 2 years ago

This Question is Closed

KingGeorge Group TitleBest ResponseYou've already chosen the best response.2
First up, you need to find what \(\log_2(8)\) is. Can you tell me what that is?
 2 years ago

johnnydiamond08 Group TitleBest ResponseYou've already chosen the best response.0
3 or 2^3?
 2 years ago

KingGeorge Group TitleBest ResponseYou've already chosen the best response.2
Right. It's 3. So now you have the equation \[1+\lfloor3\rfloor\]Can you finish it from here? Or do you need some help with the floor function?
 2 years ago

johnnydiamond08 Group TitleBest ResponseYou've already chosen the best response.0
So it would be 4 then?
 2 years ago

KingGeorge Group TitleBest ResponseYou've already chosen the best response.2
Looks perfect to me.
 2 years ago

johnnydiamond08 Group TitleBest ResponseYou've already chosen the best response.0
Okay so just to make sure I know what I'm doing. All you do is find what X would be and then add one to it?
 2 years ago

KingGeorge Group TitleBest ResponseYou've already chosen the best response.2
The floor function is a bit weird. For example, if you had \[1+\left\lfloor \log_2(9)\right\rfloor\]instead, you would simplify as follows. Since \(\log_2(9)\approx 3.17\), you have\[1+\left\lfloor \log_2(9)\right\rfloor\\ 1+\left\lfloor 3.17\right\rfloor \\ 1+3 \\ 4\] In general, the floor function gets rid of any numbers to the right of the decimal place.
 2 years ago

johnnydiamond08 Group TitleBest ResponseYou've already chosen the best response.0
Ah alright. We're doing all this stuff by hand so my professor is making it pretty easy for us. Thank you KingGeorge, you've been a lot of help!
 2 years ago

KingGeorge Group TitleBest ResponseYou've already chosen the best response.2
Formally, \[\left\lfloor x\right\rfloor=\text{max}\{m\in\mathbb{Z} \;m<x\]In laymans terms, the greatest integer that is not greater than \(x\).
 2 years ago

johnnydiamond08 Group TitleBest ResponseYou've already chosen the best response.0
So following the same equation but making X 123,456 the answer would be 17.
 2 years ago

KingGeorge Group TitleBest ResponseYou've already chosen the best response.2
Looks perfect.
 2 years ago

johnnydiamond08 Group TitleBest ResponseYou've already chosen the best response.0
Thanks again!
 2 years ago

KingGeorge Group TitleBest ResponseYou've already chosen the best response.2
You're welcome.
 2 years ago
See more questions >>>
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.