How to find the consecutive odd numbers that sum to a given odd numberIterated $sigma^k(n)$, excluding the possibility that primes $p|sigma^t(n)$, $t< k$ divides an odd perfect number $n$How many numbers less than 100 have the sum of factors as odd?numbers x such that the sum of the divisors is a perfect squareOn the undecidability of the existence of odd perfect numbersInfinite sum of odd-length binary numbersIs my prove enough to say that it is impossible to write even number as sum of odd number of odd numbers.Express a number as sum of consecutive numbers (not number of ways it can be expressed)Odd abundant numbers and the condition $sqrtn^2+12nsigma(n)inmathbbZ_geq 1$Sum of certain consecutive numbers is $1000$.Does there exist a composite, deficient, odd number that is divisible by the sum of its proper factors?

How do I run a game when my PCs have different approaches to combat?

Strange Cron Job takes up 100% of CPU Ubuntu 18 LTS Server

What do teaching faculty do during semester breaks?

USA: Can a witness take the 5th to avoid perjury?

TSA asking to see cell phone

Character is called by their first initial. How do I write it?

Basic Questions on Wiener Filtering

How acidic does a mixture have to be for milk to curdle?

Area of parallelogram = Area of square. Shear transform

How do I stop my characters falling in love?

Is it correct to translate English noun adjuncts into adjectives?

Arduino DUE and 5V logic sensor?

Why/when is AC-DC-AC conversion superior to direct AC-Ac conversion?

Wallet management now that accounts are deprecated?

Spoken encryption

How do campaign rallies gain candidates votes?

Binomial analogue of Riemann sum for definite integral

Iterate over non-const variables in C++

Print sums of all subsets

How to judge a Ph.D. applicant that arrives "out of thin air"

401(k) investment after being fired. Do I own it?

Is it legal for private citizens to "impound" e-scooters?

Is there a reason why I should not use the HaveIBeenPwned API to warn users about exposed passwords?

Convert a string like 4h53m12s to a total number of seconds in JavaScript



How to find the consecutive odd numbers that sum to a given odd number


Iterated $sigma^k(n)$, excluding the possibility that primes $p|sigma^t(n)$, $t< k$ divides an odd perfect number $n$How many numbers less than 100 have the sum of factors as odd?numbers x such that the sum of the divisors is a perfect squareOn the undecidability of the existence of odd perfect numbersInfinite sum of odd-length binary numbersIs my prove enough to say that it is impossible to write even number as sum of odd number of odd numbers.Express a number as sum of consecutive numbers (not number of ways it can be expressed)Odd abundant numbers and the condition $sqrtn^2+12nsigma(n)inmathbbZ_geq 1$Sum of certain consecutive numbers is $1000$.Does there exist a composite, deficient, odd number that is divisible by the sum of its proper factors?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4












$begingroup$


Given a non perfect square odd number, say $1649$ What is the most efficient way to find the consecutive odd positive integers that sum to that number.



No other information is provided, just the odd number to solve.



In reality the odd numbers I want to find are substantially larger than 1649 which would be trivial to find the consecutive odds that sum to it. So I am looking for an efficient generalised method to turn into an algorithm to resolve this problem for any given odd number.



EDIT:
Perhaps I should have added. The numbers I am working with are too large to factor in an efficient manner. Therefore the difference of two squares is not a workable option.



I am looking for alternate approaches to solving the problem.










share|cite|improve this question











$endgroup$







  • 3




    $begingroup$
    Hint: try to write it as a difference of two squares. It's easy to write a square as a sum of consecutive odd numbers.
    $endgroup$
    – lulu
    Jul 17 at 1:05







  • 1




    $begingroup$
    $1times1649=17times97$
    $endgroup$
    – J. W. Tanner
    Jul 17 at 1:08







  • 1




    $begingroup$
    Remark: Since $a^2-b^2$ is easy to factor, writing your (large) number as a difference of two squares will require you to factor it. Not completely...you just need two factors of the same parity. Of course, for large odd numbers it can be difficult to produce any factor, thereby making your problem difficult.
    $endgroup$
    – lulu
    Jul 17 at 1:15






  • 1




    $begingroup$
    @RobertShore, and J.W. Tanner Ha! Forgot you could use $1$ as a factor. Thanks for reminding me.
    $endgroup$
    – lulu
    Jul 17 at 1:33







  • 1




    $begingroup$
    You must be summing at least three consecutive odd positive integers, there is no guarantee that this is possible. There are no consecutive odd positive integers that sum to 7 or 11
    $endgroup$
    – WW1
    Jul 17 at 2:39

















4












$begingroup$


Given a non perfect square odd number, say $1649$ What is the most efficient way to find the consecutive odd positive integers that sum to that number.



No other information is provided, just the odd number to solve.



In reality the odd numbers I want to find are substantially larger than 1649 which would be trivial to find the consecutive odds that sum to it. So I am looking for an efficient generalised method to turn into an algorithm to resolve this problem for any given odd number.



EDIT:
Perhaps I should have added. The numbers I am working with are too large to factor in an efficient manner. Therefore the difference of two squares is not a workable option.



I am looking for alternate approaches to solving the problem.










share|cite|improve this question











$endgroup$







  • 3




    $begingroup$
    Hint: try to write it as a difference of two squares. It's easy to write a square as a sum of consecutive odd numbers.
    $endgroup$
    – lulu
    Jul 17 at 1:05







  • 1




    $begingroup$
    $1times1649=17times97$
    $endgroup$
    – J. W. Tanner
    Jul 17 at 1:08







  • 1




    $begingroup$
    Remark: Since $a^2-b^2$ is easy to factor, writing your (large) number as a difference of two squares will require you to factor it. Not completely...you just need two factors of the same parity. Of course, for large odd numbers it can be difficult to produce any factor, thereby making your problem difficult.
    $endgroup$
    – lulu
    Jul 17 at 1:15






  • 1




    $begingroup$
    @RobertShore, and J.W. Tanner Ha! Forgot you could use $1$ as a factor. Thanks for reminding me.
    $endgroup$
    – lulu
    Jul 17 at 1:33







  • 1




    $begingroup$
    You must be summing at least three consecutive odd positive integers, there is no guarantee that this is possible. There are no consecutive odd positive integers that sum to 7 or 11
    $endgroup$
    – WW1
    Jul 17 at 2:39













4












4








4


1



$begingroup$


Given a non perfect square odd number, say $1649$ What is the most efficient way to find the consecutive odd positive integers that sum to that number.



No other information is provided, just the odd number to solve.



In reality the odd numbers I want to find are substantially larger than 1649 which would be trivial to find the consecutive odds that sum to it. So I am looking for an efficient generalised method to turn into an algorithm to resolve this problem for any given odd number.



EDIT:
Perhaps I should have added. The numbers I am working with are too large to factor in an efficient manner. Therefore the difference of two squares is not a workable option.



I am looking for alternate approaches to solving the problem.










share|cite|improve this question











$endgroup$




Given a non perfect square odd number, say $1649$ What is the most efficient way to find the consecutive odd positive integers that sum to that number.



No other information is provided, just the odd number to solve.



In reality the odd numbers I want to find are substantially larger than 1649 which would be trivial to find the consecutive odds that sum to it. So I am looking for an efficient generalised method to turn into an algorithm to resolve this problem for any given odd number.



EDIT:
Perhaps I should have added. The numbers I am working with are too large to factor in an efficient manner. Therefore the difference of two squares is not a workable option.



I am looking for alternate approaches to solving the problem.







elementary-number-theory summation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jul 18 at 3:42







DeveloperChris

















asked Jul 17 at 1:02









DeveloperChrisDeveloperChris

2009 bronze badges




2009 bronze badges







  • 3




    $begingroup$
    Hint: try to write it as a difference of two squares. It's easy to write a square as a sum of consecutive odd numbers.
    $endgroup$
    – lulu
    Jul 17 at 1:05







  • 1




    $begingroup$
    $1times1649=17times97$
    $endgroup$
    – J. W. Tanner
    Jul 17 at 1:08







  • 1




    $begingroup$
    Remark: Since $a^2-b^2$ is easy to factor, writing your (large) number as a difference of two squares will require you to factor it. Not completely...you just need two factors of the same parity. Of course, for large odd numbers it can be difficult to produce any factor, thereby making your problem difficult.
    $endgroup$
    – lulu
    Jul 17 at 1:15






  • 1




    $begingroup$
    @RobertShore, and J.W. Tanner Ha! Forgot you could use $1$ as a factor. Thanks for reminding me.
    $endgroup$
    – lulu
    Jul 17 at 1:33







  • 1




    $begingroup$
    You must be summing at least three consecutive odd positive integers, there is no guarantee that this is possible. There are no consecutive odd positive integers that sum to 7 or 11
    $endgroup$
    – WW1
    Jul 17 at 2:39












  • 3




    $begingroup$
    Hint: try to write it as a difference of two squares. It's easy to write a square as a sum of consecutive odd numbers.
    $endgroup$
    – lulu
    Jul 17 at 1:05







  • 1




    $begingroup$
    $1times1649=17times97$
    $endgroup$
    – J. W. Tanner
    Jul 17 at 1:08







  • 1




    $begingroup$
    Remark: Since $a^2-b^2$ is easy to factor, writing your (large) number as a difference of two squares will require you to factor it. Not completely...you just need two factors of the same parity. Of course, for large odd numbers it can be difficult to produce any factor, thereby making your problem difficult.
    $endgroup$
    – lulu
    Jul 17 at 1:15






  • 1




    $begingroup$
    @RobertShore, and J.W. Tanner Ha! Forgot you could use $1$ as a factor. Thanks for reminding me.
    $endgroup$
    – lulu
    Jul 17 at 1:33







  • 1




    $begingroup$
    You must be summing at least three consecutive odd positive integers, there is no guarantee that this is possible. There are no consecutive odd positive integers that sum to 7 or 11
    $endgroup$
    – WW1
    Jul 17 at 2:39







3




3




$begingroup$
Hint: try to write it as a difference of two squares. It's easy to write a square as a sum of consecutive odd numbers.
$endgroup$
– lulu
Jul 17 at 1:05





$begingroup$
Hint: try to write it as a difference of two squares. It's easy to write a square as a sum of consecutive odd numbers.
$endgroup$
– lulu
Jul 17 at 1:05





1




1




$begingroup$
$1times1649=17times97$
$endgroup$
– J. W. Tanner
Jul 17 at 1:08





$begingroup$
$1times1649=17times97$
$endgroup$
– J. W. Tanner
Jul 17 at 1:08





1




1




$begingroup$
Remark: Since $a^2-b^2$ is easy to factor, writing your (large) number as a difference of two squares will require you to factor it. Not completely...you just need two factors of the same parity. Of course, for large odd numbers it can be difficult to produce any factor, thereby making your problem difficult.
$endgroup$
– lulu
Jul 17 at 1:15




$begingroup$
Remark: Since $a^2-b^2$ is easy to factor, writing your (large) number as a difference of two squares will require you to factor it. Not completely...you just need two factors of the same parity. Of course, for large odd numbers it can be difficult to produce any factor, thereby making your problem difficult.
$endgroup$
– lulu
Jul 17 at 1:15




1




1




$begingroup$
@RobertShore, and J.W. Tanner Ha! Forgot you could use $1$ as a factor. Thanks for reminding me.
$endgroup$
– lulu
Jul 17 at 1:33





$begingroup$
@RobertShore, and J.W. Tanner Ha! Forgot you could use $1$ as a factor. Thanks for reminding me.
$endgroup$
– lulu
Jul 17 at 1:33





1




1




$begingroup$
You must be summing at least three consecutive odd positive integers, there is no guarantee that this is possible. There are no consecutive odd positive integers that sum to 7 or 11
$endgroup$
– WW1
Jul 17 at 2:39




$begingroup$
You must be summing at least three consecutive odd positive integers, there is no guarantee that this is possible. There are no consecutive odd positive integers that sum to 7 or 11
$endgroup$
– WW1
Jul 17 at 2:39










2 Answers
2






active

oldest

votes


















4












$begingroup$

Notice if you add an even number of odd numbers you get an even sum. If you add an odd number of consecutive numbers you get an odd sum. So to get an odd sum you must have an odd number of terms.



Suppose you have $2k + 1$ terms and the middle term is $m$, then you numbers are $(m-2k), (m-2k+2), (m-2k + 4),...... (m-2), m , (m+2),...... (m+k-4), (m+k-2), (m+k)$.



If you add up the first term with the last term you get $(m-2k) + (m+2k) =2m$. If add up the second and second to last term you ge $(m - 2k +2)+(m+2k -2) = 2m$. And so on.



So when you add them all up you get $2m*k + m = m(2k + 1)$



So if you factor your number into two factors and set one to $m$ and the other to $2k + 1$ (as your number is odd both factors will be odd) you can get your sum.



Example: $1649 = 1 * 1649$ so so if $m = 1649$ and $2k+1 = 1$ then we can write $1649$ as a sum of $1$ term with the middle term $1649$. I.e. $1649 = sum_i=1^1 1649$.



..... Okay, that's cheating but we can write $m =1$ and $2k+1 = 1649$ so that it can be the sum of $1649$ terms with the middle term of $1$. so $-1647+(-1645) + (-1643) + ...... + 1643 + 1645 + 1647 + 1649 = 1649$.



.... Okay, that was me cheating again. But if the number is not prime we can do it.



$1649 = 17*97$. Let $m =97$ and $2k+1 =17$ so $k = 8$ then we can have a sum of $17$ terms centered at $97$.



So $81 + 83 + 85 + 87 + ..... + 109 + 111 + 113 = $



$(97-16) + (97-14) + .... + (97-2) + 97 + (97+2) + .... + (97+14)+(97+16) =$



$97 + 97 + ..... + 97 + 97 +97 +.... + 97 + 97 = 17*97 = 1649$.






share|cite|improve this answer











$endgroup$




















    2












    $begingroup$

    correction:



    Let $m$ be the number. Find the smallest prime factor $n$ of $m$ and let $k=fracmn$ The sequence will be $k-n+1,k-n+3,.....,k-2,k,k+2,...,k+n-3,k+n-1$.



    Note: The list is of length $n$, which is the smallest possible.



    Note: The method will work with any factor $le sqrtm$. My solution may be the easiest, but not necessarily.






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      Note if $m$ is a product of two primes close together, or even consecutive, e.g., $m = 11 times 13$, then $n$ is the smaller of the two, e.g., $11$ in my example, and $k$ would be the larger one, i.e., $13$ in my example. However, then the first number in your sequence would be, in my example, $k - 2n + 2 = 13 - 2times 11 + 2 = 13 - 22 + 2 = -7$. Note, though, that the question asks for a sequence of consecutive odd positive integers.
      $endgroup$
      – John Omielan
      Jul 17 at 3:08











    • $begingroup$
      @John Omielan Major error - it has been corrected. In the example you cited the numbers go from $3$ to $23$.
      $endgroup$
      – herb steinberg
      Jul 17 at 3:58







    • 1




      $begingroup$
      If we assume the numbers are too large to factor efficiently are there any other techniques that can be used?
      $endgroup$
      – DeveloperChris
      Jul 17 at 4:20










    • $begingroup$
      The method works perfectly well for odd numbers which are squares, such as $9=1+3+5$.
      $endgroup$
      – herb steinberg
      Jul 17 at 17:26













    Your Answer








    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%2f3295311%2fhow-to-find-the-consecutive-odd-numbers-that-sum-to-a-given-odd-number%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4












    $begingroup$

    Notice if you add an even number of odd numbers you get an even sum. If you add an odd number of consecutive numbers you get an odd sum. So to get an odd sum you must have an odd number of terms.



    Suppose you have $2k + 1$ terms and the middle term is $m$, then you numbers are $(m-2k), (m-2k+2), (m-2k + 4),...... (m-2), m , (m+2),...... (m+k-4), (m+k-2), (m+k)$.



    If you add up the first term with the last term you get $(m-2k) + (m+2k) =2m$. If add up the second and second to last term you ge $(m - 2k +2)+(m+2k -2) = 2m$. And so on.



    So when you add them all up you get $2m*k + m = m(2k + 1)$



    So if you factor your number into two factors and set one to $m$ and the other to $2k + 1$ (as your number is odd both factors will be odd) you can get your sum.



    Example: $1649 = 1 * 1649$ so so if $m = 1649$ and $2k+1 = 1$ then we can write $1649$ as a sum of $1$ term with the middle term $1649$. I.e. $1649 = sum_i=1^1 1649$.



    ..... Okay, that's cheating but we can write $m =1$ and $2k+1 = 1649$ so that it can be the sum of $1649$ terms with the middle term of $1$. so $-1647+(-1645) + (-1643) + ...... + 1643 + 1645 + 1647 + 1649 = 1649$.



    .... Okay, that was me cheating again. But if the number is not prime we can do it.



    $1649 = 17*97$. Let $m =97$ and $2k+1 =17$ so $k = 8$ then we can have a sum of $17$ terms centered at $97$.



    So $81 + 83 + 85 + 87 + ..... + 109 + 111 + 113 = $



    $(97-16) + (97-14) + .... + (97-2) + 97 + (97+2) + .... + (97+14)+(97+16) =$



    $97 + 97 + ..... + 97 + 97 +97 +.... + 97 + 97 = 17*97 = 1649$.






    share|cite|improve this answer











    $endgroup$

















      4












      $begingroup$

      Notice if you add an even number of odd numbers you get an even sum. If you add an odd number of consecutive numbers you get an odd sum. So to get an odd sum you must have an odd number of terms.



      Suppose you have $2k + 1$ terms and the middle term is $m$, then you numbers are $(m-2k), (m-2k+2), (m-2k + 4),...... (m-2), m , (m+2),...... (m+k-4), (m+k-2), (m+k)$.



      If you add up the first term with the last term you get $(m-2k) + (m+2k) =2m$. If add up the second and second to last term you ge $(m - 2k +2)+(m+2k -2) = 2m$. And so on.



      So when you add them all up you get $2m*k + m = m(2k + 1)$



      So if you factor your number into two factors and set one to $m$ and the other to $2k + 1$ (as your number is odd both factors will be odd) you can get your sum.



      Example: $1649 = 1 * 1649$ so so if $m = 1649$ and $2k+1 = 1$ then we can write $1649$ as a sum of $1$ term with the middle term $1649$. I.e. $1649 = sum_i=1^1 1649$.



      ..... Okay, that's cheating but we can write $m =1$ and $2k+1 = 1649$ so that it can be the sum of $1649$ terms with the middle term of $1$. so $-1647+(-1645) + (-1643) + ...... + 1643 + 1645 + 1647 + 1649 = 1649$.



      .... Okay, that was me cheating again. But if the number is not prime we can do it.



      $1649 = 17*97$. Let $m =97$ and $2k+1 =17$ so $k = 8$ then we can have a sum of $17$ terms centered at $97$.



      So $81 + 83 + 85 + 87 + ..... + 109 + 111 + 113 = $



      $(97-16) + (97-14) + .... + (97-2) + 97 + (97+2) + .... + (97+14)+(97+16) =$



      $97 + 97 + ..... + 97 + 97 +97 +.... + 97 + 97 = 17*97 = 1649$.






      share|cite|improve this answer











      $endgroup$















        4












        4








        4





        $begingroup$

        Notice if you add an even number of odd numbers you get an even sum. If you add an odd number of consecutive numbers you get an odd sum. So to get an odd sum you must have an odd number of terms.



        Suppose you have $2k + 1$ terms and the middle term is $m$, then you numbers are $(m-2k), (m-2k+2), (m-2k + 4),...... (m-2), m , (m+2),...... (m+k-4), (m+k-2), (m+k)$.



        If you add up the first term with the last term you get $(m-2k) + (m+2k) =2m$. If add up the second and second to last term you ge $(m - 2k +2)+(m+2k -2) = 2m$. And so on.



        So when you add them all up you get $2m*k + m = m(2k + 1)$



        So if you factor your number into two factors and set one to $m$ and the other to $2k + 1$ (as your number is odd both factors will be odd) you can get your sum.



        Example: $1649 = 1 * 1649$ so so if $m = 1649$ and $2k+1 = 1$ then we can write $1649$ as a sum of $1$ term with the middle term $1649$. I.e. $1649 = sum_i=1^1 1649$.



        ..... Okay, that's cheating but we can write $m =1$ and $2k+1 = 1649$ so that it can be the sum of $1649$ terms with the middle term of $1$. so $-1647+(-1645) + (-1643) + ...... + 1643 + 1645 + 1647 + 1649 = 1649$.



        .... Okay, that was me cheating again. But if the number is not prime we can do it.



        $1649 = 17*97$. Let $m =97$ and $2k+1 =17$ so $k = 8$ then we can have a sum of $17$ terms centered at $97$.



        So $81 + 83 + 85 + 87 + ..... + 109 + 111 + 113 = $



        $(97-16) + (97-14) + .... + (97-2) + 97 + (97+2) + .... + (97+14)+(97+16) =$



        $97 + 97 + ..... + 97 + 97 +97 +.... + 97 + 97 = 17*97 = 1649$.






        share|cite|improve this answer











        $endgroup$



        Notice if you add an even number of odd numbers you get an even sum. If you add an odd number of consecutive numbers you get an odd sum. So to get an odd sum you must have an odd number of terms.



        Suppose you have $2k + 1$ terms and the middle term is $m$, then you numbers are $(m-2k), (m-2k+2), (m-2k + 4),...... (m-2), m , (m+2),...... (m+k-4), (m+k-2), (m+k)$.



        If you add up the first term with the last term you get $(m-2k) + (m+2k) =2m$. If add up the second and second to last term you ge $(m - 2k +2)+(m+2k -2) = 2m$. And so on.



        So when you add them all up you get $2m*k + m = m(2k + 1)$



        So if you factor your number into two factors and set one to $m$ and the other to $2k + 1$ (as your number is odd both factors will be odd) you can get your sum.



        Example: $1649 = 1 * 1649$ so so if $m = 1649$ and $2k+1 = 1$ then we can write $1649$ as a sum of $1$ term with the middle term $1649$. I.e. $1649 = sum_i=1^1 1649$.



        ..... Okay, that's cheating but we can write $m =1$ and $2k+1 = 1649$ so that it can be the sum of $1649$ terms with the middle term of $1$. so $-1647+(-1645) + (-1643) + ...... + 1643 + 1645 + 1647 + 1649 = 1649$.



        .... Okay, that was me cheating again. But if the number is not prime we can do it.



        $1649 = 17*97$. Let $m =97$ and $2k+1 =17$ so $k = 8$ then we can have a sum of $17$ terms centered at $97$.



        So $81 + 83 + 85 + 87 + ..... + 109 + 111 + 113 = $



        $(97-16) + (97-14) + .... + (97-2) + 97 + (97+2) + .... + (97+14)+(97+16) =$



        $97 + 97 + ..... + 97 + 97 +97 +.... + 97 + 97 = 17*97 = 1649$.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Jul 17 at 13:12

























        answered Jul 17 at 4:35









        fleabloodfleablood

        76.8k2 gold badges28 silver badges95 bronze badges




        76.8k2 gold badges28 silver badges95 bronze badges























            2












            $begingroup$

            correction:



            Let $m$ be the number. Find the smallest prime factor $n$ of $m$ and let $k=fracmn$ The sequence will be $k-n+1,k-n+3,.....,k-2,k,k+2,...,k+n-3,k+n-1$.



            Note: The list is of length $n$, which is the smallest possible.



            Note: The method will work with any factor $le sqrtm$. My solution may be the easiest, but not necessarily.






            share|cite|improve this answer











            $endgroup$












            • $begingroup$
              Note if $m$ is a product of two primes close together, or even consecutive, e.g., $m = 11 times 13$, then $n$ is the smaller of the two, e.g., $11$ in my example, and $k$ would be the larger one, i.e., $13$ in my example. However, then the first number in your sequence would be, in my example, $k - 2n + 2 = 13 - 2times 11 + 2 = 13 - 22 + 2 = -7$. Note, though, that the question asks for a sequence of consecutive odd positive integers.
              $endgroup$
              – John Omielan
              Jul 17 at 3:08











            • $begingroup$
              @John Omielan Major error - it has been corrected. In the example you cited the numbers go from $3$ to $23$.
              $endgroup$
              – herb steinberg
              Jul 17 at 3:58







            • 1




              $begingroup$
              If we assume the numbers are too large to factor efficiently are there any other techniques that can be used?
              $endgroup$
              – DeveloperChris
              Jul 17 at 4:20










            • $begingroup$
              The method works perfectly well for odd numbers which are squares, such as $9=1+3+5$.
              $endgroup$
              – herb steinberg
              Jul 17 at 17:26















            2












            $begingroup$

            correction:



            Let $m$ be the number. Find the smallest prime factor $n$ of $m$ and let $k=fracmn$ The sequence will be $k-n+1,k-n+3,.....,k-2,k,k+2,...,k+n-3,k+n-1$.



            Note: The list is of length $n$, which is the smallest possible.



            Note: The method will work with any factor $le sqrtm$. My solution may be the easiest, but not necessarily.






            share|cite|improve this answer











            $endgroup$












            • $begingroup$
              Note if $m$ is a product of two primes close together, or even consecutive, e.g., $m = 11 times 13$, then $n$ is the smaller of the two, e.g., $11$ in my example, and $k$ would be the larger one, i.e., $13$ in my example. However, then the first number in your sequence would be, in my example, $k - 2n + 2 = 13 - 2times 11 + 2 = 13 - 22 + 2 = -7$. Note, though, that the question asks for a sequence of consecutive odd positive integers.
              $endgroup$
              – John Omielan
              Jul 17 at 3:08











            • $begingroup$
              @John Omielan Major error - it has been corrected. In the example you cited the numbers go from $3$ to $23$.
              $endgroup$
              – herb steinberg
              Jul 17 at 3:58







            • 1




              $begingroup$
              If we assume the numbers are too large to factor efficiently are there any other techniques that can be used?
              $endgroup$
              – DeveloperChris
              Jul 17 at 4:20










            • $begingroup$
              The method works perfectly well for odd numbers which are squares, such as $9=1+3+5$.
              $endgroup$
              – herb steinberg
              Jul 17 at 17:26













            2












            2








            2





            $begingroup$

            correction:



            Let $m$ be the number. Find the smallest prime factor $n$ of $m$ and let $k=fracmn$ The sequence will be $k-n+1,k-n+3,.....,k-2,k,k+2,...,k+n-3,k+n-1$.



            Note: The list is of length $n$, which is the smallest possible.



            Note: The method will work with any factor $le sqrtm$. My solution may be the easiest, but not necessarily.






            share|cite|improve this answer











            $endgroup$



            correction:



            Let $m$ be the number. Find the smallest prime factor $n$ of $m$ and let $k=fracmn$ The sequence will be $k-n+1,k-n+3,.....,k-2,k,k+2,...,k+n-3,k+n-1$.



            Note: The list is of length $n$, which is the smallest possible.



            Note: The method will work with any factor $le sqrtm$. My solution may be the easiest, but not necessarily.







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Jul 17 at 17:19

























            answered Jul 17 at 2:41









            herb steinbergherb steinberg

            4,3982 gold badges3 silver badges12 bronze badges




            4,3982 gold badges3 silver badges12 bronze badges











            • $begingroup$
              Note if $m$ is a product of two primes close together, or even consecutive, e.g., $m = 11 times 13$, then $n$ is the smaller of the two, e.g., $11$ in my example, and $k$ would be the larger one, i.e., $13$ in my example. However, then the first number in your sequence would be, in my example, $k - 2n + 2 = 13 - 2times 11 + 2 = 13 - 22 + 2 = -7$. Note, though, that the question asks for a sequence of consecutive odd positive integers.
              $endgroup$
              – John Omielan
              Jul 17 at 3:08











            • $begingroup$
              @John Omielan Major error - it has been corrected. In the example you cited the numbers go from $3$ to $23$.
              $endgroup$
              – herb steinberg
              Jul 17 at 3:58







            • 1




              $begingroup$
              If we assume the numbers are too large to factor efficiently are there any other techniques that can be used?
              $endgroup$
              – DeveloperChris
              Jul 17 at 4:20










            • $begingroup$
              The method works perfectly well for odd numbers which are squares, such as $9=1+3+5$.
              $endgroup$
              – herb steinberg
              Jul 17 at 17:26
















            • $begingroup$
              Note if $m$ is a product of two primes close together, or even consecutive, e.g., $m = 11 times 13$, then $n$ is the smaller of the two, e.g., $11$ in my example, and $k$ would be the larger one, i.e., $13$ in my example. However, then the first number in your sequence would be, in my example, $k - 2n + 2 = 13 - 2times 11 + 2 = 13 - 22 + 2 = -7$. Note, though, that the question asks for a sequence of consecutive odd positive integers.
              $endgroup$
              – John Omielan
              Jul 17 at 3:08











            • $begingroup$
              @John Omielan Major error - it has been corrected. In the example you cited the numbers go from $3$ to $23$.
              $endgroup$
              – herb steinberg
              Jul 17 at 3:58







            • 1




              $begingroup$
              If we assume the numbers are too large to factor efficiently are there any other techniques that can be used?
              $endgroup$
              – DeveloperChris
              Jul 17 at 4:20










            • $begingroup$
              The method works perfectly well for odd numbers which are squares, such as $9=1+3+5$.
              $endgroup$
              – herb steinberg
              Jul 17 at 17:26















            $begingroup$
            Note if $m$ is a product of two primes close together, or even consecutive, e.g., $m = 11 times 13$, then $n$ is the smaller of the two, e.g., $11$ in my example, and $k$ would be the larger one, i.e., $13$ in my example. However, then the first number in your sequence would be, in my example, $k - 2n + 2 = 13 - 2times 11 + 2 = 13 - 22 + 2 = -7$. Note, though, that the question asks for a sequence of consecutive odd positive integers.
            $endgroup$
            – John Omielan
            Jul 17 at 3:08





            $begingroup$
            Note if $m$ is a product of two primes close together, or even consecutive, e.g., $m = 11 times 13$, then $n$ is the smaller of the two, e.g., $11$ in my example, and $k$ would be the larger one, i.e., $13$ in my example. However, then the first number in your sequence would be, in my example, $k - 2n + 2 = 13 - 2times 11 + 2 = 13 - 22 + 2 = -7$. Note, though, that the question asks for a sequence of consecutive odd positive integers.
            $endgroup$
            – John Omielan
            Jul 17 at 3:08













            $begingroup$
            @John Omielan Major error - it has been corrected. In the example you cited the numbers go from $3$ to $23$.
            $endgroup$
            – herb steinberg
            Jul 17 at 3:58





            $begingroup$
            @John Omielan Major error - it has been corrected. In the example you cited the numbers go from $3$ to $23$.
            $endgroup$
            – herb steinberg
            Jul 17 at 3:58





            1




            1




            $begingroup$
            If we assume the numbers are too large to factor efficiently are there any other techniques that can be used?
            $endgroup$
            – DeveloperChris
            Jul 17 at 4:20




            $begingroup$
            If we assume the numbers are too large to factor efficiently are there any other techniques that can be used?
            $endgroup$
            – DeveloperChris
            Jul 17 at 4:20












            $begingroup$
            The method works perfectly well for odd numbers which are squares, such as $9=1+3+5$.
            $endgroup$
            – herb steinberg
            Jul 17 at 17:26




            $begingroup$
            The method works perfectly well for odd numbers which are squares, such as $9=1+3+5$.
            $endgroup$
            – herb steinberg
            Jul 17 at 17:26

















            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%2f3295311%2fhow-to-find-the-consecutive-odd-numbers-that-sum-to-a-given-odd-number%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

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?