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

            How should I support this large drywall patch? Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I cover large gaps in drywall?How do I keep drywall around a patch from crumbling?Can I glue a second layer of drywall?How to patch long strip on drywall?Large drywall patch: how to avoid bulging seams?Drywall Mesh Patch vs. Bulge? To remove or not to remove?How to fix this drywall job?Prep drywall before backsplashWhat's the best way to fix this horrible drywall patch job?Drywall patching using 3M Patch Plus Primer

            random experiment with two different functions on unit interval Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Random variable and probability space notionsRandom Walk with EdgesFinding functions where the increase over a random interval is Poisson distributedNumber of days until dayCan an observed event in fact be of zero probability?Unit random processmodels of coins and uniform distributionHow to get the number of successes given $n$ trials , probability $P$ and a random variable $X$Absorbing Markov chain in a computer. Is “almost every” turned into always convergence in computer executions?Stopped random walk is not uniformly integrable

            Lowndes Grove History Architecture References Navigation menu32°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661132°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661178002500"National Register Information System"Historic houses of South Carolina"Lowndes Grove""+32° 48' 6.00", −79° 57' 58.00""Lowndes Grove, Charleston County (260 St. Margaret St., Charleston)""Lowndes Grove"The Charleston ExpositionIt Happened in South Carolina"Lowndes Grove (House), Saint Margaret Street & Sixth Avenue, Charleston, Charleston County, SC(Photographs)"Plantations of the Carolina Low Countrye