Probability that the first digit of $2^{n}$ is 1
$begingroup$
Let $a_{n}$ be the number of terms in the sequence $2^{1},2^{2},cdots ,2^{n}$ which begins with digit 1.
Prove that $$log2 -frac{1}{n}<frac{a_{n}}{n}<log2text{ (log base is 10)}$$
Note: This is only a part of the question.The actual question is:Prove that the probability that randomly chosen power of 2 begins with 1 is $log2$.
The rest is quite easy(once I've proven the above inequality).Could anyone give me any hint for solving this question?Thanks!
sequences-and-series inequality contest-math
$endgroup$
add a comment |
$begingroup$
Let $a_{n}$ be the number of terms in the sequence $2^{1},2^{2},cdots ,2^{n}$ which begins with digit 1.
Prove that $$log2 -frac{1}{n}<frac{a_{n}}{n}<log2text{ (log base is 10)}$$
Note: This is only a part of the question.The actual question is:Prove that the probability that randomly chosen power of 2 begins with 1 is $log2$.
The rest is quite easy(once I've proven the above inequality).Could anyone give me any hint for solving this question?Thanks!
sequences-and-series inequality contest-math
$endgroup$
$begingroup$
Hint1: How can you express the fact that a particular number starts with the digit $1$ in base $10$? Hint 2: If you're having trouble with Hint 1, assume that the number has $k$ digits. Hint 3: Take logs. Hint 4: Fractional parts.
$endgroup$
– ShreevatsaR
Jun 11 '13 at 14:36
1
$begingroup$
BTW, a far more general statement is true, for powers of any (rational or irrational) number in place of $2$, and any starting digit. That is, for any number $alpha$ that is not a power of $10$, the probability that a randomly chosen power of $alpha$ begins with $1$ is $log2$, and in fact the probability that a randomly chosen power of $alpha$ begins with some $d$ (where $1le dle9$) is $log(d+1)-log d$. That was what my hint above was for, but you don't need all that for $alpha = 2$ and $d = 1$, as shown by Calvin Lin's cool answer below. ("prob. of randomly chosen..." = density)
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:44
add a comment |
$begingroup$
Let $a_{n}$ be the number of terms in the sequence $2^{1},2^{2},cdots ,2^{n}$ which begins with digit 1.
Prove that $$log2 -frac{1}{n}<frac{a_{n}}{n}<log2text{ (log base is 10)}$$
Note: This is only a part of the question.The actual question is:Prove that the probability that randomly chosen power of 2 begins with 1 is $log2$.
The rest is quite easy(once I've proven the above inequality).Could anyone give me any hint for solving this question?Thanks!
sequences-and-series inequality contest-math
$endgroup$
Let $a_{n}$ be the number of terms in the sequence $2^{1},2^{2},cdots ,2^{n}$ which begins with digit 1.
Prove that $$log2 -frac{1}{n}<frac{a_{n}}{n}<log2text{ (log base is 10)}$$
Note: This is only a part of the question.The actual question is:Prove that the probability that randomly chosen power of 2 begins with 1 is $log2$.
The rest is quite easy(once I've proven the above inequality).Could anyone give me any hint for solving this question?Thanks!
sequences-and-series inequality contest-math
sequences-and-series inequality contest-math
edited Jun 11 '13 at 14:34
Shaswata
asked Jun 11 '13 at 14:20
ShaswataShaswata
3,8741025
3,8741025
$begingroup$
Hint1: How can you express the fact that a particular number starts with the digit $1$ in base $10$? Hint 2: If you're having trouble with Hint 1, assume that the number has $k$ digits. Hint 3: Take logs. Hint 4: Fractional parts.
$endgroup$
– ShreevatsaR
Jun 11 '13 at 14:36
1
$begingroup$
BTW, a far more general statement is true, for powers of any (rational or irrational) number in place of $2$, and any starting digit. That is, for any number $alpha$ that is not a power of $10$, the probability that a randomly chosen power of $alpha$ begins with $1$ is $log2$, and in fact the probability that a randomly chosen power of $alpha$ begins with some $d$ (where $1le dle9$) is $log(d+1)-log d$. That was what my hint above was for, but you don't need all that for $alpha = 2$ and $d = 1$, as shown by Calvin Lin's cool answer below. ("prob. of randomly chosen..." = density)
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:44
add a comment |
$begingroup$
Hint1: How can you express the fact that a particular number starts with the digit $1$ in base $10$? Hint 2: If you're having trouble with Hint 1, assume that the number has $k$ digits. Hint 3: Take logs. Hint 4: Fractional parts.
$endgroup$
– ShreevatsaR
Jun 11 '13 at 14:36
1
$begingroup$
BTW, a far more general statement is true, for powers of any (rational or irrational) number in place of $2$, and any starting digit. That is, for any number $alpha$ that is not a power of $10$, the probability that a randomly chosen power of $alpha$ begins with $1$ is $log2$, and in fact the probability that a randomly chosen power of $alpha$ begins with some $d$ (where $1le dle9$) is $log(d+1)-log d$. That was what my hint above was for, but you don't need all that for $alpha = 2$ and $d = 1$, as shown by Calvin Lin's cool answer below. ("prob. of randomly chosen..." = density)
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:44
$begingroup$
Hint1: How can you express the fact that a particular number starts with the digit $1$ in base $10$? Hint 2: If you're having trouble with Hint 1, assume that the number has $k$ digits. Hint 3: Take logs. Hint 4: Fractional parts.
$endgroup$
– ShreevatsaR
Jun 11 '13 at 14:36
$begingroup$
Hint1: How can you express the fact that a particular number starts with the digit $1$ in base $10$? Hint 2: If you're having trouble with Hint 1, assume that the number has $k$ digits. Hint 3: Take logs. Hint 4: Fractional parts.
$endgroup$
– ShreevatsaR
Jun 11 '13 at 14:36
1
1
$begingroup$
BTW, a far more general statement is true, for powers of any (rational or irrational) number in place of $2$, and any starting digit. That is, for any number $alpha$ that is not a power of $10$, the probability that a randomly chosen power of $alpha$ begins with $1$ is $log2$, and in fact the probability that a randomly chosen power of $alpha$ begins with some $d$ (where $1le dle9$) is $log(d+1)-log d$. That was what my hint above was for, but you don't need all that for $alpha = 2$ and $d = 1$, as shown by Calvin Lin's cool answer below. ("prob. of randomly chosen..." = density)
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:44
$begingroup$
BTW, a far more general statement is true, for powers of any (rational or irrational) number in place of $2$, and any starting digit. That is, for any number $alpha$ that is not a power of $10$, the probability that a randomly chosen power of $alpha$ begins with $1$ is $log2$, and in fact the probability that a randomly chosen power of $alpha$ begins with some $d$ (where $1le dle9$) is $log(d+1)-log d$. That was what my hint above was for, but you don't need all that for $alpha = 2$ and $d = 1$, as shown by Calvin Lin's cool answer below. ("prob. of randomly chosen..." = density)
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:44
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Hint 1: Show that there is always a power of 2 that has $k$ digits and starts with 1. (For $k=1$, I'm including $2^0=1$.) Use Shreevastsa's hint about logarithms.
Hint 2: Show that there is at most 1 power of 2 that has $k$ digits and starts with 1.
Hence, there are exactly $k$ powers of 2 from 1 to $2 times 10^k$ that start with 1.
For any $n$, $2^n$ has $ lfloor n log 2 rfloor + 1$ digits, hence $a_n = lfloor n log 2 rfloor$, so $a_n < n log 2$, which gives us the RHS.
For the LHS, show that $lceil n log 2 rceil - 1 = a_n $.
$endgroup$
$begingroup$
Got it.Thanks!!
$endgroup$
– Shaswata
Jun 11 '13 at 14:55
$begingroup$
Oh beautiful. In my hints above I was actually thinking of a solution that proves the answer is $log_{10} 2$ for any powers of any number $alpha$ that is not a power of $10$ (Benford's law, basically), but this very neatly uses the properties of $2$ to do it!
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:30
$begingroup$
@ShreevatsaR The slight issue with Benford's law is that it's the overall probability density, and doesn't deal with the exact counting that OP needs. For example, you can see how working with $1.1^n$ screws up the initial count, but eventually evens it out. The number 2 is unique to this approach of exact counting.
$endgroup$
– Calvin Lin
Jun 11 '13 at 20:37
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f417486%2fprobability-that-the-first-digit-of-2n-is-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Hint 1: Show that there is always a power of 2 that has $k$ digits and starts with 1. (For $k=1$, I'm including $2^0=1$.) Use Shreevastsa's hint about logarithms.
Hint 2: Show that there is at most 1 power of 2 that has $k$ digits and starts with 1.
Hence, there are exactly $k$ powers of 2 from 1 to $2 times 10^k$ that start with 1.
For any $n$, $2^n$ has $ lfloor n log 2 rfloor + 1$ digits, hence $a_n = lfloor n log 2 rfloor$, so $a_n < n log 2$, which gives us the RHS.
For the LHS, show that $lceil n log 2 rceil - 1 = a_n $.
$endgroup$
$begingroup$
Got it.Thanks!!
$endgroup$
– Shaswata
Jun 11 '13 at 14:55
$begingroup$
Oh beautiful. In my hints above I was actually thinking of a solution that proves the answer is $log_{10} 2$ for any powers of any number $alpha$ that is not a power of $10$ (Benford's law, basically), but this very neatly uses the properties of $2$ to do it!
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:30
$begingroup$
@ShreevatsaR The slight issue with Benford's law is that it's the overall probability density, and doesn't deal with the exact counting that OP needs. For example, you can see how working with $1.1^n$ screws up the initial count, but eventually evens it out. The number 2 is unique to this approach of exact counting.
$endgroup$
– Calvin Lin
Jun 11 '13 at 20:37
add a comment |
$begingroup$
Hint 1: Show that there is always a power of 2 that has $k$ digits and starts with 1. (For $k=1$, I'm including $2^0=1$.) Use Shreevastsa's hint about logarithms.
Hint 2: Show that there is at most 1 power of 2 that has $k$ digits and starts with 1.
Hence, there are exactly $k$ powers of 2 from 1 to $2 times 10^k$ that start with 1.
For any $n$, $2^n$ has $ lfloor n log 2 rfloor + 1$ digits, hence $a_n = lfloor n log 2 rfloor$, so $a_n < n log 2$, which gives us the RHS.
For the LHS, show that $lceil n log 2 rceil - 1 = a_n $.
$endgroup$
$begingroup$
Got it.Thanks!!
$endgroup$
– Shaswata
Jun 11 '13 at 14:55
$begingroup$
Oh beautiful. In my hints above I was actually thinking of a solution that proves the answer is $log_{10} 2$ for any powers of any number $alpha$ that is not a power of $10$ (Benford's law, basically), but this very neatly uses the properties of $2$ to do it!
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:30
$begingroup$
@ShreevatsaR The slight issue with Benford's law is that it's the overall probability density, and doesn't deal with the exact counting that OP needs. For example, you can see how working with $1.1^n$ screws up the initial count, but eventually evens it out. The number 2 is unique to this approach of exact counting.
$endgroup$
– Calvin Lin
Jun 11 '13 at 20:37
add a comment |
$begingroup$
Hint 1: Show that there is always a power of 2 that has $k$ digits and starts with 1. (For $k=1$, I'm including $2^0=1$.) Use Shreevastsa's hint about logarithms.
Hint 2: Show that there is at most 1 power of 2 that has $k$ digits and starts with 1.
Hence, there are exactly $k$ powers of 2 from 1 to $2 times 10^k$ that start with 1.
For any $n$, $2^n$ has $ lfloor n log 2 rfloor + 1$ digits, hence $a_n = lfloor n log 2 rfloor$, so $a_n < n log 2$, which gives us the RHS.
For the LHS, show that $lceil n log 2 rceil - 1 = a_n $.
$endgroup$
Hint 1: Show that there is always a power of 2 that has $k$ digits and starts with 1. (For $k=1$, I'm including $2^0=1$.) Use Shreevastsa's hint about logarithms.
Hint 2: Show that there is at most 1 power of 2 that has $k$ digits and starts with 1.
Hence, there are exactly $k$ powers of 2 from 1 to $2 times 10^k$ that start with 1.
For any $n$, $2^n$ has $ lfloor n log 2 rfloor + 1$ digits, hence $a_n = lfloor n log 2 rfloor$, so $a_n < n log 2$, which gives us the RHS.
For the LHS, show that $lceil n log 2 rceil - 1 = a_n $.
edited Feb 11 '17 at 18:10
Maurice P
1,4141732
1,4141732
answered Jun 11 '13 at 14:40
Calvin LinCalvin Lin
36.3k349114
36.3k349114
$begingroup$
Got it.Thanks!!
$endgroup$
– Shaswata
Jun 11 '13 at 14:55
$begingroup$
Oh beautiful. In my hints above I was actually thinking of a solution that proves the answer is $log_{10} 2$ for any powers of any number $alpha$ that is not a power of $10$ (Benford's law, basically), but this very neatly uses the properties of $2$ to do it!
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:30
$begingroup$
@ShreevatsaR The slight issue with Benford's law is that it's the overall probability density, and doesn't deal with the exact counting that OP needs. For example, you can see how working with $1.1^n$ screws up the initial count, but eventually evens it out. The number 2 is unique to this approach of exact counting.
$endgroup$
– Calvin Lin
Jun 11 '13 at 20:37
add a comment |
$begingroup$
Got it.Thanks!!
$endgroup$
– Shaswata
Jun 11 '13 at 14:55
$begingroup$
Oh beautiful. In my hints above I was actually thinking of a solution that proves the answer is $log_{10} 2$ for any powers of any number $alpha$ that is not a power of $10$ (Benford's law, basically), but this very neatly uses the properties of $2$ to do it!
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:30
$begingroup$
@ShreevatsaR The slight issue with Benford's law is that it's the overall probability density, and doesn't deal with the exact counting that OP needs. For example, you can see how working with $1.1^n$ screws up the initial count, but eventually evens it out. The number 2 is unique to this approach of exact counting.
$endgroup$
– Calvin Lin
Jun 11 '13 at 20:37
$begingroup$
Got it.Thanks!!
$endgroup$
– Shaswata
Jun 11 '13 at 14:55
$begingroup$
Got it.Thanks!!
$endgroup$
– Shaswata
Jun 11 '13 at 14:55
$begingroup$
Oh beautiful. In my hints above I was actually thinking of a solution that proves the answer is $log_{10} 2$ for any powers of any number $alpha$ that is not a power of $10$ (Benford's law, basically), but this very neatly uses the properties of $2$ to do it!
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:30
$begingroup$
Oh beautiful. In my hints above I was actually thinking of a solution that proves the answer is $log_{10} 2$ for any powers of any number $alpha$ that is not a power of $10$ (Benford's law, basically), but this very neatly uses the properties of $2$ to do it!
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:30
$begingroup$
@ShreevatsaR The slight issue with Benford's law is that it's the overall probability density, and doesn't deal with the exact counting that OP needs. For example, you can see how working with $1.1^n$ screws up the initial count, but eventually evens it out. The number 2 is unique to this approach of exact counting.
$endgroup$
– Calvin Lin
Jun 11 '13 at 20:37
$begingroup$
@ShreevatsaR The slight issue with Benford's law is that it's the overall probability density, and doesn't deal with the exact counting that OP needs. For example, you can see how working with $1.1^n$ screws up the initial count, but eventually evens it out. The number 2 is unique to this approach of exact counting.
$endgroup$
– Calvin Lin
Jun 11 '13 at 20:37
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f417486%2fprobability-that-the-first-digit-of-2n-is-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown

$begingroup$
Hint1: How can you express the fact that a particular number starts with the digit $1$ in base $10$? Hint 2: If you're having trouble with Hint 1, assume that the number has $k$ digits. Hint 3: Take logs. Hint 4: Fractional parts.
$endgroup$
– ShreevatsaR
Jun 11 '13 at 14:36
1
$begingroup$
BTW, a far more general statement is true, for powers of any (rational or irrational) number in place of $2$, and any starting digit. That is, for any number $alpha$ that is not a power of $10$, the probability that a randomly chosen power of $alpha$ begins with $1$ is $log2$, and in fact the probability that a randomly chosen power of $alpha$ begins with some $d$ (where $1le dle9$) is $log(d+1)-log d$. That was what my hint above was for, but you don't need all that for $alpha = 2$ and $d = 1$, as shown by Calvin Lin's cool answer below. ("prob. of randomly chosen..." = density)
$endgroup$
– ShreevatsaR
Jun 11 '13 at 19:44