Digits of a number between 0 and 1.












0












$begingroup$


I'm currently working on a problem that requires me to know, for some $x=.x_1x_2x_3....x_n in [0,1]$, when the $nth$ digit is equal to $0$ or $1$, in base $2.$ For example the interval where $x_1 = 1$ in base $2$ is $[frac{1}{2}, 1)$, I think. And $x_2=1$ between $0$ and $frac{1}{4}$ and also between $frac{3}{4}$ and $1$. But when the $n$ gets larger, I feel that I should use some kind of pattern, but I'm not sure what to do.



I would like to do the same thing for the numbers in $[0,1]$ in base three.



Any help is appreciated.










share|cite|improve this question









$endgroup$








  • 2




    $begingroup$
    The region where the $n$th digit in base $b$ takes on a particular value consists of $b^{n-1}$ disjoint intervals. Each of these has a particular sequence of values of all of the first $n$ digits.
    $endgroup$
    – Ian
    Jan 29 at 20:19








  • 2




    $begingroup$
    You are mistaken with $x_2$: it should be $x_2 = 1$ when $x in (frac14, frac12)$, not $(0, frac14)$.
    $endgroup$
    – Théophile
    Jan 29 at 20:28










  • $begingroup$
    Oh okay, thanks. Is there some kind of quick way that I can find the intervals? So far, it's a little tedious, I'm not sure if there's a better way.
    $endgroup$
    – mXdX
    Jan 29 at 21:05
















0












$begingroup$


I'm currently working on a problem that requires me to know, for some $x=.x_1x_2x_3....x_n in [0,1]$, when the $nth$ digit is equal to $0$ or $1$, in base $2.$ For example the interval where $x_1 = 1$ in base $2$ is $[frac{1}{2}, 1)$, I think. And $x_2=1$ between $0$ and $frac{1}{4}$ and also between $frac{3}{4}$ and $1$. But when the $n$ gets larger, I feel that I should use some kind of pattern, but I'm not sure what to do.



I would like to do the same thing for the numbers in $[0,1]$ in base three.



Any help is appreciated.










share|cite|improve this question









$endgroup$








  • 2




    $begingroup$
    The region where the $n$th digit in base $b$ takes on a particular value consists of $b^{n-1}$ disjoint intervals. Each of these has a particular sequence of values of all of the first $n$ digits.
    $endgroup$
    – Ian
    Jan 29 at 20:19








  • 2




    $begingroup$
    You are mistaken with $x_2$: it should be $x_2 = 1$ when $x in (frac14, frac12)$, not $(0, frac14)$.
    $endgroup$
    – Théophile
    Jan 29 at 20:28










  • $begingroup$
    Oh okay, thanks. Is there some kind of quick way that I can find the intervals? So far, it's a little tedious, I'm not sure if there's a better way.
    $endgroup$
    – mXdX
    Jan 29 at 21:05














0












0








0


1



$begingroup$


I'm currently working on a problem that requires me to know, for some $x=.x_1x_2x_3....x_n in [0,1]$, when the $nth$ digit is equal to $0$ or $1$, in base $2.$ For example the interval where $x_1 = 1$ in base $2$ is $[frac{1}{2}, 1)$, I think. And $x_2=1$ between $0$ and $frac{1}{4}$ and also between $frac{3}{4}$ and $1$. But when the $n$ gets larger, I feel that I should use some kind of pattern, but I'm not sure what to do.



I would like to do the same thing for the numbers in $[0,1]$ in base three.



Any help is appreciated.










share|cite|improve this question









$endgroup$




I'm currently working on a problem that requires me to know, for some $x=.x_1x_2x_3....x_n in [0,1]$, when the $nth$ digit is equal to $0$ or $1$, in base $2.$ For example the interval where $x_1 = 1$ in base $2$ is $[frac{1}{2}, 1)$, I think. And $x_2=1$ between $0$ and $frac{1}{4}$ and also between $frac{3}{4}$ and $1$. But when the $n$ gets larger, I feel that I should use some kind of pattern, but I'm not sure what to do.



I would like to do the same thing for the numbers in $[0,1]$ in base three.



Any help is appreciated.







binary






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 29 at 20:14









mXdXmXdX

898




898








  • 2




    $begingroup$
    The region where the $n$th digit in base $b$ takes on a particular value consists of $b^{n-1}$ disjoint intervals. Each of these has a particular sequence of values of all of the first $n$ digits.
    $endgroup$
    – Ian
    Jan 29 at 20:19








  • 2




    $begingroup$
    You are mistaken with $x_2$: it should be $x_2 = 1$ when $x in (frac14, frac12)$, not $(0, frac14)$.
    $endgroup$
    – Théophile
    Jan 29 at 20:28










  • $begingroup$
    Oh okay, thanks. Is there some kind of quick way that I can find the intervals? So far, it's a little tedious, I'm not sure if there's a better way.
    $endgroup$
    – mXdX
    Jan 29 at 21:05














  • 2




    $begingroup$
    The region where the $n$th digit in base $b$ takes on a particular value consists of $b^{n-1}$ disjoint intervals. Each of these has a particular sequence of values of all of the first $n$ digits.
    $endgroup$
    – Ian
    Jan 29 at 20:19








  • 2




    $begingroup$
    You are mistaken with $x_2$: it should be $x_2 = 1$ when $x in (frac14, frac12)$, not $(0, frac14)$.
    $endgroup$
    – Théophile
    Jan 29 at 20:28










  • $begingroup$
    Oh okay, thanks. Is there some kind of quick way that I can find the intervals? So far, it's a little tedious, I'm not sure if there's a better way.
    $endgroup$
    – mXdX
    Jan 29 at 21:05








2




2




$begingroup$
The region where the $n$th digit in base $b$ takes on a particular value consists of $b^{n-1}$ disjoint intervals. Each of these has a particular sequence of values of all of the first $n$ digits.
$endgroup$
– Ian
Jan 29 at 20:19






$begingroup$
The region where the $n$th digit in base $b$ takes on a particular value consists of $b^{n-1}$ disjoint intervals. Each of these has a particular sequence of values of all of the first $n$ digits.
$endgroup$
– Ian
Jan 29 at 20:19






2




2




$begingroup$
You are mistaken with $x_2$: it should be $x_2 = 1$ when $x in (frac14, frac12)$, not $(0, frac14)$.
$endgroup$
– Théophile
Jan 29 at 20:28




$begingroup$
You are mistaken with $x_2$: it should be $x_2 = 1$ when $x in (frac14, frac12)$, not $(0, frac14)$.
$endgroup$
– Théophile
Jan 29 at 20:28












$begingroup$
Oh okay, thanks. Is there some kind of quick way that I can find the intervals? So far, it's a little tedious, I'm not sure if there's a better way.
$endgroup$
– mXdX
Jan 29 at 21:05




$begingroup$
Oh okay, thanks. Is there some kind of quick way that I can find the intervals? So far, it's a little tedious, I'm not sure if there's a better way.
$endgroup$
– mXdX
Jan 29 at 21:05










3 Answers
3






active

oldest

votes


















2












$begingroup$

Let $x$ be the number.



Is the integer part of $2^n x$ odd or even?



If it's odd, the $n$th bit after the binary point is $1$.



If it's even, the $n$th bit after the binary point is $0$.



If you're not convinced, try multiplying a decimal number by $10^n$ and looking at the last digit of its integer part. Then remember that an even binary number ends in $0$.



Multiplying $x$ by $2^n$ just shifts its binary representation to the left by $n$ places.



Dividing by $2^n$ again, your intervals will be based on odd and even multiples of $2^{-n}$.






share|cite|improve this answer











$endgroup$





















    1












    $begingroup$

    Is $x$ greater than $2^{-1}$? Yes: $x_1 = 1$; subtract $2^{-1}$ from $x$. No: $x_1 = 0$.



    Is $x$ greater than $2^{-2}$? Yes: $x_2 = 1$; subtract $2^{-2}$ from $x$. No: $x_2 = 0$.



    $cdots$



    Is $x$ greater than $2^{-n}$? Yes: $x_n = 1$; subtract $2^{-n}$ from $x$. No: $x_n = 0$.






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      This isn't right...you need to subtract off the contribution from the earlier digits as you go. Or follow one of the other answers in looking at $2^n x$.
      $endgroup$
      – Ian
      Jan 30 at 0:57












    • $begingroup$
      @Ian I intended this in an algorithmic sense where $x$ is updated at every step, so that each line should be read as "Is [the current value of] $x$ ...".
      $endgroup$
      – Théophile
      Jan 30 at 16:46





















    1












    $begingroup$

    Sometimes a picture is worth 1000 words.



    Regions represented by a $1$ in successive digit places



    base 2



    enter image description here



    base 3



    enter image description here






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      Would there be a systematic way for me to find these intervals on my own? I've been simply converting numbers to base 2/base 3 and checking if I need to go up or down to get the digit to be of the value I want. So, I've just been guessing and checking. Is there a more efficient method?
      $endgroup$
      – mXdX
      Jan 29 at 21:09










    • $begingroup$
      See if you can infer the principle from my figures....
      $endgroup$
      – David G. Stork
      Jan 29 at 21:50










    • $begingroup$
      I was looking at the figures but I thought that for base 3, the region where the $nth$ digit takes a particular value is given by $3^{n-1}$ intervals. Shouldn't there be three intervals for $x_2$ on the second picture? I am missing something.
      $endgroup$
      – mXdX
      Jan 30 at 3:05






    • 1




      $begingroup$
      You are missing something. There are three regions for the first digit, corresponding the the value being $0$, $1$ or $2$. Only one is shown in my figure (for $1$); the region for $0$ is to the left, and for $2$ is to the right. For the second digit, there are .... (can you continue?)....
      $endgroup$
      – David G. Stork
      Jan 30 at 3:11






    • 1




      $begingroup$
      You were right. Thanks for catching the typo. Now (I think!) fixed.
      $endgroup$
      – David G. Stork
      Jan 30 at 4:42












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


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3092665%2fdigits-of-a-number-between-0-and-1%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2












    $begingroup$

    Let $x$ be the number.



    Is the integer part of $2^n x$ odd or even?



    If it's odd, the $n$th bit after the binary point is $1$.



    If it's even, the $n$th bit after the binary point is $0$.



    If you're not convinced, try multiplying a decimal number by $10^n$ and looking at the last digit of its integer part. Then remember that an even binary number ends in $0$.



    Multiplying $x$ by $2^n$ just shifts its binary representation to the left by $n$ places.



    Dividing by $2^n$ again, your intervals will be based on odd and even multiples of $2^{-n}$.






    share|cite|improve this answer











    $endgroup$


















      2












      $begingroup$

      Let $x$ be the number.



      Is the integer part of $2^n x$ odd or even?



      If it's odd, the $n$th bit after the binary point is $1$.



      If it's even, the $n$th bit after the binary point is $0$.



      If you're not convinced, try multiplying a decimal number by $10^n$ and looking at the last digit of its integer part. Then remember that an even binary number ends in $0$.



      Multiplying $x$ by $2^n$ just shifts its binary representation to the left by $n$ places.



      Dividing by $2^n$ again, your intervals will be based on odd and even multiples of $2^{-n}$.






      share|cite|improve this answer











      $endgroup$
















        2












        2








        2





        $begingroup$

        Let $x$ be the number.



        Is the integer part of $2^n x$ odd or even?



        If it's odd, the $n$th bit after the binary point is $1$.



        If it's even, the $n$th bit after the binary point is $0$.



        If you're not convinced, try multiplying a decimal number by $10^n$ and looking at the last digit of its integer part. Then remember that an even binary number ends in $0$.



        Multiplying $x$ by $2^n$ just shifts its binary representation to the left by $n$ places.



        Dividing by $2^n$ again, your intervals will be based on odd and even multiples of $2^{-n}$.






        share|cite|improve this answer











        $endgroup$



        Let $x$ be the number.



        Is the integer part of $2^n x$ odd or even?



        If it's odd, the $n$th bit after the binary point is $1$.



        If it's even, the $n$th bit after the binary point is $0$.



        If you're not convinced, try multiplying a decimal number by $10^n$ and looking at the last digit of its integer part. Then remember that an even binary number ends in $0$.



        Multiplying $x$ by $2^n$ just shifts its binary representation to the left by $n$ places.



        Dividing by $2^n$ again, your intervals will be based on odd and even multiples of $2^{-n}$.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Jan 29 at 23:18

























        answered Jan 29 at 23:07









        timtfjtimtfj

        2,503420




        2,503420























            1












            $begingroup$

            Is $x$ greater than $2^{-1}$? Yes: $x_1 = 1$; subtract $2^{-1}$ from $x$. No: $x_1 = 0$.



            Is $x$ greater than $2^{-2}$? Yes: $x_2 = 1$; subtract $2^{-2}$ from $x$. No: $x_2 = 0$.



            $cdots$



            Is $x$ greater than $2^{-n}$? Yes: $x_n = 1$; subtract $2^{-n}$ from $x$. No: $x_n = 0$.






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              This isn't right...you need to subtract off the contribution from the earlier digits as you go. Or follow one of the other answers in looking at $2^n x$.
              $endgroup$
              – Ian
              Jan 30 at 0:57












            • $begingroup$
              @Ian I intended this in an algorithmic sense where $x$ is updated at every step, so that each line should be read as "Is [the current value of] $x$ ...".
              $endgroup$
              – Théophile
              Jan 30 at 16:46


















            1












            $begingroup$

            Is $x$ greater than $2^{-1}$? Yes: $x_1 = 1$; subtract $2^{-1}$ from $x$. No: $x_1 = 0$.



            Is $x$ greater than $2^{-2}$? Yes: $x_2 = 1$; subtract $2^{-2}$ from $x$. No: $x_2 = 0$.



            $cdots$



            Is $x$ greater than $2^{-n}$? Yes: $x_n = 1$; subtract $2^{-n}$ from $x$. No: $x_n = 0$.






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              This isn't right...you need to subtract off the contribution from the earlier digits as you go. Or follow one of the other answers in looking at $2^n x$.
              $endgroup$
              – Ian
              Jan 30 at 0:57












            • $begingroup$
              @Ian I intended this in an algorithmic sense where $x$ is updated at every step, so that each line should be read as "Is [the current value of] $x$ ...".
              $endgroup$
              – Théophile
              Jan 30 at 16:46
















            1












            1








            1





            $begingroup$

            Is $x$ greater than $2^{-1}$? Yes: $x_1 = 1$; subtract $2^{-1}$ from $x$. No: $x_1 = 0$.



            Is $x$ greater than $2^{-2}$? Yes: $x_2 = 1$; subtract $2^{-2}$ from $x$. No: $x_2 = 0$.



            $cdots$



            Is $x$ greater than $2^{-n}$? Yes: $x_n = 1$; subtract $2^{-n}$ from $x$. No: $x_n = 0$.






            share|cite|improve this answer









            $endgroup$



            Is $x$ greater than $2^{-1}$? Yes: $x_1 = 1$; subtract $2^{-1}$ from $x$. No: $x_1 = 0$.



            Is $x$ greater than $2^{-2}$? Yes: $x_2 = 1$; subtract $2^{-2}$ from $x$. No: $x_2 = 0$.



            $cdots$



            Is $x$ greater than $2^{-n}$? Yes: $x_n = 1$; subtract $2^{-n}$ from $x$. No: $x_n = 0$.







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Jan 29 at 20:20









            ThéophileThéophile

            20.3k13047




            20.3k13047












            • $begingroup$
              This isn't right...you need to subtract off the contribution from the earlier digits as you go. Or follow one of the other answers in looking at $2^n x$.
              $endgroup$
              – Ian
              Jan 30 at 0:57












            • $begingroup$
              @Ian I intended this in an algorithmic sense where $x$ is updated at every step, so that each line should be read as "Is [the current value of] $x$ ...".
              $endgroup$
              – Théophile
              Jan 30 at 16:46




















            • $begingroup$
              This isn't right...you need to subtract off the contribution from the earlier digits as you go. Or follow one of the other answers in looking at $2^n x$.
              $endgroup$
              – Ian
              Jan 30 at 0:57












            • $begingroup$
              @Ian I intended this in an algorithmic sense where $x$ is updated at every step, so that each line should be read as "Is [the current value of] $x$ ...".
              $endgroup$
              – Théophile
              Jan 30 at 16:46


















            $begingroup$
            This isn't right...you need to subtract off the contribution from the earlier digits as you go. Or follow one of the other answers in looking at $2^n x$.
            $endgroup$
            – Ian
            Jan 30 at 0:57






            $begingroup$
            This isn't right...you need to subtract off the contribution from the earlier digits as you go. Or follow one of the other answers in looking at $2^n x$.
            $endgroup$
            – Ian
            Jan 30 at 0:57














            $begingroup$
            @Ian I intended this in an algorithmic sense where $x$ is updated at every step, so that each line should be read as "Is [the current value of] $x$ ...".
            $endgroup$
            – Théophile
            Jan 30 at 16:46






            $begingroup$
            @Ian I intended this in an algorithmic sense where $x$ is updated at every step, so that each line should be read as "Is [the current value of] $x$ ...".
            $endgroup$
            – Théophile
            Jan 30 at 16:46













            1












            $begingroup$

            Sometimes a picture is worth 1000 words.



            Regions represented by a $1$ in successive digit places



            base 2



            enter image description here



            base 3



            enter image description here






            share|cite|improve this answer











            $endgroup$













            • $begingroup$
              Would there be a systematic way for me to find these intervals on my own? I've been simply converting numbers to base 2/base 3 and checking if I need to go up or down to get the digit to be of the value I want. So, I've just been guessing and checking. Is there a more efficient method?
              $endgroup$
              – mXdX
              Jan 29 at 21:09










            • $begingroup$
              See if you can infer the principle from my figures....
              $endgroup$
              – David G. Stork
              Jan 29 at 21:50










            • $begingroup$
              I was looking at the figures but I thought that for base 3, the region where the $nth$ digit takes a particular value is given by $3^{n-1}$ intervals. Shouldn't there be three intervals for $x_2$ on the second picture? I am missing something.
              $endgroup$
              – mXdX
              Jan 30 at 3:05






            • 1




              $begingroup$
              You are missing something. There are three regions for the first digit, corresponding the the value being $0$, $1$ or $2$. Only one is shown in my figure (for $1$); the region for $0$ is to the left, and for $2$ is to the right. For the second digit, there are .... (can you continue?)....
              $endgroup$
              – David G. Stork
              Jan 30 at 3:11






            • 1




              $begingroup$
              You were right. Thanks for catching the typo. Now (I think!) fixed.
              $endgroup$
              – David G. Stork
              Jan 30 at 4:42
















            1












            $begingroup$

            Sometimes a picture is worth 1000 words.



            Regions represented by a $1$ in successive digit places



            base 2



            enter image description here



            base 3



            enter image description here






            share|cite|improve this answer











            $endgroup$













            • $begingroup$
              Would there be a systematic way for me to find these intervals on my own? I've been simply converting numbers to base 2/base 3 and checking if I need to go up or down to get the digit to be of the value I want. So, I've just been guessing and checking. Is there a more efficient method?
              $endgroup$
              – mXdX
              Jan 29 at 21:09










            • $begingroup$
              See if you can infer the principle from my figures....
              $endgroup$
              – David G. Stork
              Jan 29 at 21:50










            • $begingroup$
              I was looking at the figures but I thought that for base 3, the region where the $nth$ digit takes a particular value is given by $3^{n-1}$ intervals. Shouldn't there be three intervals for $x_2$ on the second picture? I am missing something.
              $endgroup$
              – mXdX
              Jan 30 at 3:05






            • 1




              $begingroup$
              You are missing something. There are three regions for the first digit, corresponding the the value being $0$, $1$ or $2$. Only one is shown in my figure (for $1$); the region for $0$ is to the left, and for $2$ is to the right. For the second digit, there are .... (can you continue?)....
              $endgroup$
              – David G. Stork
              Jan 30 at 3:11






            • 1




              $begingroup$
              You were right. Thanks for catching the typo. Now (I think!) fixed.
              $endgroup$
              – David G. Stork
              Jan 30 at 4:42














            1












            1








            1





            $begingroup$

            Sometimes a picture is worth 1000 words.



            Regions represented by a $1$ in successive digit places



            base 2



            enter image description here



            base 3



            enter image description here






            share|cite|improve this answer











            $endgroup$



            Sometimes a picture is worth 1000 words.



            Regions represented by a $1$ in successive digit places



            base 2



            enter image description here



            base 3



            enter image description here







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Jan 30 at 4:42

























            answered Jan 29 at 20:31









            David G. StorkDavid G. Stork

            11.6k41533




            11.6k41533












            • $begingroup$
              Would there be a systematic way for me to find these intervals on my own? I've been simply converting numbers to base 2/base 3 and checking if I need to go up or down to get the digit to be of the value I want. So, I've just been guessing and checking. Is there a more efficient method?
              $endgroup$
              – mXdX
              Jan 29 at 21:09










            • $begingroup$
              See if you can infer the principle from my figures....
              $endgroup$
              – David G. Stork
              Jan 29 at 21:50










            • $begingroup$
              I was looking at the figures but I thought that for base 3, the region where the $nth$ digit takes a particular value is given by $3^{n-1}$ intervals. Shouldn't there be three intervals for $x_2$ on the second picture? I am missing something.
              $endgroup$
              – mXdX
              Jan 30 at 3:05






            • 1




              $begingroup$
              You are missing something. There are three regions for the first digit, corresponding the the value being $0$, $1$ or $2$. Only one is shown in my figure (for $1$); the region for $0$ is to the left, and for $2$ is to the right. For the second digit, there are .... (can you continue?)....
              $endgroup$
              – David G. Stork
              Jan 30 at 3:11






            • 1




              $begingroup$
              You were right. Thanks for catching the typo. Now (I think!) fixed.
              $endgroup$
              – David G. Stork
              Jan 30 at 4:42


















            • $begingroup$
              Would there be a systematic way for me to find these intervals on my own? I've been simply converting numbers to base 2/base 3 and checking if I need to go up or down to get the digit to be of the value I want. So, I've just been guessing and checking. Is there a more efficient method?
              $endgroup$
              – mXdX
              Jan 29 at 21:09










            • $begingroup$
              See if you can infer the principle from my figures....
              $endgroup$
              – David G. Stork
              Jan 29 at 21:50










            • $begingroup$
              I was looking at the figures but I thought that for base 3, the region where the $nth$ digit takes a particular value is given by $3^{n-1}$ intervals. Shouldn't there be three intervals for $x_2$ on the second picture? I am missing something.
              $endgroup$
              – mXdX
              Jan 30 at 3:05






            • 1




              $begingroup$
              You are missing something. There are three regions for the first digit, corresponding the the value being $0$, $1$ or $2$. Only one is shown in my figure (for $1$); the region for $0$ is to the left, and for $2$ is to the right. For the second digit, there are .... (can you continue?)....
              $endgroup$
              – David G. Stork
              Jan 30 at 3:11






            • 1




              $begingroup$
              You were right. Thanks for catching the typo. Now (I think!) fixed.
              $endgroup$
              – David G. Stork
              Jan 30 at 4:42
















            $begingroup$
            Would there be a systematic way for me to find these intervals on my own? I've been simply converting numbers to base 2/base 3 and checking if I need to go up or down to get the digit to be of the value I want. So, I've just been guessing and checking. Is there a more efficient method?
            $endgroup$
            – mXdX
            Jan 29 at 21:09




            $begingroup$
            Would there be a systematic way for me to find these intervals on my own? I've been simply converting numbers to base 2/base 3 and checking if I need to go up or down to get the digit to be of the value I want. So, I've just been guessing and checking. Is there a more efficient method?
            $endgroup$
            – mXdX
            Jan 29 at 21:09












            $begingroup$
            See if you can infer the principle from my figures....
            $endgroup$
            – David G. Stork
            Jan 29 at 21:50




            $begingroup$
            See if you can infer the principle from my figures....
            $endgroup$
            – David G. Stork
            Jan 29 at 21:50












            $begingroup$
            I was looking at the figures but I thought that for base 3, the region where the $nth$ digit takes a particular value is given by $3^{n-1}$ intervals. Shouldn't there be three intervals for $x_2$ on the second picture? I am missing something.
            $endgroup$
            – mXdX
            Jan 30 at 3:05




            $begingroup$
            I was looking at the figures but I thought that for base 3, the region where the $nth$ digit takes a particular value is given by $3^{n-1}$ intervals. Shouldn't there be three intervals for $x_2$ on the second picture? I am missing something.
            $endgroup$
            – mXdX
            Jan 30 at 3:05




            1




            1




            $begingroup$
            You are missing something. There are three regions for the first digit, corresponding the the value being $0$, $1$ or $2$. Only one is shown in my figure (for $1$); the region for $0$ is to the left, and for $2$ is to the right. For the second digit, there are .... (can you continue?)....
            $endgroup$
            – David G. Stork
            Jan 30 at 3:11




            $begingroup$
            You are missing something. There are three regions for the first digit, corresponding the the value being $0$, $1$ or $2$. Only one is shown in my figure (for $1$); the region for $0$ is to the left, and for $2$ is to the right. For the second digit, there are .... (can you continue?)....
            $endgroup$
            – David G. Stork
            Jan 30 at 3:11




            1




            1




            $begingroup$
            You were right. Thanks for catching the typo. Now (I think!) fixed.
            $endgroup$
            – David G. Stork
            Jan 30 at 4:42




            $begingroup$
            You were right. Thanks for catching the typo. Now (I think!) fixed.
            $endgroup$
            – David G. Stork
            Jan 30 at 4:42


















            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3092665%2fdigits-of-a-number-between-0-and-1%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

            MongoDB - Not Authorized To Execute Command

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

            How to fix TextFormField cause rebuild widget in Flutter