If $2^n=(… underbrace{aa…aaa}_{xtext{ times}})_{10}$ what is maximum of $x$?











up vote
3
down vote

favorite
1












If $2^n=(... underbrace{aa...aaa}_{xtext{ times}})_{10}$ for positive integer $n$ then we have



$$2^n=(... underbrace{aa...aaa}_{xtext{ times}})_{10}=(bunderbrace{aa...aaa}_{xtext{ times}})_{10}=10^x b+a(10^{x-1}+...+1)$$
Where $a$ is a digit between $0$ and $9$ and $b$ is a natural number.



Simplifying more gives
$$9 times2^n=9b times 10^x + a (10^x-1)$$



Now if $n>3$ and $x>3$ then taking mod 2 gives $v_2(a)>3$ which is impossible. So one $x$ or $n$ is not greater than $3$. But the book says answer is $x=125$. Am I interpret this wrong?










share|cite|improve this question


















  • 2




    Yeah, $x=125$ definitely seems wrong.
    – Thomas Andrews
    Nov 15 at 22:47






  • 1




    I see that your solution is right. For a different approach, one can prove that $2^{n+500} equiv 2^n pmod{10^4}$ for all $n geq 4$ (by using $varphi(5^4)=500$, for instance), and up to $n leq 503$, $x$ only takes the values ${1, 2, 3}$, with $2^{39} = 549755813888$ the smallest case with $x=3$.
    – Sangchul Lee
    Nov 15 at 22:57

















up vote
3
down vote

favorite
1












If $2^n=(... underbrace{aa...aaa}_{xtext{ times}})_{10}$ for positive integer $n$ then we have



$$2^n=(... underbrace{aa...aaa}_{xtext{ times}})_{10}=(bunderbrace{aa...aaa}_{xtext{ times}})_{10}=10^x b+a(10^{x-1}+...+1)$$
Where $a$ is a digit between $0$ and $9$ and $b$ is a natural number.



Simplifying more gives
$$9 times2^n=9b times 10^x + a (10^x-1)$$



Now if $n>3$ and $x>3$ then taking mod 2 gives $v_2(a)>3$ which is impossible. So one $x$ or $n$ is not greater than $3$. But the book says answer is $x=125$. Am I interpret this wrong?










share|cite|improve this question


















  • 2




    Yeah, $x=125$ definitely seems wrong.
    – Thomas Andrews
    Nov 15 at 22:47






  • 1




    I see that your solution is right. For a different approach, one can prove that $2^{n+500} equiv 2^n pmod{10^4}$ for all $n geq 4$ (by using $varphi(5^4)=500$, for instance), and up to $n leq 503$, $x$ only takes the values ${1, 2, 3}$, with $2^{39} = 549755813888$ the smallest case with $x=3$.
    – Sangchul Lee
    Nov 15 at 22:57















up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





If $2^n=(... underbrace{aa...aaa}_{xtext{ times}})_{10}$ for positive integer $n$ then we have



$$2^n=(... underbrace{aa...aaa}_{xtext{ times}})_{10}=(bunderbrace{aa...aaa}_{xtext{ times}})_{10}=10^x b+a(10^{x-1}+...+1)$$
Where $a$ is a digit between $0$ and $9$ and $b$ is a natural number.



Simplifying more gives
$$9 times2^n=9b times 10^x + a (10^x-1)$$



Now if $n>3$ and $x>3$ then taking mod 2 gives $v_2(a)>3$ which is impossible. So one $x$ or $n$ is not greater than $3$. But the book says answer is $x=125$. Am I interpret this wrong?










share|cite|improve this question













If $2^n=(... underbrace{aa...aaa}_{xtext{ times}})_{10}$ for positive integer $n$ then we have



$$2^n=(... underbrace{aa...aaa}_{xtext{ times}})_{10}=(bunderbrace{aa...aaa}_{xtext{ times}})_{10}=10^x b+a(10^{x-1}+...+1)$$
Where $a$ is a digit between $0$ and $9$ and $b$ is a natural number.



Simplifying more gives
$$9 times2^n=9b times 10^x + a (10^x-1)$$



Now if $n>3$ and $x>3$ then taking mod 2 gives $v_2(a)>3$ which is impossible. So one $x$ or $n$ is not greater than $3$. But the book says answer is $x=125$. Am I interpret this wrong?







elementary-number-theory






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 15 at 22:31









Ghartal

2,86211335




2,86211335








  • 2




    Yeah, $x=125$ definitely seems wrong.
    – Thomas Andrews
    Nov 15 at 22:47






  • 1




    I see that your solution is right. For a different approach, one can prove that $2^{n+500} equiv 2^n pmod{10^4}$ for all $n geq 4$ (by using $varphi(5^4)=500$, for instance), and up to $n leq 503$, $x$ only takes the values ${1, 2, 3}$, with $2^{39} = 549755813888$ the smallest case with $x=3$.
    – Sangchul Lee
    Nov 15 at 22:57
















  • 2




    Yeah, $x=125$ definitely seems wrong.
    – Thomas Andrews
    Nov 15 at 22:47






  • 1




    I see that your solution is right. For a different approach, one can prove that $2^{n+500} equiv 2^n pmod{10^4}$ for all $n geq 4$ (by using $varphi(5^4)=500$, for instance), and up to $n leq 503$, $x$ only takes the values ${1, 2, 3}$, with $2^{39} = 549755813888$ the smallest case with $x=3$.
    – Sangchul Lee
    Nov 15 at 22:57










2




2




Yeah, $x=125$ definitely seems wrong.
– Thomas Andrews
Nov 15 at 22:47




Yeah, $x=125$ definitely seems wrong.
– Thomas Andrews
Nov 15 at 22:47




1




1




I see that your solution is right. For a different approach, one can prove that $2^{n+500} equiv 2^n pmod{10^4}$ for all $n geq 4$ (by using $varphi(5^4)=500$, for instance), and up to $n leq 503$, $x$ only takes the values ${1, 2, 3}$, with $2^{39} = 549755813888$ the smallest case with $x=3$.
– Sangchul Lee
Nov 15 at 22:57






I see that your solution is right. For a different approach, one can prove that $2^{n+500} equiv 2^n pmod{10^4}$ for all $n geq 4$ (by using $varphi(5^4)=500$, for instance), and up to $n leq 503$, $x$ only takes the values ${1, 2, 3}$, with $2^{39} = 549755813888$ the smallest case with $x=3$.
– Sangchul Lee
Nov 15 at 22:57












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










If $nge 4$, then $2^n$ must be a multiple of $16$, therefore so are its last four digits. There are no factors of $5$ so the last four digits cannot be $0000$. Now, which other possibilities for four identical last digits will give a multiple of $16$? Try them out and see.



The comments identify $2^{39}=...888$. If you work out the part above you are left with what must be the answer.






share|cite|improve this answer























    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',
    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3000427%2fif-2n-underbraceaa-aaa-x-text-times-10-what-is-maximum-of-x%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








    up vote
    1
    down vote



    accepted










    If $nge 4$, then $2^n$ must be a multiple of $16$, therefore so are its last four digits. There are no factors of $5$ so the last four digits cannot be $0000$. Now, which other possibilities for four identical last digits will give a multiple of $16$? Try them out and see.



    The comments identify $2^{39}=...888$. If you work out the part above you are left with what must be the answer.






    share|cite|improve this answer



























      up vote
      1
      down vote



      accepted










      If $nge 4$, then $2^n$ must be a multiple of $16$, therefore so are its last four digits. There are no factors of $5$ so the last four digits cannot be $0000$. Now, which other possibilities for four identical last digits will give a multiple of $16$? Try them out and see.



      The comments identify $2^{39}=...888$. If you work out the part above you are left with what must be the answer.






      share|cite|improve this answer

























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        If $nge 4$, then $2^n$ must be a multiple of $16$, therefore so are its last four digits. There are no factors of $5$ so the last four digits cannot be $0000$. Now, which other possibilities for four identical last digits will give a multiple of $16$? Try them out and see.



        The comments identify $2^{39}=...888$. If you work out the part above you are left with what must be the answer.






        share|cite|improve this answer














        If $nge 4$, then $2^n$ must be a multiple of $16$, therefore so are its last four digits. There are no factors of $5$ so the last four digits cannot be $0000$. Now, which other possibilities for four identical last digits will give a multiple of $16$? Try them out and see.



        The comments identify $2^{39}=...888$. If you work out the part above you are left with what must be the answer.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Nov 16 at 1:30

























        answered Nov 16 at 1:21









        Oscar Lanzi

        11.8k11936




        11.8k11936






























            draft saved

            draft discarded




















































            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3000427%2fif-2n-underbraceaa-aaa-x-text-times-10-what-is-maximum-of-x%23new-answer', 'question_page');
            }
            );

            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







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?