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.

Is there a way to find the first digits of a number?

For example, the largest known prime is $2^{43,112,609}-1$, and I did sometime before a induction to find the first digit of a prime like that. But, is there a way to find the first digits of a number?

To find the last x digits is easy, just calculate it mod $10^x$, but we can do something about the first ones?

share|improve this question
    
Out of curiosity, why would you want to know the first digit? –  JavaMan Dec 7 '11 at 22:45
4  
It's the middle ones that are difficult. –  Ross Millikan Dec 7 '11 at 23:02
    
@JavaMan, well, is just curiosity too, but I think it can be applied to study some numbers ^^. –  GarouDan Dec 7 '11 at 23:05
    
@RossMillikan, I think you're right. –  GarouDan Dec 7 '11 at 23:05
add comment

1 Answer 1

up vote 6 down vote accepted

What you want is $10$ to the power the fractional part of $43,112,609 \log_{10}2\approx 0.50033$, then $10^.50033\approx 3.1646$ so the leading digits are $316.$ Wolfram Alphaconfirms $31647$

share|improve this answer
    
Thx Ross, this works. Unfortunally André had deleted his answer. Thx André too. –  GarouDan Dec 7 '11 at 23:22
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.