#logarithmic/exponential inequalities
1 messages · Page 1 of 1 (latest)
- Wait patiently for a helper to come along.
- Once someone helps you, say thank you and close the thread with:
+close
- Feel free to nominate the person for helper of the week in #helper-nominations
- Do not ping the mods, unless someone is breaking the rules.
- If you're happy with the help you got here, and the server overall, you can contribute financially as well:
The number of digits in a positive integer n is ⌊lg(n)⌋ + 1.
Wait what?
How?
They never taught us this formula
Also what about negative integers? Is it just gonna be lg(n)?
Well, it's pretty easy to derive it.
If n = 10^k, then the number of its digits is k + 1, which is lg(n) + 1.
As that is the same for all numbers between 10^k and 10^(k + 1) - 1, we can just round it down, getting ⌊lg(n) + 1⌋ = ⌊lg(n)⌋ + 1.
Ok so in this particular case
I gotta find the number of digits in 4^100
The formula I’m working with
Is lg(n)+1
lg(4^100)+1
100lg4 +1
We were given the value of log 4 above
Let me see
It’s 0.60206
Don't forget that it's ⌊lg(n)⌋, not just lg(n).
I solve the log first and then add 1?
So [100*0.60206]+1
(60.206)+1
Rounding 60.206 to 60
61
Is that correct sir?
Gotcha
Yes.
Also, why "sir"? I'm not that old 😅
Or else the number of digits will be in decimals and that won’t make a lot of sense?
I was just trying to be respectful lol
Yes.
I see also
What if
N is negative?

Asking this question just out of curiosity
Well, negative numbers don't really have a different amount of digits. So, we can just replace n with |n|.
True they don’t
I see for them the formula is gonna look like [ lg|n|] + 1?
Asking this question
Before I write it
In my notes
I don't recommend using [x], as it's a little ambiguous. I prefer only using ⌊x⌋ and ⌈x⌉.
Oh there are different kinds of box brackets now?
Well, ⌊x⌋ is the floor function, ⌈x⌉ is the ceiling function.