Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Given the number $n$. Why does it take maximum of $\frac{n}{\log n}$ digits to represent the number $2^n - 1$ in base of $n$?

share|improve this question
    
Why is this listed as complex analysis? –  Thomas Andrews Dec 13 '12 at 18:51
    
Thanks Thomas Andrews! –  user1901968 Dec 13 '12 at 18:51
    
Because it is a part of a complexity algorithm called Radix-Sort –  user1901968 Dec 13 '12 at 18:52
1  
Complexity is not the same as complex analysis, which is analysis on the complex plane. –  Thomas Andrews Dec 13 '12 at 18:53
    
Changed the tag :) –  user1901968 Dec 13 '12 at 18:54
add comment

1 Answer

up vote 0 down vote accepted

Hint: to express any number $m$ in base $n$ takes $\lfloor \log_n m \rfloor +1$ digits. To see this, think about base $10$. With one digit you can express any number up to $9$, for which the floor of the log is $0$. With three digits you can express numbers up to $999$, for which the floor is $2$. What base of logs were you planning to use?

share|improve this answer
    
Helped a lot! Thanks Ross! –  user1901968 Dec 13 '12 at 19:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.