How many numbers (positive integers) smaller than $n$ can be written as a sum of two or more consecutive power of 2 integers? [on hold]In how many ways can a number be expressed as a sum of consecutive numbers?How Many Natural Numbers Can Get Expressed as the Sum of Consecutive Natural Numbers in only One Way?If the difference of cubes of two consecutive integers is a square, then the square can be written as the sum of squares of two different integers.Total possible ways of representing n! as a sum of two or more consecutive positive integers.Determine all ways the integer $2015$ can be written as a sum of consecutive positive integers.Largest number of consecutive positive integers whose sum is exactly $2014$.writing numbers as sum of at least two consecutive odd positive integersSum of 3 Positive consecutive integersNumber of ways in which $1000$ can be written as a sum of two or more consecutive natural numbersWhich positive integers can NOT be written as a sum of consecutive positive integers

Humans have energy, but not water. What happens?

Force user to remove USB token

Confusion with the nameplate of an induction motor

Good allowance savings plan?

Counter-example to the existence of left Bousfield localization of combinatorial model category

What does it mean when multiple 々 marks follow a 、?

What is the dot in “1.2.4."

How is the Swiss post e-voting system supposed to work, and how was it wrong?

Silly Sally's Movie

Why must traveling waves have the same amplitude to form a standing wave?

When is a batch class instantiated when you schedule it?

Is a lawful good "antagonist" effective?

Do I need to leave some extra space available on the disk which my database log files reside, for log backup operations to successfully occur?

Examples of odd-dimensional manifolds that do not admit contact structure

Touchscreen-controlled dentist office snowman collector game

Why don't MCU characters ever seem to have language issues?

Time travel short story where dinosaur doesn't taste like chicken

Replacing Windows 7 security updates with anti-virus?

Running a subshell from the middle of the current command

Are there situations where a child is permitted to refer to their parent by their first name?

How to make readers know that my work has used a hidden constraint?

Who is our nearest neighbor

Latest web browser compatible with Windows 98

When two POV characters meet



How many numbers (positive integers) smaller than $n$ can be written as a sum of two or more consecutive power of 2 integers? [on hold]


In how many ways can a number be expressed as a sum of consecutive numbers?How Many Natural Numbers Can Get Expressed as the Sum of Consecutive Natural Numbers in only One Way?If the difference of cubes of two consecutive integers is a square, then the square can be written as the sum of squares of two different integers.Total possible ways of representing n! as a sum of two or more consecutive positive integers.Determine all ways the integer $2015$ can be written as a sum of consecutive positive integers.Largest number of consecutive positive integers whose sum is exactly $2014$.writing numbers as sum of at least two consecutive odd positive integersSum of 3 Positive consecutive integersNumber of ways in which $1000$ can be written as a sum of two or more consecutive natural numbersWhich positive integers can NOT be written as a sum of consecutive positive integers













1












$begingroup$


How many numbers (positive integers) smaller than $n$ can be written as a sum of two or more consecutive power of 2 integers?



My attempt so far: So basically we're searching how many $x$ and $y$ we have such that: $2^x+2^x+1+ldots+2^x+y leq n$, where $x,y,ninmathbbN$. By calculating the sum we arrive at:
$2^x(2^y+1-1)leq n$. And here I am stuck... Any ideas?










share|cite|improve this question









New contributor




Demaned is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



put on hold as off-topic by Carl Mummert, Vinyl_cape_jawa, Riccardo.Alestra, Cesareo, Parcly Taxel 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Carl Mummert, Vinyl_cape_jawa, Riccardo.Alestra, Cesareo, Parcly Taxel
If this question can be reworded to fit the rules in the help center, please edit the question.















  • $begingroup$
    This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. In particular, what is the source and background of the question?
    $endgroup$
    – Carl Mummert
    Mar 10 at 20:43















1












$begingroup$


How many numbers (positive integers) smaller than $n$ can be written as a sum of two or more consecutive power of 2 integers?



My attempt so far: So basically we're searching how many $x$ and $y$ we have such that: $2^x+2^x+1+ldots+2^x+y leq n$, where $x,y,ninmathbbN$. By calculating the sum we arrive at:
$2^x(2^y+1-1)leq n$. And here I am stuck... Any ideas?










share|cite|improve this question









New contributor




Demaned is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



put on hold as off-topic by Carl Mummert, Vinyl_cape_jawa, Riccardo.Alestra, Cesareo, Parcly Taxel 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Carl Mummert, Vinyl_cape_jawa, Riccardo.Alestra, Cesareo, Parcly Taxel
If this question can be reworded to fit the rules in the help center, please edit the question.















  • $begingroup$
    This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. In particular, what is the source and background of the question?
    $endgroup$
    – Carl Mummert
    Mar 10 at 20:43













1












1








1





$begingroup$


How many numbers (positive integers) smaller than $n$ can be written as a sum of two or more consecutive power of 2 integers?



My attempt so far: So basically we're searching how many $x$ and $y$ we have such that: $2^x+2^x+1+ldots+2^x+y leq n$, where $x,y,ninmathbbN$. By calculating the sum we arrive at:
$2^x(2^y+1-1)leq n$. And here I am stuck... Any ideas?










share|cite|improve this question









New contributor




Demaned is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




How many numbers (positive integers) smaller than $n$ can be written as a sum of two or more consecutive power of 2 integers?



My attempt so far: So basically we're searching how many $x$ and $y$ we have such that: $2^x+2^x+1+ldots+2^x+y leq n$, where $x,y,ninmathbbN$. By calculating the sum we arrive at:
$2^x(2^y+1-1)leq n$. And here I am stuck... Any ideas?







number-theory inequality






share|cite|improve this question









New contributor




Demaned is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question









New contributor




Demaned is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question








edited Mar 10 at 20:33







Demaned













New contributor




Demaned is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Mar 10 at 20:07









DemanedDemaned

63




63




New contributor




Demaned is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Demaned is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Demaned is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as off-topic by Carl Mummert, Vinyl_cape_jawa, Riccardo.Alestra, Cesareo, Parcly Taxel 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Carl Mummert, Vinyl_cape_jawa, Riccardo.Alestra, Cesareo, Parcly Taxel
If this question can be reworded to fit the rules in the help center, please edit the question.







put on hold as off-topic by Carl Mummert, Vinyl_cape_jawa, Riccardo.Alestra, Cesareo, Parcly Taxel 2 days ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Carl Mummert, Vinyl_cape_jawa, Riccardo.Alestra, Cesareo, Parcly Taxel
If this question can be reworded to fit the rules in the help center, please edit the question.











  • $begingroup$
    This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. In particular, what is the source and background of the question?
    $endgroup$
    – Carl Mummert
    Mar 10 at 20:43
















  • $begingroup$
    This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. In particular, what is the source and background of the question?
    $endgroup$
    – Carl Mummert
    Mar 10 at 20:43















$begingroup$
This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. In particular, what is the source and background of the question?
$endgroup$
– Carl Mummert
Mar 10 at 20:43




$begingroup$
This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. In particular, what is the source and background of the question?
$endgroup$
– Carl Mummert
Mar 10 at 20:43










1 Answer
1






active

oldest

votes


















0












$begingroup$

If we only consider the case $n = 2^k$, and represent in binary the numbers matching the criteria, it seems simple enough to list them. E.g. for $n = 2^4 = 16$ we get the following four-bit numbers:



0011b = 2+1 = 3
0110b = 4+2 = 6
0111b = 4+2+1 = 7
1100b = 8+4 = 12
1110b = 8+4+2 = 14
1111b = 8+4+2+1 = 15


That is, there are three numbers with two consecutive ones, two with three ones, and one with four ones. That's $1+2+3 = 6$. The one-bits represent the terms of your sum as shown.



For $n = 32$, we have five bits and $1+2+3+4 = 10$ different numbers. Adding bits (or increasing $k$ by one; or doubling $n$) adds one possible position for each of the run lengths, so the amount of such numbers smaller than $n = 2^k$ is the triangular number $T_k-1$:



$$
T_k-1 = frac(k-1)k2
$$



The case where $n$ is not a power of two seems less simple.






share|cite|improve this answer









$endgroup$



















    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    If we only consider the case $n = 2^k$, and represent in binary the numbers matching the criteria, it seems simple enough to list them. E.g. for $n = 2^4 = 16$ we get the following four-bit numbers:



    0011b = 2+1 = 3
    0110b = 4+2 = 6
    0111b = 4+2+1 = 7
    1100b = 8+4 = 12
    1110b = 8+4+2 = 14
    1111b = 8+4+2+1 = 15


    That is, there are three numbers with two consecutive ones, two with three ones, and one with four ones. That's $1+2+3 = 6$. The one-bits represent the terms of your sum as shown.



    For $n = 32$, we have five bits and $1+2+3+4 = 10$ different numbers. Adding bits (or increasing $k$ by one; or doubling $n$) adds one possible position for each of the run lengths, so the amount of such numbers smaller than $n = 2^k$ is the triangular number $T_k-1$:



    $$
    T_k-1 = frac(k-1)k2
    $$



    The case where $n$ is not a power of two seems less simple.






    share|cite|improve this answer









    $endgroup$

















      0












      $begingroup$

      If we only consider the case $n = 2^k$, and represent in binary the numbers matching the criteria, it seems simple enough to list them. E.g. for $n = 2^4 = 16$ we get the following four-bit numbers:



      0011b = 2+1 = 3
      0110b = 4+2 = 6
      0111b = 4+2+1 = 7
      1100b = 8+4 = 12
      1110b = 8+4+2 = 14
      1111b = 8+4+2+1 = 15


      That is, there are three numbers with two consecutive ones, two with three ones, and one with four ones. That's $1+2+3 = 6$. The one-bits represent the terms of your sum as shown.



      For $n = 32$, we have five bits and $1+2+3+4 = 10$ different numbers. Adding bits (or increasing $k$ by one; or doubling $n$) adds one possible position for each of the run lengths, so the amount of such numbers smaller than $n = 2^k$ is the triangular number $T_k-1$:



      $$
      T_k-1 = frac(k-1)k2
      $$



      The case where $n$ is not a power of two seems less simple.






      share|cite|improve this answer









      $endgroup$















        0












        0








        0





        $begingroup$

        If we only consider the case $n = 2^k$, and represent in binary the numbers matching the criteria, it seems simple enough to list them. E.g. for $n = 2^4 = 16$ we get the following four-bit numbers:



        0011b = 2+1 = 3
        0110b = 4+2 = 6
        0111b = 4+2+1 = 7
        1100b = 8+4 = 12
        1110b = 8+4+2 = 14
        1111b = 8+4+2+1 = 15


        That is, there are three numbers with two consecutive ones, two with three ones, and one with four ones. That's $1+2+3 = 6$. The one-bits represent the terms of your sum as shown.



        For $n = 32$, we have five bits and $1+2+3+4 = 10$ different numbers. Adding bits (or increasing $k$ by one; or doubling $n$) adds one possible position for each of the run lengths, so the amount of such numbers smaller than $n = 2^k$ is the triangular number $T_k-1$:



        $$
        T_k-1 = frac(k-1)k2
        $$



        The case where $n$ is not a power of two seems less simple.






        share|cite|improve this answer









        $endgroup$



        If we only consider the case $n = 2^k$, and represent in binary the numbers matching the criteria, it seems simple enough to list them. E.g. for $n = 2^4 = 16$ we get the following four-bit numbers:



        0011b = 2+1 = 3
        0110b = 4+2 = 6
        0111b = 4+2+1 = 7
        1100b = 8+4 = 12
        1110b = 8+4+2 = 14
        1111b = 8+4+2+1 = 15


        That is, there are three numbers with two consecutive ones, two with three ones, and one with four ones. That's $1+2+3 = 6$. The one-bits represent the terms of your sum as shown.



        For $n = 32$, we have five bits and $1+2+3+4 = 10$ different numbers. Adding bits (or increasing $k$ by one; or doubling $n$) adds one possible position for each of the run lengths, so the amount of such numbers smaller than $n = 2^k$ is the triangular number $T_k-1$:



        $$
        T_k-1 = frac(k-1)k2
        $$



        The case where $n$ is not a power of two seems less simple.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Mar 10 at 21:18









        ilkkachuilkkachu

        542310




        542310













            Popular posts from this blog

            Moe incest case Sentencing See also References Navigation menu"'Australian Josef Fritzl' fathered four children by daughter""Small town recoils in horror at 'Australian Fritzl' incest case""Victorian rape allegations echo Fritzl case - Just In (Australian Broadcasting Corporation)""Incest father jailed for 22 years""'Australian Fritzl' sentenced to 22 years in prison for abusing daughter for three decades""RSJ v The Queen"

            John Burke, 9th Earl of Clanricarde References Navigation menuA General and heraldic dictionary of the peerage and baronetage of the British EmpireLeigh Rayment's Peerage Pages

            Football at the 1986 Brunei Merdeka Games Contents Teams Group stage Knockout stage References Navigation menu"Brunei Merdeka Games 1986".