Okay, so I needed to find the smallest value of n such that algorithm 100*n^2 is faster than 2^n.
[what I have tried]
So, I instantly thought '0'. But, I then realized it can't be 0, 0 implies that there are no digits being entered in the algorithm, it also implies that the program does not run or terminate.
I typed in 2^32 and got a number over 4 billion. Okay, this is good, I'm finding numbers that have 100*n^2 being faster than 2^n.
I halved that, n = 20.
I kept inserting values counting down until I got to n = 15.
I also counted up from n = 10, the answer is undoubtedly n = 15, but I have a problem . . . .I solved this using brute force and that isn't good. What if I was given a bigger number and a larger bredth of numbers?
[What I need]
I need a way of finding the value instantaneously by only doing the math, I tried using logarithms, but my answer was wrong, my knowledge of logs is a bit rusty and I need a little help.
Think of it as a student trying to solve a question on an SAT or having a timer for a test.
You might want to look up Binary Search if you are looking for a computer science solution which in this case is much simpler. The alternative is the mathematical solution which is achieved via the Lambert function.
Binary Search
Kepp repeating these steps until $b_l <= b_u$ and when you terminate the value you have of $n$ is you're required value